aboutsummaryrefslogtreecommitdiffstats
path: root/devel/mkcmd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/mkcmd/Makefile')
-rw-r--r--devel/mkcmd/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/devel/mkcmd/Makefile b/devel/mkcmd/Makefile
index 3f20f181f4e3..6b492baaa45e 100644
--- a/devel/mkcmd/Makefile
+++ b/devel/mkcmd/Makefile
@@ -1,6 +1,6 @@
-# New ports collection makefile for: mkcmd
-# Date created: 17 November 1999
-# Whom: ajk@waterspout.com
+# New ports collection makefile for: mkcmd
+# Date created: 17 November 1999
+# Whom: ajk@waterspout.com
#
# $FreeBSD$
#
@@ -20,13 +20,18 @@ MAKEFILE=
MAN1= mkcmd.1
MAN5= mkcmd.5
+post-patch:
+.for f in bin/mkcmd/machine.h bin/mkcmd/mkcmd.man lib/mkcmd/mkcmd.man
+ @${PERL} -pi -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 \
+ @(cd ${WRKSRC}/${d} && ${SETENV} ${MAKE_ENV} makeme \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
.endfor
${INSTALL_MAN} ${WRKSRC}/bin/mkcmd/mkcmd.man \