diff options
author | cheusov <cheusov> | 2014-10-19 22:11:22 +0000 |
---|---|---|
committer | cheusov <cheusov> | 2014-10-19 22:11:22 +0000 |
commit | 97dc45350d0cb914586ee7a7eb53af0747208643 (patch) | |
tree | 214a03627a20a48752ef98eaca1f74b05978410f /math | |
parent | 3310d86b39a19988ffed8f02673f2f64a864c5ed (diff) | |
download | pkgsrc-97dc45350d0cb914586ee7a7eb53af0747208643.tar.gz |
Fix hardcoded paths to executables; ++pkgrevision
Diffstat (limited to 'math')
-rw-r--r-- | math/libsvm/Makefile | 14 |
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 |