[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / talloc

File: [cvs.NetBSD.org] / pkgsrc / devel / talloc / Makefile (download)

Revision 1.27, Tue Jul 3 05:03:14 2018 UTC (5 years, 7 months ago) by adam
Branch: MAIN
Changes since 1.26: +2 -2 lines

extend PYTHON_VERSIONS_ for Python 3.7

# $NetBSD: Makefile,v 1.27 2018/07/03 05:03:14 adam Exp $

DISTNAME=	talloc-2.1.13
CATEGORIES=	devel
MASTER_SITES=	http://www.samba.org/ftp/talloc/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://talloc.samba.org/talloc/doc/html/index.html
COMMENT=	Hierarchical pool based memory allocator with destructors
LICENSE=	gnu-gpl-v3 AND gnu-lgpl-v3

BUILD_DEPENDS+=	libxslt-[0-9]*:../../textproc/libxslt

USE_TOOLS+=		pkg-config
HAS_CONFIGURE=		yes	# wrapper script around WAF
TEST_TARGET=		test

PKGCONFIG_OVERRIDE+=	talloc.pc.in
PKGCONFIG_OVERRIDE+=	pytalloc-util.pc.in
PY_PATCHPLIST=		yes

PYTHON_VERSIONS_INCOMPATIBLE=	34 35 36 37 # not yet ported as of 2.1.0

# include/talloc.h
CONFLICTS+=	samba<=4.6.8nb3

REPLACE_PYTHON+=	buildtools/bin/waf
REPLACE_PYTHON+=	buildtools/wafsamba/__init__.py
REPLACE_PYTHON+=	buildtools/wafsamba/samba_python.py
REPLACE_PYTHON+=	buildtools/wafsamba/symbols.py
REPLACE_PYTHON+=	buildtools/wafsamba/wscript
REPLACE_PYTHON+=	lib/replace/system/wscript_configure
REPLACE_PYTHON+=	lib/replace/wscript
REPLACE_PYTHON+=	wscript

.include "../../mk/bsd.prefs.mk"

# Fix install names of libraries on Darwin.
# Upstream bug report: https://bugzilla.samba.org/show_bug.cgi?id=10791
post-install:
.if ${OPSYS} == "Darwin"
	install_name_tool \
	    -id \
	    ${PREFIX}/lib/libpytalloc-util.${PKGVERSION_NOREV}.dylib \
	    -change \
	    ${WRKSRC}/bin/default/libtalloc.dylib \
	    ${PREFIX}/lib/libtalloc.dylib \
	    ${DESTDIR}${PREFIX}/lib/libpytalloc-util.${PKGVERSION_NOREV}.dylib
	install_name_tool \
	    -id \
	    ${PREFIX}/lib/libtalloc.${PKGVERSION_NOREV}.dylib \
	    ${DESTDIR}${PREFIX}/lib/libtalloc.${PKGVERSION_NOREV}.dylib
	install_name_tool \
	    -change \
	    ${WRKSRC}/bin/default/libpytalloc-util.dylib \
	    ${PREFIX}/lib/libpytalloc-util.dylib \
	    -change \
	    ${WRKSRC}/bin/default/libtalloc.dylib \
	    ${PREFIX}/lib/libtalloc.dylib \
	    ${DESTDIR}${PREFIX}/${PYSITELIB}/talloc.so
.endif

.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"