From a7d1fd17980a17d9c9d95f4a7ef63be0408449d0 Mon Sep 17 00:00:00 2001 From: obache Date: Wed, 19 May 2010 11:47:15 +0000 Subject: Import TinySVM-0.09 as math/TinySVM. TinySVM is an implementation of Support Vector Machines (SVMs) [Vapnik 95], [Vapnik 98] for the problem of pattern recognition. Support Vector Machines is a new generation learning algorithms based on recent advances in statistical learning theory, and applied to large number of real-world applications, such as text categorization, hand-written character recognition. --- math/TinySVM/DESCR | 5 +++++ math/TinySVM/Makefile | 21 +++++++++++++++++++++ math/TinySVM/PLIST | 16 ++++++++++++++++ math/TinySVM/buildlink3.mk | 12 ++++++++++++ math/TinySVM/distinfo | 6 ++++++ math/TinySVM/patches/patch-aa | 14 ++++++++++++++ 6 files changed, 74 insertions(+) create mode 100644 math/TinySVM/DESCR create mode 100644 math/TinySVM/Makefile create mode 100644 math/TinySVM/PLIST create mode 100644 math/TinySVM/buildlink3.mk create mode 100644 math/TinySVM/distinfo create mode 100644 math/TinySVM/patches/patch-aa (limited to 'math') diff --git a/math/TinySVM/DESCR b/math/TinySVM/DESCR new file mode 100644 index 00000000000..ecd6ed324be --- /dev/null +++ b/math/TinySVM/DESCR @@ -0,0 +1,5 @@ +TinySVM is an implementation of Support Vector Machines (SVMs) [Vapnik 95], +[Vapnik 98] for the problem of pattern recognition. Support Vector Machines is a +new generation learning algorithms based on recent advances in statistical +learning theory, and applied to large number of real-world applications, such as +text categorization, hand-written character recognition. diff --git a/math/TinySVM/Makefile b/math/TinySVM/Makefile new file mode 100644 index 00000000000..ee5f1d100e8 --- /dev/null +++ b/math/TinySVM/Makefile @@ -0,0 +1,21 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/05/19 11:47:15 obache Exp $ +# + +DISTNAME= TinySVM-0.09 +CATEGORIES= math +MASTER_SITES= http://www.chasen.org/~taku/software/TinySVM/src/ + +MAINTAINER= obache@NetBSD.org +HOMEPAGE= http://www.chasen.org/~taku/software/TinySVM/ +COMMENT= Tiny Support Vector Machines +LICENSE= gnu-lgpl-v2.1 + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_LANGUAGES= c c++ + +TEST_TARGET= check + +.include "../../mk/bsd.pkg.mk" diff --git a/math/TinySVM/PLIST b/math/TinySVM/PLIST new file mode 100644 index 00000000000..06a08e7735b --- /dev/null +++ b/math/TinySVM/PLIST @@ -0,0 +1,16 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2010/05/19 11:47:15 obache Exp $ +bin/svm_classify +bin/svm_learn +bin/svm_model +include/TinySVM/base_example.h +include/TinySVM/classifier.h +include/TinySVM/example.h +include/TinySVM/kernel.h +include/TinySVM/misc.h +include/TinySVM/model.h +include/TinySVM/param.h +include/tinysvm.h +lib/libtinysvm.la +man/man1/svm_classify.1 +man/man1/svm_learn.1 +man/man1/svm_model.1 diff --git a/math/TinySVM/buildlink3.mk b/math/TinySVM/buildlink3.mk new file mode 100644 index 00000000000..6cca6e5e336 --- /dev/null +++ b/math/TinySVM/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/05/19 11:47:15 obache Exp $ + +BUILDLINK_TREE+= TinySVM + +.if !defined(TINYSVM_BUILDLINK3_MK) +TINYSVM_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.TinySVM+= TinySVM>=0.09 +BUILDLINK_PKGSRCDIR.TinySVM?= ../../math/TinySVM +.endif # TINYSVM_BUILDLINK3_MK + +BUILDLINK_TREE+= -TinySVM diff --git a/math/TinySVM/distinfo b/math/TinySVM/distinfo new file mode 100644 index 00000000000..2fafb99dd3f --- /dev/null +++ b/math/TinySVM/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2010/05/19 11:47:15 obache Exp $ + +SHA1 (TinySVM-0.09.tar.gz) = 9c3c36454c475180ef6646d059376f35549cad08 +RMD160 (TinySVM-0.09.tar.gz) = d44586810d4776a251cda4a08b1aa9148108c8e6 +Size (TinySVM-0.09.tar.gz) = 317636 bytes +SHA1 (patch-aa) = bbeefe45ecf7f447eb8b6f692d035b74f01cb7a8 diff --git a/math/TinySVM/patches/patch-aa b/math/TinySVM/patches/patch-aa new file mode 100644 index 00000000000..51b54208258 --- /dev/null +++ b/math/TinySVM/patches/patch-aa @@ -0,0 +1,14 @@ +$NetBSD: patch-aa,v 1.1.1.1 2010/05/19 11:47:15 obache Exp $ + +declaration of C function 'int getopt()' conflicts with unistd.h. + +--- src/getopt.h.orig 2002-08-20 15:31:17.000000000 +0900 ++++ src/getopt.h +@@ -128,7 +128,6 @@ struct option + errors, only prototype getopt for the GNU C library. */ + extern int getopt (int argc, char *const *argv, const char *shortopts); + #else /* not __GNU_LIBRARY__ */ +-extern int getopt (); + #endif /* __GNU_LIBRARY__ */ + extern int getopt_long (int argc, char *const *argv, const char *shortopts, + const struct option *longopts, int *longind); -- cgit v1.2.3