summaryrefslogtreecommitdiff
path: root/devel/waf
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2016-06-18 10:16:07 +0000
committerleot <leot@pkgsrc.org>2016-06-18 10:16:07 +0000
commit4f9debc26ebe2296be28077eda038f0ef7e1cc01 (patch)
treed6b74373d3ea0783cc228403e956ec2c1446bdda /devel/waf
parent3a578c1d1ee246e2e70550fe4d282d0ad6dd1353 (diff)
downloadpkgsrc-4f9debc26ebe2296be28077eda038f0ef7e1cc01.tar.gz
Add support for WAF_HAS_MANDIR (by default "yes").
Always forcing `--mandir=' in WAF_ARGS can be problematic for waf-s that do not support that (e.g. nanomsgxx, ardour). WAF_HAS_MANDIR can be set per-package to "no" for these packages. Pointed out by <kamil>. ok <wiz>
Diffstat (limited to 'devel/waf')
-rw-r--r--devel/waf/waf.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/devel/waf/waf.mk b/devel/waf/waf.mk
index e180d195108..d93acf51224 100644
--- a/devel/waf/waf.mk
+++ b/devel/waf/waf.mk
@@ -1,4 +1,4 @@
-# $NetBSD: waf.mk,v 1.2 2015/05/24 14:06:42 bsiegert Exp $
+# $NetBSD: waf.mk,v 1.3 2016/06/18 10:16:07 leot Exp $
WAF_ENV+= CC=${CC:Q}
WAF_ENV+= CFLAGS=${CFLAGS:Q}
@@ -18,7 +18,10 @@ WAF_ENV+= JOBS=${MAKE_JOBS:Q}
WAF_ENV+= LC_ALL="en_US.UTF-8"
.endif
-WAF_ARGS= --mandir=${PREFIX}/${PKGMANDIR}
+WAF_HAS_MANDIR?= yes
+.if !empty(WAF_HAS_MANDIR:M[yY][eE][sS])
+WAF_ARGS= --mandir=${PREFIX}/${PKGMANDIR}
+.endif
post-extract:
cp ${PREFIX}/bin/waf ${WRKSRC}