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/5f9396e2f6ca
branches:  trunk
changeset: 382752:5f9396e2f6ca
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 2fe2600719ea -r 5f9396e2f6ca 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