diff options
author | clsung <clsung@FreeBSD.org> | 2006-08-01 23:07:54 +0800 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2006-08-01 23:07:54 +0800 |
commit | ccc675de00f2926fc8e4092217c4f0b81fd04f61 (patch) | |
tree | 28012810194cbfc545b8716ac518fa89e80215bd /science/svmlight/Makefile | |
parent | b92e3ed5de682059f8f9faa69f1141921b90d600 (diff) | |
download | freebsd-ports-gnome-ccc675de00f2926fc8e4092217c4f0b81fd04f61.tar.gz freebsd-ports-gnome-ccc675de00f2926fc8e4092217c4f0b81fd04f61.tar.zst freebsd-ports-gnome-ccc675de00f2926fc8e4092217c4f0b81fd04f61.zip |
Add svmlight 6.01, an implementation of Support Vector Machines (SVMs)
in C.
PR: ports/100944
Submitted by: Gea-Suan Lin <gslin at gslin.org>
Diffstat (limited to 'science/svmlight/Makefile')
-rw-r--r-- | science/svmlight/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/science/svmlight/Makefile b/science/svmlight/Makefile new file mode 100644 index 000000000000..b1a05e96c795 --- /dev/null +++ b/science/svmlight/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: svmlight +# Date created: 2006-07-18 +# Whom: Gea-Suan Lin <gslin@gslin.org> +# +# $FreeBSD$ +# + +PORTNAME= svmlight +PORTVERSION= 6.01 +CATEGORIES= science +MASTER_SITES= http://kodiak.cs.cornell.edu/svm_light/current/ +DISTNAME= svm_light + +PATCH_SITES= http://search.cpan.org/src/KWILLIAMS/Algorithm-SVMLight-0.05/ +PATCHFILES= SVMLight.patch + +MAINTAINER= gslin@gslin.org +COMMENT= An implementation of Support Vector Machines (SVMs) in C + +RESTRICTED= only for education and research + +INSTALLS_SHLIB= yes +MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LD="${CC}" LFLAGS="${CFLAGS}" +USE_GMAKE= yes +WRKSRC= ${WRKDIR} + +post-build: + ${CC} ${CFLAGS} -shared -o ${WRKSRC}/libsvmlight.so.1 ${WRKSRC}/libsvmlight.a + +do-install: +.for file in svm_classify svm_learn + ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin +.endfor + ${INSTALL_DATA} ${WRKSRC}/libsvmlight.* ${PREFIX}/lib + ${LN} -s ${PREFIX}/lib/libsvmlight.so.1 ${PREFIX}/lib/libsvmlight.so +# It's license request, do not remove + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR} + +post-install: + @${CAT} ${WRKSRC}/LICENSE.txt + +.include <bsd.port.mk> |