summaryrefslogtreecommitdiff
path: root/math/TinySVM
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-05-19 11:47:15 +0000
committerobache <obache@pkgsrc.org>2010-05-19 11:47:15 +0000
commitdb9b4a64bbcef373b43d092f4ab9c882daf8ebfa (patch)
treec60865558e67a49dc2932f50a1f4854ff5448a7e /math/TinySVM
parentd4fe0ae53d1cf1e5cbe10a10002103678bc29951 (diff)
downloadpkgsrc-db9b4a64bbcef373b43d092f4ab9c882daf8ebfa.tar.gz
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.
Diffstat (limited to 'math/TinySVM')
-rw-r--r--math/TinySVM/DESCR5
-rw-r--r--math/TinySVM/Makefile21
-rw-r--r--math/TinySVM/PLIST16
-rw-r--r--math/TinySVM/buildlink3.mk12
-rw-r--r--math/TinySVM/distinfo6
-rw-r--r--math/TinySVM/patches/patch-aa14
6 files changed, 74 insertions, 0 deletions
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);