summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorcheusov <cheusov>2014-10-19 22:11:22 +0000
committercheusov <cheusov>2014-10-19 22:11:22 +0000
commit97dc45350d0cb914586ee7a7eb53af0747208643 (patch)
tree214a03627a20a48752ef98eaca1f74b05978410f /math
parent3310d86b39a19988ffed8f02673f2f64a864c5ed (diff)
downloadpkgsrc-97dc45350d0cb914586ee7a7eb53af0747208643.tar.gz
Fix hardcoded paths to executables; ++pkgrevision
Diffstat (limited to 'math')
-rw-r--r--math/libsvm/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/math/libsvm/Makefile b/math/libsvm/Makefile
index ca264de4812..098a1481e93 100644
--- a/math/libsvm/Makefile
+++ b/math/libsvm/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2014/10/19 08:59:31 cheusov Exp $
+# $NetBSD: Makefile,v 1.3 2014/10/19 22:11:22 cheusov Exp $
#
DISTNAME= libsvm-3.18
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= math
MASTER_SITES= http://www.csie.ntu.edu.tw/~cjlin/libsvm/
@@ -18,6 +18,16 @@ AUTO_MKDIRS= yes
REPLACE_PYTHON= tools/*.py
+SUBST_CLASSES+= paths
+SUBST_SED.paths= -e 's,[.][.]/svm-train,${PREFIX}/bin/svm-train,' \
+ -e 's,[.][.]/svm-scale,${PREFIX}/bin/svm-scale,' \
+ -e 's,[.][.]/svm-predict,${PREFIX}/bin/svm-predict,' \
+ -e 's,"[.]/grid[.]py,"${PREFIX}/bin/svm-grid,' \
+ -e 's,/usr/bin/gnuplot,${PREFIX}/bin/gnuplot,'
+SUBST_FILES.paths= tools/grid.py tools/easy.py
+SUBST_STAGE.paths= pre-build
+SUBST_MESSAGE.paths= Fixing hardcoded paths.
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/svm-predict ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/svm-scale ${DESTDIR}${PREFIX}/bin