summaryrefslogtreecommitdiffstats
path: root/devel/mkcmd/Makefile
blob: 15c14207ca5d9e31057a44db2aee85dc80a0fdbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:	mkcmd
# Date created:		17 November 1999
# Whom:			ajk@waterspout.com
#
# $FreeBSD$
#

PORTNAME=	mkcmd
PORTVERSION=	8.14
CATEGORIES=	devel
MASTER_SITES=	ftp://archive.progeny.com/pundits/ \
		ftp://ftp.physics.purdue.edu/pub/pundits/
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Command-line parser and manual page generator

BUILD_DEPENDS=	makeme:${PORTSDIR}/devel/msrc0

MAKE_FLAGS=
MAKEFILE=
USE_REINPLACE=	yes

MAN1=		mkcmd.1
MAN5=		mkcmd.5

post-patch:
.for f in bin/mkcmd/machine.h bin/mkcmd/mkcmd.man lib/mkcmd/mkcmd.man
	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${f}
.endfor

do-build:
	@(cd ${WRKSRC}/bin/mkcmd && ${SETENV} ${MAKE_ENV} makeme \
	    ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})

do-install:
.for d in bin/mkcmd lib/mkcmd
	@(cd ${WRKSRC}/${d} && ${SETENV} ${MAKE_ENV} makeme \
	    ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
.endfor
	${INSTALL_MAN} ${WRKSRC}/bin/mkcmd/mkcmd.man \
	    ${PREFIX}/man/man1/mkcmd.1
	${INSTALL_MAN} ${WRKSRC}/lib/mkcmd/mkcmd.man \
	    ${PREFIX}/man/man5/mkcmd.5

.include <bsd.port.mk>
OpenPOWER on IntegriCloud