diff options
author | cheusov <cheusov@pkgsrc.org> | 2014-10-19 22:11:22 +0000 |
---|---|---|
committer | cheusov <cheusov@pkgsrc.org> | 2014-10-19 22:11:22 +0000 |
commit | a7eff76fb2856adf2089afe0be80810002be21c9 (patch) | |
tree | 214a03627a20a48752ef98eaca1f74b05978410f /math | |
parent | 4dbacd5d416dc3da1a38194e0d354cd989afd038 (diff) | |
download | pkgsrc-a7eff76fb2856adf2089afe0be80810002be21c9.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 |