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 | |
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')
-rw-r--r-- | science/Makefile | 1 | ||||
-rw-r--r-- | science/svmlight/Makefile | 43 | ||||
-rw-r--r-- | science/svmlight/distinfo | 6 | ||||
-rw-r--r-- | science/svmlight/pkg-descr | 18 | ||||
-rw-r--r-- | science/svmlight/pkg-plist | 8 |
5 files changed, 76 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile index 3a0f6588f5ea..7ef8337762d1 100644 --- a/science/Makefile +++ b/science/Makefile @@ -81,6 +81,7 @@ SUBDIR += ruby-dcl SUBDIR += ruby-gphys SUBDIR += simlib + SUBDIR += svmlight SUBDIR += szip SUBDIR += udunits SUBDIR += v_sim 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> diff --git a/science/svmlight/distinfo b/science/svmlight/distinfo new file mode 100644 index 000000000000..7042c67762e2 --- /dev/null +++ b/science/svmlight/distinfo @@ -0,0 +1,6 @@ +MD5 (svm_light.tar.gz) = 22dab64a89dbb01141f87641141e75cc +SHA256 (svm_light.tar.gz) = 213177ac93b60055439f0b6742d4b4e728e4401f017b8facbe2e808d4143fb11 +SIZE (svm_light.tar.gz) = 50121 +MD5 (SVMLight.patch) = 53426a955bfbdaa0c0a03390df6e2f35 +SHA256 (SVMLight.patch) = 926f6043d43ec174c419fe58ecf291711949daa3d4da89783a8f8cf572e09357 +SIZE (SVMLight.patch) = 10557 diff --git a/science/svmlight/pkg-descr b/science/svmlight/pkg-descr new file mode 100644 index 000000000000..d8720ac619ea --- /dev/null +++ b/science/svmlight/pkg-descr @@ -0,0 +1,18 @@ +SVMlight is an implementation of Vapnik's Support Vector Machine +[Vapnik, 1995] for the problem of pattern recognition, for the problem +of regression, and for the problem of learning a ranking function. The +optimization algorithms used in SVMlight are described in [Joachims, +2002a ]. [Joachims, 1999a]. The algorithm has scalable memory +requirements and can handle problems with many thousands of support +vectors efficiently. + +The software also provides methods for assessing the generalization +performance efficiently. It includes two efficient estimation methods +for both error rate and precision/recall. XiAlpha-estimates [Joachims, +2002a, Joachims, 2000b] can be computed at essentially no +computational expense, but they are conservatively biased. Almost +unbiased estimates provides leave-one-out testing. SVMlight exploits +that the results of most leave-one-outs (often more than 99%) are +predetermined and need not be computed [Joachims, 2002a]. + +WWW: http://svmlight.joachims.org/ diff --git a/science/svmlight/pkg-plist b/science/svmlight/pkg-plist new file mode 100644 index 000000000000..671d4ebc752b --- /dev/null +++ b/science/svmlight/pkg-plist @@ -0,0 +1,8 @@ +@comment $FreeBSD$ +bin/svm_classify +bin/svm_learn +lib/libsvmlight.a +lib/libsvmlight.so +lib/libsvmlight.so.1 +%%DOCSDIR%%/LICENSE.txt +@dirrm %%DOCSDIR%% |