aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2010-11-10 22:06:44 +0800
committerrafan <rafan@FreeBSD.org>2010-11-10 22:06:44 +0800
commitb8fac967f0189b8c956549d20c9b2eb395c438ef (patch)
tree3d15f82fce32ed5b6a80e859e1caa2ff3f40e5f2 /science
parent57fec4d06ba86f462ec9acf907c61bd03d34e17a (diff)
downloadfreebsd-ports-gnome-b8fac967f0189b8c956549d20c9b2eb395c438ef.tar.gz
freebsd-ports-gnome-b8fac967f0189b8c956549d20c9b2eb395c438ef.tar.zst
freebsd-ports-gnome-b8fac967f0189b8c956549d20c9b2eb395c438ef.zip
- Use INSTALL_LIB when installing shared lib and create symlink so configure
script can find it - Install header file for svm library so others can use - Bump PORTREVISION Submitted by: jsa@
Diffstat (limited to 'science')
-rw-r--r--science/libsvm/Makefile5
-rw-r--r--science/libsvm/pkg-plist2
2 files changed, 6 insertions, 1 deletions
diff --git a/science/libsvm/Makefile b/science/libsvm/Makefile
index 3ad5ebb54907..2273fb7ef97c 100644
--- a/science/libsvm/Makefile
+++ b/science/libsvm/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libsvm
PORTVERSION= 3.00
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= science math
MASTER_SITES= http://www.csie.ntu.edu.tw/~cjlin/libsvm/ \
@@ -72,7 +73,9 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/svm-train ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/svm-predict ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/svm-scale ${PREFIX}/bin/
- ${INSTALL_PROGRAM} ${WRKSRC}/libsvm.so.2 ${PREFIX}/lib/
+ ${INSTALL_DATA} ${WRKSRC}/svm.h ${PREFIX}/include/
+ ${INSTALL_LIB} ${WRKSRC}/libsvm.so.2 ${PREFIX}/lib/
+ ${LN} -sf ${PREFIX}/lib/libsvm.so.2 ${PREFIX}/lib/libsvm.so
${MKDIR} ${DATADIR}
for f in ${TOOLS}; do \
${INSTALL_DATA} ${WRKSRC}/$$f ${DATADIR}; \
diff --git a/science/libsvm/pkg-plist b/science/libsvm/pkg-plist
index b5fb85ea60b9..0986413d588f 100644
--- a/science/libsvm/pkg-plist
+++ b/science/libsvm/pkg-plist
@@ -1,6 +1,8 @@
bin/svm-predict
bin/svm-scale
bin/svm-train
+include/svm.h
+lib/libsvm.so
lib/libsvm.so.2
%%DATADIR%%/checkdata.py
%%DATADIR%%/easy.py