summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorleot <leot>2016-06-18 10:16:07 +0000
committerleot <leot>2016-06-18 10:16:07 +0000
commit4dc18fbb518145e8ca55e244b7cdc45bf49b28ea (patch)
tree5c49aa2c67fac347f407d834d4dc532c289cd53b /devel
parented1967f76a12957c551513b74f7ea0c8534b1ee0 (diff)
downloadpkgsrc-4dc18fbb518145e8ca55e244b7cdc45bf49b28ea.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')
-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}