| @@ -1,65 +1,58 @@ | | | @@ -1,65 +1,58 @@ |
1 | # $NetBSD: Makefile,v 1.28 2018/07/14 18:51:22 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.29 2018/12/22 08:55:29 adam Exp $ |
2 | | | 2 | |
3 | DISTNAME= talloc-2.1.14 | | 3 | DISTNAME= talloc-2.1.14 |
| | | 4 | PKGREVISION= 1 |
4 | CATEGORIES= devel | | 5 | CATEGORIES= devel |
5 | MASTER_SITES= http://www.samba.org/ftp/talloc/ | | 6 | MASTER_SITES= http://www.samba.org/ftp/talloc/ |
6 | | | 7 | |
7 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
8 | HOMEPAGE= https://talloc.samba.org/talloc/doc/html/index.html | | 9 | HOMEPAGE= https://talloc.samba.org/talloc/doc/html/index.html |
9 | COMMENT= Hierarchical pool based memory allocator with destructors | | 10 | COMMENT= Hierarchical pool based memory allocator with destructors |
10 | LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3 | | 11 | LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3 |
11 | | | 12 | |
12 | BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt | | 13 | BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt |
| | | 14 | BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl |
13 | | | 15 | |
14 | USE_TOOLS+= pkg-config | | 16 | USE_TOOLS+= pkg-config |
15 | HAS_CONFIGURE= yes # wrapper script around WAF | | 17 | HAS_CONFIGURE= yes |
| | | 18 | CONFIG_SHELL= ${PYTHONBIN} |
| | | 19 | CONFIGURE_SCRIPT= ${WRKSRC}/buildtools/bin/waf |
| | | 20 | CONFIGURE_ARGS+= configure |
| | | 21 | CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} |
| | | 22 | CONFIGURE_ARGS+= --abi-check-disable |
| | | 23 | CONFIGURE_ARGS+= --disable-symbol-versions |
| | | 24 | .if defined(MAKE_JOBS) && !empty(MAKE_JOBS) && !(defined(MAKE_JOBS_SAFE) && !empty(MAKE_JOBS_SAFE:M[nN][oO])) |
| | | 25 | CONFIGURE_ARGS+= --jobs=${MAKE_JOBS} |
| | | 26 | .else |
| | | 27 | CONFIGURE_ARGS+= --jobs=1 |
| | | 28 | .endif |
16 | TEST_TARGET= test | | 29 | TEST_TARGET= test |
17 | | | 30 | |
18 | PKGCONFIG_OVERRIDE+= talloc.pc.in | | 31 | PKGCONFIG_OVERRIDE+= talloc.pc.in |
19 | PKGCONFIG_OVERRIDE+= pytalloc-util.pc.in | | 32 | PKGCONFIG_OVERRIDE+= pytalloc-util.pc.in |
20 | PY_PATCHPLIST= yes | | | |
21 | | | 33 | |
22 | PYTHON_VERSIONS_ACCEPTED= 27 # not yet ported as of 2.1.0 | | 34 | PYTHON_VERSIONS_ACCEPTED= 27 # not yet ported as of 2.1.0 |
23 | | | 35 | |
24 | # include/talloc.h | | 36 | # include/talloc.h |
25 | CONFLICTS+= samba<=4.6.8nb3 | | 37 | CONFLICTS+= samba<=4.6.8nb3 |
26 | | | 38 | |
27 | REPLACE_PYTHON+= buildtools/bin/waf | | 39 | REPLACE_PYTHON+= buildtools/bin/waf |
28 | REPLACE_PYTHON+= buildtools/wafsamba/__init__.py | | 40 | REPLACE_PYTHON+= buildtools/wafsamba/__init__.py |
29 | REPLACE_PYTHON+= buildtools/wafsamba/samba_python.py | | 41 | REPLACE_PYTHON+= buildtools/wafsamba/samba_python.py |
30 | REPLACE_PYTHON+= buildtools/wafsamba/symbols.py | | 42 | REPLACE_PYTHON+= buildtools/wafsamba/symbols.py |
31 | REPLACE_PYTHON+= buildtools/wafsamba/wscript | | 43 | REPLACE_PYTHON+= buildtools/wafsamba/wscript |
32 | REPLACE_PYTHON+= lib/replace/system/wscript_configure | | 44 | REPLACE_PYTHON+= lib/replace/system/wscript_configure |
33 | REPLACE_PYTHON+= lib/replace/wscript | | 45 | REPLACE_PYTHON+= lib/replace/wscript |
34 | REPLACE_PYTHON+= wscript | | 46 | REPLACE_PYTHON+= wscript |
35 | | | 47 | |
36 | .include "../../mk/bsd.prefs.mk" | | 48 | SUBST_CLASSES+= docbook |
37 | | | 49 | SUBST_MESSAGE.docbook= Fixing docbook URLs. |
38 | # Fix install names of libraries on Darwin. | | 50 | SUBST_FILES.docbook+= buildtools/wafsamba/samba_conftests.py |
39 | # Upstream bug report: https://bugzilla.samba.org/show_bug.cgi?id=10791 | | 51 | SUBST_FILES.docbook+= buildtools/wafsamba/wafsamba.py |
40 | post-install: | | 52 | SUBST_STAGE.docbook= pre-configure |
41 | .if ${OPSYS} == "Darwin" | | 53 | SUBST_SED.docbook+= -e 's,http://docbook.sourceforge.net/release/xsl/current,${PREFIX}/share/xsl/docbook,g' |
42 | install_name_tool \ | | | |
43 | -id \ | | | |
44 | ${PREFIX}/lib/libpytalloc-util.${PKGVERSION_NOREV}.dylib \ | | | |
45 | -change \ | | | |
46 | ${WRKSRC}/bin/default/libtalloc.dylib \ | | | |
47 | ${PREFIX}/lib/libtalloc.dylib \ | | | |
48 | ${DESTDIR}${PREFIX}/lib/libpytalloc-util.${PKGVERSION_NOREV}.dylib | | | |
49 | install_name_tool \ | | | |
50 | -id \ | | | |
51 | ${PREFIX}/lib/libtalloc.${PKGVERSION_NOREV}.dylib \ | | | |
52 | ${DESTDIR}${PREFIX}/lib/libtalloc.${PKGVERSION_NOREV}.dylib | | | |
53 | install_name_tool \ | | | |
54 | -change \ | | | |
55 | ${WRKSRC}/bin/default/libpytalloc-util.dylib \ | | | |
56 | ${PREFIX}/lib/libpytalloc-util.dylib \ | | | |
57 | -change \ | | | |
58 | ${WRKSRC}/bin/default/libtalloc.dylib \ | | | |
59 | ${PREFIX}/lib/libtalloc.dylib \ | | | |
60 | ${DESTDIR}${PREFIX}/${PYSITELIB}/talloc.so | | | |
61 | .endif | | | |
62 | | | 54 | |
| | | 55 | PY_PATCHPLIST= yes |
63 | .include "../../lang/python/application.mk" | | 56 | .include "../../lang/python/application.mk" |
64 | .include "../../lang/python/extension.mk" | | 57 | .include "../../lang/python/extension.mk" |
65 | .include "../../mk/bsd.pkg.mk" | | 58 | .include "../../mk/bsd.pkg.mk" |