diff options
author | obache <obache> | 2012-02-27 11:24:13 +0000 |
---|---|---|
committer | obache <obache> | 2012-02-27 11:24:13 +0000 |
commit | 604e9ba58e1ddfc6c38984f35f23e66b5e834c82 (patch) | |
tree | 90500082af66219ec8a003d002c5f7d792eb2a7c /textproc | |
parent | f3173f4d97438b291f45650ef59d3cf979c98d00 (diff) | |
download | pkgsrc-604e9ba58e1ddfc6c38984f35f23e66b5e834c82.tar.gz |
Re-import textproc/mecab-base version 0.98 as textproc/mecab-base09.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/mecab-base09/DESCR | 1 | ||||
-rw-r--r-- | textproc/mecab-base09/Makefile | 51 | ||||
-rw-r--r-- | textproc/mecab-base09/PLIST | 12 | ||||
-rw-r--r-- | textproc/mecab-base09/buildlink3.mk | 16 | ||||
-rw-r--r-- | textproc/mecab-base09/distinfo | 7 | ||||
-rw-r--r-- | textproc/mecab-base09/patches/patch-aa | 17 | ||||
-rw-r--r-- | textproc/mecab-base09/patches/patch-ab | 17 |
7 files changed, 121 insertions, 0 deletions
diff --git a/textproc/mecab-base09/DESCR b/textproc/mecab-base09/DESCR new file mode 100644 index 00000000000..3ea9f4b52bf --- /dev/null +++ b/textproc/mecab-base09/DESCR @@ -0,0 +1 @@ +Yet Another Part-of-Speech and Morphological Analyzer diff --git a/textproc/mecab-base09/Makefile b/textproc/mecab-base09/Makefile new file mode 100644 index 00000000000..c5eb159ae52 --- /dev/null +++ b/textproc/mecab-base09/Makefile @@ -0,0 +1,51 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/02/27 11:24:13 obache Exp $ +# + +DISTNAME= mecab-0.98 +PKGNAME= mecab-base-0.98 +CATEGORIES= japanese textproc +MASTER_SITES= http://mecab.googlecode.com/files/ + +MAINTAINER= obache@NetBSD.org +HOMEPAGE= http://mecab.sourceforge.net/ +COMMENT= Yet Another Part-of-Speech and Morphological Analyzer +LICENSE= gnu-gpl-v2 OR gnu-lgpl-v2.1 OR modified-bsd + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_LANGUAGES= c c++ +USE_LIBTOOL= yes +OWN_DIRS= ${PREFIX:Q}/lib/mecab/dic + +.include "../../mk/bsd.prefs.mk" +.include "../../mk/compiler.mk" + +.if ${OPSYS} == "SunOS" +USE_TOOLS+= gmake +. if !empty(CC_VERSION:Mgcc-4.[6-9].*) +CFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -std=c99 +. endif +.endif + +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} + +TEST_TARGET= check + +EGDIR= ${PREFIX}/share/examples/mecab +CONF_FILES= ${EGDIR:Q}/mecabrc ${PKG_SYSCONFDIR:Q}/mecabrc + +SUBST_CLASSES+= confdir +SUBST_STAGE.confdir= pre-configure +SUBST_FILES.confdir= Makefile.in +SUBST_SED.confdir= -e "s,\$$(sysconfdir),${EGDIR}," + +SUBST_CLASSES+= pthread +SUBST_STAGE.pthread= pre-configure +SUBST_FILES.pthread= configure +SUBST_SED.pthread= -e 's|-lpthread||g' + +PTHREAD_AUTO_VARS= yes + +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/mecab-base09/PLIST b/textproc/mecab-base09/PLIST new file mode 100644 index 00000000000..3d438b721ac --- /dev/null +++ b/textproc/mecab-base09/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/02/27 11:24:13 obache Exp $ +bin/mecab +bin/mecab-config +include/mecab.h +lib/libmecab.la +libexec/mecab/mecab-cost-train +libexec/mecab/mecab-dict-gen +libexec/mecab/mecab-dict-index +libexec/mecab/mecab-system-eval +libexec/mecab/mecab-test-gen +man/man1/mecab.1 +share/examples/mecab/mecabrc diff --git a/textproc/mecab-base09/buildlink3.mk b/textproc/mecab-base09/buildlink3.mk new file mode 100644 index 00000000000..7eef3320641 --- /dev/null +++ b/textproc/mecab-base09/buildlink3.mk @@ -0,0 +1,16 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2012/02/27 11:24:13 obache Exp $ + +BUILDLINK_TREE+= mecab-base + +.if !defined(MECAB_BASE_BUILDLINK3_MK) +MECAB_BASE_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.mecab-base+= mecab-base>=0.90<0.99 +BUILDLINK_PKGSRCDIR.mecab-base?= ../../textproc/mecab-base09 +BUILDLINK_FILES.mecab-base+= include/mecab.h +BUILDLINK_FILES.mecab-base+= lib/libmecab.* + +.include "../../mk/pthread.buildlink3.mk" +.endif # MECAB_BASE_BUILDLINK3_MK + +BUILDLINK_TREE+= -mecab-base diff --git a/textproc/mecab-base09/distinfo b/textproc/mecab-base09/distinfo new file mode 100644 index 00000000000..22581578367 --- /dev/null +++ b/textproc/mecab-base09/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/02/27 11:24:13 obache Exp $ + +SHA1 (mecab-0.98.tar.gz) = 8977d7760638ec65132e1f9bfc66655ac761f964 +RMD160 (mecab-0.98.tar.gz) = d63f396b2fc1b979f98213ba1b0b86a3a5c77cbd +Size (mecab-0.98.tar.gz) = 1424588 bytes +SHA1 (patch-aa) = bb92e6f8d687792770b39bb77be49f12352a625e +SHA1 (patch-ab) = 71b79230e41ee06dcd4501807c42092e0e0ed903 diff --git a/textproc/mecab-base09/patches/patch-aa b/textproc/mecab-base09/patches/patch-aa new file mode 100644 index 00000000000..955d0de920a --- /dev/null +++ b/textproc/mecab-base09/patches/patch-aa @@ -0,0 +1,17 @@ +$NetBSD: patch-aa,v 1.1.1.1 2012/02/27 11:24:13 obache Exp $ + +* Use own optimization flags. + +--- configure.orig 2009-09-27 08:02:36.000000000 +0000 ++++ configure +@@ -21593,8 +21593,8 @@ $as_echo "$as_me: error: \"SUN make does + fi + + if test -n "$GCC"; then +- CFLAGS="-O3 -Wall " +- CXXFLAGS="-O3 -Wall " ++ CFLAGS="${CFLAGS} -Wall " ++ CXXFLAGS="${CXXFLAGS} -Wall " + fi + + diff --git a/textproc/mecab-base09/patches/patch-ab b/textproc/mecab-base09/patches/patch-ab new file mode 100644 index 00000000000..7fee6d2fb29 --- /dev/null +++ b/textproc/mecab-base09/patches/patch-ab @@ -0,0 +1,17 @@ +$NetBSD: patch-ab,v 1.1.1.1 2012/02/27 11:24:13 obache Exp $ + +* Use own optimization flags. + +--- configure.in.orig 2009-09-27 08:02:17.000000000 +0000 ++++ configure.in +@@ -98,8 +98,8 @@ dnl + dnl check gcc + dnl + if test -n "$GCC"; then +- CFLAGS="-O3 -Wall " +- CXXFLAGS="-O3 -Wall " ++ CFLAGS="${CFLAGS} -Wall " ++ CXXFLAGS="${CXXFLAGS} -Wall " + fi + + dnl |