pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/libsvm



Module Name:    pkgsrc
Committed By:   minskim
Date:           Thu Oct 25 21:46:03 UTC 2018

Modified Files:
        pkgsrc/math/libsvm: Makefile

Log Message:
math/libsvm: Fix install_name on Darwin


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/math/libsvm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/libsvm/Makefile
diff -u pkgsrc/math/libsvm/Makefile:1.6 pkgsrc/math/libsvm/Makefile:1.7
--- pkgsrc/math/libsvm/Makefile:1.6     Wed Nov 15 22:13:38 2017
+++ pkgsrc/math/libsvm/Makefile Thu Oct 25 21:46:03 2018
@@ -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/e
 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"



Home | Main Index | Thread Index | Old Index