summaryrefslogtreecommitdiff
path: root/science/svmlight
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2006-08-01 15:07:54 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2006-08-01 15:07:54 +0000
commit5eebe8264da25d2f038890713fa8236fd86857c4 (patch)
tree54ecb44408dc42cdeef7d4f6626aacda0c252e43 /science/svmlight
parentAdd port www/xpi-mrtech-local-install: (diff)
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>
Notes
Notes: svn path=/head/; revision=169354
Diffstat (limited to 'science/svmlight')
-rw-r--r--science/svmlight/Makefile43
-rw-r--r--science/svmlight/distinfo6
-rw-r--r--science/svmlight/pkg-descr18
-rw-r--r--science/svmlight/pkg-plist8
4 files changed, 75 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>
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%%