summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2016-03-18 12:54:57 +0000
committerwiedi <wiedi@pkgsrc.org>2016-03-18 12:54:57 +0000
commita93f463040f740545352319669667ae4c6d246a8 (patch)
treea27557f5f4d6a8f694fb0e0f556a7e9d47f9ab12 /math
parent859e454e49e13ff21918ceff5a4bc16bc9283b93 (diff)
downloadpkgsrc-a93f463040f740545352319669667ae4c6d246a8.tar.gz
Fix "relative library path" on Darwin
Diffstat (limited to 'math')
-rw-r--r--math/py-scipy/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/math/py-scipy/Makefile b/math/py-scipy/Makefile
index a7f72c2e973..e61e6c83f0a 100644
--- a/math/py-scipy/Makefile
+++ b/math/py-scipy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2016/02/25 15:26:55 jperkin Exp $
+# $NetBSD: Makefile,v 1.19 2016/03/18 12:54:57 wiedi Exp $
DISTNAME= scipy-0.15.1
PKGNAME= ${PYPKGPREFIX}-scipy-0.15.1
@@ -88,6 +88,19 @@ REPLACE_PYTHON+= scipy/special/spfun_stats.py
REPLACE_PYTHON+= scipy/stats/setup.py
REPLACE_PYTHON+= scipy/weave/setup.py
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+.PHONY: fix-darwin-install-name
+post-install: fix-darwin-install-name
+fix-darwin-install-name:
+ ${FIND} ${DESTDIR}${PREFIX} -name "*.so" | while read lib; do \
+ libname=`basename $${lib}`; \
+ libdir=`dirname $${lib} | sed -e 's,${DESTDIR},,'`; \
+ install_name_tool -id $${libdir}/$${libname} $${lib}; \
+ done
+.endif
+
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../math/fftw/buildlink3.mk"