pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/waf



Module Name:    pkgsrc
Committed By:   leot
Date:           Sat Jun 18 10:16:07 UTC 2016

Modified Files:
        pkgsrc/devel/waf: waf.mk

Log Message:
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>


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/waf/waf.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/waf/waf.mk
diff -u pkgsrc/devel/waf/waf.mk:1.2 pkgsrc/devel/waf/waf.mk:1.3
--- pkgsrc/devel/waf/waf.mk:1.2 Sun May 24 14:06:42 2015
+++ pkgsrc/devel/waf/waf.mk     Sat Jun 18 10:16:07 2016
@@ -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}



Home | Main Index | Thread Index | Old Index