pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/waf Add basic infrastructure collecting informat...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8577e1ee034a
branches:  trunk
changeset: 639233:8577e1ee034a
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Sep 08 12:12:10 2014 +0000

description:
Add basic infrastructure collecting information how to use waf.

diffstat:

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

diffs (31 lines):

diff -r 7964b1068130 -r 8577e1ee034a devel/waf/waf.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/waf/waf.mk  Mon Sep 08 12:12:10 2014 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: waf.mk,v 1.1 2014/09/08 12:12:10 wiz Exp $
+
+WAF_ENV+=      CC=${CC:Q}
+WAF_ENV+=      CFLAGS=${CFLAGS:Q}
+WAF_ENV+=      CXX=${CXX:Q}
+WAF_ENV+=      CXXFLAGS=${CXXFLAGS:Q}
+WAF_ENV+=      DESTDIR=${DESTDIR}
+WAF_ENV+=      LINKFLAGS=${LDFLAGS:Q}
+WAF_ENV+=      PATH=${PATH:Q}
+WAF_ENV+=      PREFIX=${PREFIX}
+.if defined(MAKE_JOBS)
+WAF_ENV+=      JOBS=${MAKE_JOBS:Q}
+.endif
+
+WAF_ARGS=      --mandir=${PREFIX}/${PKGMANDIR}
+
+post-extract:
+       cp ${PREFIX}/bin/waf ${WRKSRC}
+
+do-configure:
+       cd ${WRKSRC} && ${SETENV} ${WAF_ENV} ./waf ${WAF_ARGS} ${WAF_CONFIGURE_ARGS} configure
+
+do-build:
+       cd ${WRKSRC} && ${SETENV} ${WAF_ENV} ./waf ${WAF_ARGS}
+
+do-install:
+       cd ${WRKSRC} && ${SETENV} ${WAF_ENV} ./waf ${WAF_ARGS} install



Home | Main Index | Thread Index | Old Index