diff options
author | nia <nia@pkgsrc.org> | 2019-12-14 17:53:39 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2019-12-14 17:53:39 +0000 |
commit | 66717c918a62ac788cd69e2710017e5ff00b3a35 (patch) | |
tree | 308b69eff412c9658aba84e2bc29540de05c1fc6 /textproc/serd | |
parent | f8b7138fc5889814f1fc06b8be32e1a23d7dfdba (diff) | |
download | pkgsrc-66717c918a62ac788cd69e2710017e5ff00b3a35.tar.gz |
Convert some drobilla.net packages to waf.mk.
This removes a lot of do-X: targets and redundant python runtime deps.
Diffstat (limited to 'textproc/serd')
-rw-r--r-- | textproc/serd/Makefile | 19 | ||||
-rw-r--r-- | textproc/serd/options.mk | 18 |
2 files changed, 8 insertions, 29 deletions
diff --git a/textproc/serd/Makefile b/textproc/serd/Makefile index 11143fe5273..f6b872c46a5 100644 --- a/textproc/serd/Makefile +++ b/textproc/serd/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2019/12/14 17:31:12 nia Exp $ +# $NetBSD: Makefile,v 1.7 2019/12/14 17:53:39 nia Exp $ DISTNAME= serd-0.30.2 CATEGORIES= textproc @@ -13,22 +13,9 @@ LICENSE= isc USE_LANGUAGES= c99 USE_TOOLS+= gsed pkg-config +PYTHON_FOR_BUILD_ONLY= tool PKGCONFIG_OVERRIDE+= serd.pc.in .include "options.mk" - -BUILD_OPTIONS= ${BUILD_DEBUG} ${BUILD_DOC} ${BUILD_TESTS} ${BUILD_VALGRIND} - -do-configure: - cd ${WRKSRC} && \ - ${SETENV} ${CONFIGURE_ENV} ${PYTHONBIN} ./waf configure \ - --destdir=${DESTDIR} --mandir=${PREFIX}/${PKGMANDIR} \ - ${BUILD_OPTIONS} -do-build: - cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} ./waf build - -do-install: - cd ${WRKSRC} && ${SETENV} ${INSTALL_ENV} ${PYTHONBIN} ./waf install - -.include "../../lang/python/application.mk" +.include "../../devel/waf/waf.mk" .include "../../mk/bsd.pkg.mk" diff --git a/textproc/serd/options.mk b/textproc/serd/options.mk index 36387dc177b..870f9d003f8 100644 --- a/textproc/serd/options.mk +++ b/textproc/serd/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.1 2015/04/19 23:10:52 rodent Exp $ +# $NetBSD: options.mk,v 1.2 2019/12/14 17:53:39 nia Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.serd PKG_SUPPORTED_OPTIONS= debug doc tests valgrind @@ -8,28 +8,20 @@ PLIST_VARS+= doc .include "../../mk/bsd.options.mk" .if !empty(PKG_OPTIONS:Mdebug) -BUILD_DEBUG= --debug -.else -BUILD_DEBUG= # blank +WAF_ARGS+= --debug .endif .if !empty(PKG_OPTIONS:Mdoc) -BUILD_DOC= --docs +WAF_ARGS+= --docs BUILD_DEPENDS+= doxygen-[0-9]*:../../devel/doxygen PLIST.doc= yes -.else -BUILD_DOC= # blank .endif .if !empty(PKG_OPTIONS:Mtests) -BUILD_TESTS= --test -.else -BUILD_TESTS= # blank +WAF_ARGS+= --test .endif .if !empty(PKG_OPTIONS:Mvalgrind) -BUILD_VALGRIND= --grind +WAF_ARGS+= --grind BUILD_DEPENDS+= valgrind-[0-9]*:../../devel/valgrind -.else -BUILD_VALGRIND= # blank .endif |