pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/py-libxml2 py-libxml2: Fix install_name on Da...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/953e3a71ee2b
branches:  trunk
changeset: 310360:953e3a71ee2b
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Jul 13 11:31:58 2018 +0000

description:
py-libxml2: Fix install_name on Darwin.

diffstat:

 textproc/py-libxml2/Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r e19570710ddc -r 953e3a71ee2b textproc/py-libxml2/Makefile
--- a/textproc/py-libxml2/Makefile      Fri Jul 13 11:21:29 2018 +0000
+++ b/textproc/py-libxml2/Makefile      Fri Jul 13 11:31:58 2018 +0000
@@ -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 @@
 
 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



Home | Main Index | Thread Index | Old Index