summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
Diffstat (limited to 'textproc')
-rw-r--r--textproc/mecab/DESCR1
-rw-r--r--textproc/mecab/Makefile19
-rw-r--r--textproc/mecab/Makefile.common10
-rw-r--r--textproc/mecab/PLIST2
-rw-r--r--textproc/mecab/buildlink3.mk21
5 files changed, 53 insertions, 0 deletions
diff --git a/textproc/mecab/DESCR b/textproc/mecab/DESCR
new file mode 100644
index 00000000000..3ea9f4b52bf
--- /dev/null
+++ b/textproc/mecab/DESCR
@@ -0,0 +1 @@
+Yet Another Part-of-Speech and Morphological Analyzer
diff --git a/textproc/mecab/Makefile b/textproc/mecab/Makefile
new file mode 100644
index 00000000000..93ec23dcae8
--- /dev/null
+++ b/textproc/mecab/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/05/12 13:48:24 obache Exp $
+
+.include "Makefile.common"
+
+DISTNAME= mecab-${MECAB_VERSION}
+DISTFILES= #empty
+
+COMMENT= Yet Another Part-of-Speech and Morphological Analyzer
+
+DEPENDS+= {mecab-ipadic>=2.7.0,mecab-jumandic>=5.1}:../../textproc/mecab-ipadic
+
+NO_CHECKSUM= yes
+NO_CONFIGURE= yes
+NO_BUILD= yes
+
+do-install: #empty
+
+.include "../../textproc/mecab-base/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/mecab/Makefile.common b/textproc/mecab/Makefile.common
new file mode 100644
index 00000000000..a073abce3e6
--- /dev/null
+++ b/textproc/mecab/Makefile.common
@@ -0,0 +1,10 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2007/05/12 13:48:24 obache Exp $
+#
+
+MECAB_VERSION= 0.95
+
+CATEGORIES= japanese textproc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mecab/}
+
+MAINTAINER= obache@NetBSD.org
+HOMEPAGE= http://mecab.sourceforge.net/
diff --git a/textproc/mecab/PLIST b/textproc/mecab/PLIST
new file mode 100644
index 00000000000..8df898b8e67
--- /dev/null
+++ b/textproc/mecab/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/12 13:48:24 obache Exp $
+@comment this plist intentionally left empty
diff --git a/textproc/mecab/buildlink3.mk b/textproc/mecab/buildlink3.mk
new file mode 100644
index 00000000000..fda3b775696
--- /dev/null
+++ b/textproc/mecab/buildlink3.mk
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/05/12 13:48:24 obache Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+MECAB_BUILDLINK3_MK:= ${MECAB_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= mecab
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nmecab}
+BUILDLINK_PACKAGES+= mecab
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}mecab
+
+.if ${MECAB_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.mecab+= mecab>=0.90
+BUILDLINK_PKGSRCDIR.mecab?= ../../textproc/mecab
+.endif # MECAB_BUILDLINK3_MK
+
+.include "../../textproc/mecab-base/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}