summaryrefslogtreecommitdiff
path: root/textproc/py-libxml2
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-07-13 11:31:58 +0000
committerjperkin <jperkin@pkgsrc.org>2018-07-13 11:31:58 +0000
commite279ffa9eefb96c01392fe4d7b2d71615d765402 (patch)
treec3e761009403c335b922e29114b7123b0d99e804 /textproc/py-libxml2
parent2b288fe367ba20b9bec82ff09ee68820be8173fc (diff)
downloadpkgsrc-e279ffa9eefb96c01392fe4d7b2d71615d765402.tar.gz
py-libxml2: Fix install_name on Darwin.
Diffstat (limited to 'textproc/py-libxml2')
-rw-r--r--textproc/py-libxml2/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/textproc/py-libxml2/Makefile b/textproc/py-libxml2/Makefile
index 66e6a15feb5..f70405184ca 100644
--- a/textproc/py-libxml2/Makefile
+++ b/textproc/py-libxml2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.61 2018/03/11 17:49:53 wiz Exp $
+# $NetBSD: Makefile,v 1.62 2018/07/13 11:31:58 jperkin Exp $
.include "../../textproc/libxml2/Makefile.common"
@@ -22,6 +22,15 @@ SUBST_SED.setup+= -e "/^\"/s,/usr/local/include,${BUILDLINK_PREFIX.iconv}/includ
BUILDLINK_TRANSFORM.Darwin+= opt:-bundle:-dynamiclib
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+post-install: fix-darwin-install-name
+fix-darwin-install-name:
+ install_name_tool -id ${PREFIX}/${PYSITELIB}/libxml2mod.so \
+ ${DESTDIR}${PREFIX}/${PYSITELIB}/libxml2mod.so
+.endif
+
EGG_NAME= ${DISTNAME:S/-/_python-/}
BUILD_DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat