summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjoerg <joerg>2015-09-08 18:47:01 +0000
committerjoerg <joerg>2015-09-08 18:47:01 +0000
commit1cd78336f881a5ac601ab258f1edfd1ddc36be75 (patch)
tree4d56822325f822cfaef036f53e906a5b010928a7 /pkgtools
parent696c54ffc5cb3200d9c39f3b956b38e9aea7be8b (diff)
downloadpkgsrc-1cd78336f881a5ac601ab258f1edfd1ddc36be75.tar.gz
Make it easier to override the (b)make hard-coded in mkpatches and
patchdiff. It is often useful to have tools in one prefix and reach-over patch creation with a different make and different WRKOBJDIR settings, e.g. when developing in a bulk build environment.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkgdiff/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgtools/pkgdiff/Makefile b/pkgtools/pkgdiff/Makefile
index 8036057f877..5ac9ff508bd 100644
--- a/pkgtools/pkgdiff/Makefile
+++ b/pkgtools/pkgdiff/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.87 2015/06/12 10:50:56 wiz Exp $
+# $NetBSD: Makefile,v 1.88 2015/09/08 18:47:01 joerg Exp $
PKGNAME= pkgdiff-1.6
PKGREVISION= 1
@@ -39,11 +39,13 @@ INSTALLATION_DIRS+= ${PKGMANDIR}/cat1
INSTALLATION_DIRS+= ${PKGMANDIR}/man1
.endif
+PKGDIFF_MAKE?= ${MAKE}
+
do-build:
.for f in mkpatches patchdiff
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
-e 's|@PERL5@|${PERL5}|g' \
- -e 's|@MAKE@|${MAKE}|g' \
+ -e 's|@MAKE@|${PKGDIFF_MAKE}|g' \
< ${FILESDIR}/${f}.pl \
> ${WRKSRC}/${f}
.endfor