diff options
author | wiedi <wiedi@pkgsrc.org> | 2016-03-18 12:54:57 +0000 |
---|---|---|
committer | wiedi <wiedi@pkgsrc.org> | 2016-03-18 12:54:57 +0000 |
commit | ce9e54a01f35dff17089c21acfdd9d8a95373b21 (patch) | |
tree | a27557f5f4d6a8f694fb0e0f556a7e9d47f9ab12 /math | |
parent | 9393abdaffb07ade91697aa6525eeb25421d50ce (diff) | |
download | pkgsrc-ce9e54a01f35dff17089c21acfdd9d8a95373b21.tar.gz |
Fix "relative library path" on Darwin
Diffstat (limited to 'math')
-rw-r--r-- | math/py-scipy/Makefile | 15 |
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" |