Wed May 22 13:07:47 2013 UTC ()
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.


(obache)
diff -r0 -r1.1 pkgsrc/textproc/CRF++/DESCR
diff -r0 -r1.1 pkgsrc/textproc/CRF++/Makefile
diff -r0 -r1.1 pkgsrc/textproc/CRF++/PLIST
diff -r0 -r1.1 pkgsrc/textproc/CRF++/buildlink3.mk
diff -r0 -r1.1 pkgsrc/textproc/CRF++/distinfo
diff -r0 -r1.1 pkgsrc/textproc/CRF++/hacks.mk
diff -r0 -r1.1 pkgsrc/textproc/CRF++/patches/patch-configure

File Added: pkgsrc/textproc/CRF++/DESCR
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.

File Added: pkgsrc/textproc/CRF++/Makefile
# $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"

File Added: pkgsrc/textproc/CRF++/PLIST
@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

File Added: pkgsrc/textproc/CRF++/buildlink3.mk
# $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

File Added: pkgsrc/textproc/CRF++/distinfo
$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

File Added: pkgsrc/textproc/CRF++/hacks.mk
# $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

File Added: pkgsrc/textproc/CRF++/patches/patch-configure
$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