diff options
author | minskim <minskim@pkgsrc.org> | 2018-10-25 21:46:03 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2018-10-25 21:46:03 +0000 |
commit | 2d40c98143a9fb58aff12c4b1ea7c0c6ce32308c (patch) | |
tree | 0550a350f0eab25d545d423561804b81a7795c43 /math/libsvm | |
parent | d2153ea4ab344e3fa949a9c9c9ef7b68550ef859 (diff) | |
download | pkgsrc-2d40c98143a9fb58aff12c4b1ea7c0c6ce32308c.tar.gz |
math/libsvm: Fix install_name on Darwin
Diffstat (limited to 'math/libsvm')
-rw-r--r-- | math/libsvm/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/math/libsvm/Makefile b/math/libsvm/Makefile index f98c439a2bd..57652933f8c 100644 --- a/math/libsvm/Makefile +++ b/math/libsvm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2017/11/15 22:13:38 wiz Exp $ +# $NetBSD: Makefile,v 1.7 2018/10/25 21:46:03 minskim Exp $ DISTNAME= libsvm-3.20 CATEGORIES= math @@ -27,6 +27,8 @@ SUBST_FILES.paths= tools/grid.py tools/easy.py SUBST_STAGE.paths= pre-build SUBST_MESSAGE.paths= Fixing hardcoded paths. +.include "../../mk/bsd.prefs.mk" + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/svm-predict ${DESTDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/svm-scale ${DESTDIR}${PREFIX}/bin @@ -47,5 +49,13 @@ do-install: ${INSTALL_SCRIPT} ${WRKSRC}/tools/checkdata.py ${DESTDIR}${PREFIX}/bin/svm-checkdata ${INSTALL_SCRIPT} ${WRKSRC}/tools/subset.py ${DESTDIR}${PREFIX}/bin/svm-subset +.if ${OPSYS} == "Darwin" +.PHONY: fix-darwin-install-name +post-install: fix-darwin-install-name +fix-darwin-install-name: + install_name_tool -id ${PREFIX}/lib/libsvm.so.2 \ + ${DESTDIR}${PREFIX}/lib/libsvm.so.2 +.endif + .include "../../lang/python/application.mk" .include "../../mk/bsd.pkg.mk" |