pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/waf Add WAF_REPLACE_EXECUTABLE in waf.mk



details:   https://anonhg.NetBSD.org/pkgsrc/rev/55adf0b95976
branches:  trunk
changeset: 348753:55adf0b95976
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Sat Jun 18 21:46:07 2016 +0000

description:
Add WAF_REPLACE_EXECUTABLE in waf.mk

The waf tool has been designed as a bundled 3rd party script in a software
tarball. For this reason some vendors freely modify these scripts and are
technically incompatible with the stock one.

Allow to use waf.mk goodies in such circumstances by specifying
"WAF_REPLACE_EXECUTABL=no" in a package's Makefile. Retain the default
behavior of replacing or copying waf into a package unchanged.

Reviewed by <wiz>

diffstat:

 devel/waf/waf.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 2bce3b50541a -r 55adf0b95976 devel/waf/waf.mk
--- a/devel/waf/waf.mk  Sat Jun 18 21:32:35 2016 +0000
+++ b/devel/waf/waf.mk  Sat Jun 18 21:46:07 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: waf.mk,v 1.4 2016/06/18 10:30:14 leot Exp $
+# $NetBSD: waf.mk,v 1.5 2016/06/18 21:46:07 kamil Exp $
 
 WAF_ENV+=      CC=${CC:Q}
 WAF_ENV+=      CFLAGS=${CFLAGS:Q}
@@ -23,8 +23,11 @@
 WAF_ARGS+=             --mandir=${PREFIX}/${PKGMANDIR}
 .endif
 
+WAF_REPLACE_EXECUTABLE?=        yes
+.if !empty(WAF_REPLACE_EXECUTABLE:M[yY][eE][sS])
 post-extract:
        cp ${PREFIX}/bin/waf ${WRKSRC}
+.endif
 
 do-configure:
        cd ${WRKSRC} && ${SETENV} ${WAF_ENV} ./waf ${WAF_ARGS} ${WAF_CONFIGURE_ARGS} configure



Home | Main Index | Thread Index | Old Index