pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/libsvm math/libsvm: Fix install_name on Darwin
details: https://anonhg.NetBSD.org/pkgsrc/rev/00978362386e
branches: trunk
changeset: 386655:00978362386e
user: minskim <minskim%pkgsrc.org@localhost>
date: Thu Oct 25 21:46:03 2018 +0000
description:
math/libsvm: Fix install_name on Darwin
diffstat:
math/libsvm/Makefile | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r c3ac87759a5a -r 00978362386e math/libsvm/Makefile
--- a/math/libsvm/Makefile Thu Oct 25 14:02:37 2018 +0000
+++ b/math/libsvm/Makefile Thu Oct 25 21:46:03 2018 +0000
@@ -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_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 @@
${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"
Home |
Main Index |
Thread Index |
Old Index