diff options
author | petef <petef@FreeBSD.org> | 2001-12-19 11:44:59 +0800 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2001-12-19 11:44:59 +0800 |
commit | 48802558c056ef339ce7403301b41009ac4f004d (patch) | |
tree | fe4220ccf2bfa4383d585f9bc154a5eae82a2f50 /science/libsvm | |
parent | 1ced3abecd3189f8c5d28f4d420d436b0c884686 (diff) | |
download | freebsd-ports-gnome-48802558c056ef339ce7403301b41009ac4f004d.tar.gz freebsd-ports-gnome-48802558c056ef339ce7403301b41009ac4f004d.tar.zst freebsd-ports-gnome-48802558c056ef339ce7403301b41009ac4f004d.zip |
Add libsvm 2.33, a library for Support Vector Machines.
PR: 32997
Submitted by: Chia-Hsing Yu <davidyu@oio.cx>
Diffstat (limited to 'science/libsvm')
-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 |
6 files changed, 69 insertions, 0 deletions
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 |