diff options
author | obache <obache@pkgsrc.org> | 2013-05-22 13:07:47 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-05-22 13:07:47 +0000 |
commit | b0ffdc9500e98b3429b90f103f29ae390c60ed49 (patch) | |
tree | b302eb0bbd255da9544c6d1032063cea856d487b /textproc | |
parent | 3d1112ce79262b6d5c36d613755efa8aaadaeb16 (diff) | |
download | pkgsrc-b0ffdc9500e98b3429b90f103f29ae390c60ed49.tar.gz |
Import CRF++-0.58 as textproc/CRF++.
CRF++ is a simple, customizable, and open source implementation of Conditional
Random Fields (CRFs) for segmenting/labeling sequential data. CRF++ is designed
for generic purpose and will be applied to a variety of NLP tasks, such as Named
Entity Recognition, Information Extraction and Text Chunking.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/CRF++/DESCR | 4 | ||||
-rw-r--r-- | textproc/CRF++/Makefile | 23 | ||||
-rw-r--r-- | textproc/CRF++/PLIST | 5 | ||||
-rw-r--r-- | textproc/CRF++/buildlink3.mk | 12 | ||||
-rw-r--r-- | textproc/CRF++/distinfo | 6 | ||||
-rw-r--r-- | textproc/CRF++/hacks.mk | 15 | ||||
-rw-r--r-- | textproc/CRF++/patches/patch-configure | 17 |
7 files changed, 82 insertions, 0 deletions
diff --git a/textproc/CRF++/DESCR b/textproc/CRF++/DESCR new file mode 100644 index 00000000000..4f108b0a927 --- /dev/null +++ b/textproc/CRF++/DESCR @@ -0,0 +1,4 @@ +CRF++ is a simple, customizable, and open source implementation of Conditional +Random Fields (CRFs) for segmenting/labeling sequential data. CRF++ is designed +for generic purpose and will be applied to a variety of NLP tasks, such as Named +Entity Recognition, Information Extraction and Text Chunking. diff --git a/textproc/CRF++/Makefile b/textproc/CRF++/Makefile new file mode 100644 index 00000000000..3d5fa51d31c --- /dev/null +++ b/textproc/CRF++/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1 2013/05/22 13:07:47 obache Exp $ +# + +DISTNAME= CRF++-0.58 +CATEGORIES= textproc +MASTER_SITES= http://crfpp.googlecode.com/files/ + +MAINTAINER= obache@NetBSD.org +HOMEPAGE= http://code.google.com/p/crfpp +COMMENT= Yet Another CRF toolkit +LICENSE= gnu-lgpl-v2.1 OR 2-clause-bsd + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_LANGUAGES= c c++ + +PTHREAD_AUTO_VARS= yes +SUBST_CLASSES+= pthread_flags +SUBST_STAGE.pthread_flags= pre-configure +SUBST_FILES.pthread_flags= configure +SUBST_SED.pthread_flags= -e 's/-lpthread/'${PTHRAD_LIBS:M*:Q}' '${PTHREAD_LDFLAGS:M*:Q}'/' +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/CRF++/PLIST b/textproc/CRF++/PLIST new file mode 100644 index 00000000000..eedf346a41f --- /dev/null +++ b/textproc/CRF++/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1 2013/05/22 13:07:47 obache Exp $ +bin/crf_learn +bin/crf_test +include/crfpp.h +lib/libcrfpp.la diff --git a/textproc/CRF++/buildlink3.mk b/textproc/CRF++/buildlink3.mk new file mode 100644 index 00000000000..73a92153f6d --- /dev/null +++ b/textproc/CRF++/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1 2013/05/22 13:07:47 obache Exp $ + +BUILDLINK_TREE+= crfpp + +.if !defined(CRFPP_BUILDLINK3_MK) +CRFPP_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.crfpp+= CRF++>=0.50 +BUILDLINK_PKGSRCDIR.crfpp?= ../../textproc/CRF++ +.endif # CRFPP_BUILDLINK3_MK + +BUILDLINK_TREE+= -crfpp diff --git a/textproc/CRF++/distinfo b/textproc/CRF++/distinfo new file mode 100644 index 00000000000..88593556bc7 --- /dev/null +++ b/textproc/CRF++/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2013/05/22 13:07:47 obache Exp $ + +SHA1 (CRF++-0.58.tar.gz) = 979a686a6d73d14cdd0c96a310888fb6bffd2e91 +RMD160 (CRF++-0.58.tar.gz) = 3c70d129f06d88e13ece94d505dd417668f0a7bc +Size (CRF++-0.58.tar.gz) = 790570 bytes +SHA1 (patch-configure) = 5a8a098fff9eaeed841b6de3d2719fc6193764ef diff --git a/textproc/CRF++/hacks.mk b/textproc/CRF++/hacks.mk new file mode 100644 index 00000000000..ca8ce5414d4 --- /dev/null +++ b/textproc/CRF++/hacks.mk @@ -0,0 +1,15 @@ +# $NetBSD: hacks.mk,v 1.1 2013/05/22 13:07:47 obache Exp $ + +.if !defined(CRFPP_HACKS_MK) +CRFPP_HACKS_MK= # defined + +# No TLS support on NetBSD<6 +.if !empty(MACHINE_PLATFORM:MNetBSD-[0-5].*-*) +PKG_HACKS+= netbsd5-disable_tls +SUBST_CLASSES+= disable_tls +SUBST_STAGE.disable_tls= pre-configure +SUBST_FILES.disable_tls= configure +SUBST_SED.disable_tls= -e 's/enable_tls=yes/enable_tls=no/' +.endif + +.endif diff --git a/textproc/CRF++/patches/patch-configure b/textproc/CRF++/patches/patch-configure new file mode 100644 index 00000000000..7d1544673aa --- /dev/null +++ b/textproc/CRF++/patches/patch-configure @@ -0,0 +1,17 @@ +$NetBSD: patch-configure,v 1.1 2013/05/22 13:07:47 obache Exp $ + +* prevent to overwritten CFLAGS and CXXFLAGS + +--- configure.orig 2013-02-08 14:35:50.000000000 +0000 ++++ configure +@@ -15908,10 +15908,6 @@ $as_echo "no" >&6; } + fi + fi + +-if test -n "$GCC"; then +- CFLAGS="-O3 -Wall"; +- CXXFLAGS="-O3 -Wall"; +-fi + + + |