aboutsummaryrefslogtreecommitdiffstats
path: root/devel/mkcmd/Makefile
diff options
context:
space:
mode:
authorade <ade@FreeBSD.org>2000-09-17 02:09:08 +0800
committerade <ade@FreeBSD.org>2000-09-17 02:09:08 +0800
commit22dcf1cdd695ce6185505bf3a193340ba784a2c3 (patch)
tree8d1114d0d9ef509247e083b1873c9a2f73e34a1c /devel/mkcmd/Makefile
parentc85192fe6a93de0963b0fde2d2fff8fd911c5974 (diff)
downloadfreebsd-ports-gnome-22dcf1cdd695ce6185505bf3a193340ba784a2c3.tar.gz
freebsd-ports-gnome-22dcf1cdd695ce6185505bf3a193340ba784a2c3.tar.zst
freebsd-ports-gnome-22dcf1cdd695ce6185505bf3a193340ba784a2c3.zip
Support CFLAGS/PREFIX properly
PR: 20650 Submitted by: Ports Fury
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 \