summaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2001-12-19 03:44:59 +0000
committerPete Fritchman <petef@FreeBSD.org>2001-12-19 03:44:59 +0000
commitecefb5ebe956e1524bd701a824a5000d80681a7a (patch)
tree2d7a11b8c02708e367bc2b4ca215e7e1d8b9b44c /science
parentAdd xjumpx 1.4, an improved version of xjump. (diff)
Add libsvm 2.33, a library for Support Vector Machines.
PR: 32997 Submitted by: Chia-Hsing Yu <davidyu@oio.cx>
Notes
Notes: svn path=/head/; revision=51781
Diffstat (limited to 'science')
-rw-r--r--science/Makefile1
-rw-r--r--science/libsvm/Makefile22
-rw-r--r--science/libsvm/distinfo1
-rw-r--r--science/libsvm/files/patch-Makefile20
-rw-r--r--science/libsvm/pkg-comment1
-rw-r--r--science/libsvm/pkg-descr19
-rw-r--r--science/libsvm/pkg-plist6
7 files changed, 70 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index b3f4069079d8..c31bca33ed7e 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -3,6 +3,7 @@
SUBDIR += chemtool
SUBDIR += clhep
+ SUBDIR += libsvm
SUBDIR += mpqc
SUBDIR += xmakemol
diff --git a/science/libsvm/Makefile b/science/libsvm/Makefile
new file mode 100644
index 000000000000..729e15d2c99c
--- /dev/null
+++ b/science/libsvm/Makefile
@@ -0,0 +1,22 @@
+# New ports collection Makefile for: libsvm
+# Date created: Oct 28 2001
+# Whom: Chia-Hsing Yu <davidyu@oio.cx>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libsvm
+PORTVERSION= 2.33
+CATEGORIES= science math
+MASTER_SITES= http://www.csie.ntu.edu.tw/~cjlin/libsvm/
+
+MAINTAINER= davidyu@oio.cx
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/libsvm
+ ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/libsvm
+.endif
+
+.include <bsd.port.mk>
diff --git a/science/libsvm/distinfo b/science/libsvm/distinfo
new file mode 100644
index 000000000000..7089b7787ef0
--- /dev/null
+++ b/science/libsvm/distinfo
@@ -0,0 +1 @@
+MD5 (libsvm-2.33.tar.gz) = 7a8a37463ef2fc95e8f85a3e2d7f1a26
diff --git a/science/libsvm/files/patch-Makefile b/science/libsvm/files/patch-Makefile
new file mode 100644
index 000000000000..3c2c8542f759
--- /dev/null
+++ b/science/libsvm/files/patch-Makefile
@@ -0,0 +1,20 @@
+$FreeBSD$
+
+--- Makefile.orig Sat Sep 22 11:04:16 2001
++++ Makefile Tue Dec 18 22:39:11 2001
+@@ -1,5 +1,5 @@
+-CXXC = g++
+-CFLAGS = -Wall -O3 -g
++CXXC = ${CXX}
++CFLAGS += -g
+
+ all: svm-train svm-predict svm-scale
+
+@@ -13,3 +13,7 @@
+ $(CXXC) $(CFLAGS) -c svm.cpp
+ clean:
+ rm -f *~ svm.o svm-train svm-predict svm-scale
++
++install:
++ install -d ${PREFIX}/bin/
++ install -s -c -m 755 svm-train svm-predict svm-scale ${PREFIX}/bin/
diff --git a/science/libsvm/pkg-comment b/science/libsvm/pkg-comment
new file mode 100644
index 000000000000..837cd2448e65
--- /dev/null
+++ b/science/libsvm/pkg-comment
@@ -0,0 +1 @@
+A library for Support Vector Machines
diff --git a/science/libsvm/pkg-descr b/science/libsvm/pkg-descr
new file mode 100644
index 000000000000..95d31e4c9d00
--- /dev/null
+++ b/science/libsvm/pkg-descr
@@ -0,0 +1,19 @@
+LIBSVM is an integrated software for support vector classification, (C-SVC,
+nu-SVC ), regression (epsilon-SVR, nu-SVR) and distribution estimation
+(one-class SVM ). It supports multi-class classification. The basic algorithm
+is a simplification of both SMO by Platt and SVMLight by Joachims. It is also
+a simplification of the modification 2 of SMO by Keerthi et al.
+
+Our goal is to help users from other fields to easily use SVM as a tool.
+LIBSVM provides a simple interface where users can easily link it with their
+own programs. Main features of LIBSVM include
+
+Different SVM formulations
+Efficient multi-class classification
+Cross validation for model selection
+Weighted SVM for unbalanced data
+Both C++ and Java sources
+GUI demonstrating SVM classification and regression
+
+WWW: http://www.csie.ntu.edu.tw/~cjlin/libsvm/
+Author: Chih-Chung Chang and Chih-Jen Lin <cjlin@csie.ntu.edu.tw>
diff --git a/science/libsvm/pkg-plist b/science/libsvm/pkg-plist
new file mode 100644
index 000000000000..0e12818f1da0
--- /dev/null
+++ b/science/libsvm/pkg-plist
@@ -0,0 +1,6 @@
+bin/svm-predict
+bin/svm-scale
+bin/svm-train
+%%PORTDOCS%%share/doc/libsvm/README
+%%PORTDOCS%%share/doc/libsvm/COPYRIGHT
+%%PORTDOCS%%@dirrm share/doc/libsvm