diff options
author | petef <petef@FreeBSD.org> | 2001-12-19 03:44:59 +0000 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2001-12-19 03:44:59 +0000 |
commit | 48802558c056ef339ce7403301b41009ac4f004d (patch) | |
tree | fe4220ccf2bfa4383d585f9bc154a5eae82a2f50 /science | |
parent | 1ced3abecd3189f8c5d28f4d420d436b0c884686 (diff) | |
download | FreeBSD-ports-48802558c056ef339ce7403301b41009ac4f004d.zip FreeBSD-ports-48802558c056ef339ce7403301b41009ac4f004d.tar.gz |
Add libsvm 2.33, a library for Support Vector Machines.
PR: 32997
Submitted by: Chia-Hsing Yu <davidyu@oio.cx>
Diffstat (limited to 'science')
-rw-r--r-- | science/Makefile | 1 | ||||
-rw-r--r-- | science/libsvm/Makefile | 22 | ||||
-rw-r--r-- | science/libsvm/distinfo | 1 | ||||
-rw-r--r-- | science/libsvm/files/patch-Makefile | 20 | ||||
-rw-r--r-- | science/libsvm/pkg-comment | 1 | ||||
-rw-r--r-- | science/libsvm/pkg-descr | 19 | ||||
-rw-r--r-- | science/libsvm/pkg-plist | 6 |
7 files changed, 70 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile index b3f4069..c31bca3 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 0000000..729e15d --- /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 0000000..7089b77 --- /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 0000000..3c2c854 --- /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 0000000..837cd24 --- /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 0000000..95d31e4 --- /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 0000000..0e12818 --- /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 |