diff options
author | obache <obache@pkgsrc.org> | 2007-05-12 13:53:46 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2007-05-12 13:53:46 +0000 |
commit | 560931ce7510ba4d399ffa35225b4d3dc99dc065 (patch) | |
tree | 071b0f0200af5a1d19b0a66416b3e3f8914d65d5 /textproc/java-mecab | |
parent | 800ce59e4113bde47081fa7cb69483e259827a06 (diff) | |
download | pkgsrc-560931ce7510ba4d399ffa35225b4d3dc99dc065.tar.gz |
Initial import of java-mecab version 0.95.
MeCab java module.
Diffstat (limited to 'textproc/java-mecab')
-rw-r--r-- | textproc/java-mecab/DESCR | 1 | ||||
-rw-r--r-- | textproc/java-mecab/Makefile | 22 | ||||
-rw-r--r-- | textproc/java-mecab/PLIST | 3 | ||||
-rw-r--r-- | textproc/java-mecab/distinfo | 6 | ||||
-rw-r--r-- | textproc/java-mecab/patches/patch-aa | 28 |
5 files changed, 60 insertions, 0 deletions
diff --git a/textproc/java-mecab/DESCR b/textproc/java-mecab/DESCR new file mode 100644 index 00000000000..c598d44b0a8 --- /dev/null +++ b/textproc/java-mecab/DESCR @@ -0,0 +1 @@ +MeCab java module diff --git a/textproc/java-mecab/Makefile b/textproc/java-mecab/Makefile new file mode 100644 index 00000000000..243ec5246cc --- /dev/null +++ b/textproc/java-mecab/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1.1.1 2007/05/12 13:53:46 obache Exp $ +# + +.include "../../textproc/mecab/Makefile.common" + +DISTNAME= mecab-java-${MECAB_VERSION} +PKGNAME= java-mecab-${MECAB_VERSION} +CATEGORIES+= java + +COMMENT= MeCab java module + +USE_LANGUAGES= c++ + +TEST_TARGET= test + +do-install: + ${INSTALL_LIB} ${WRKSRC:Q}/libMeCab.so ${PREFIX:Q}/lib + ${INSTALL_LIB} ${WRKSRC:Q}/MeCab.jar ${PREFIX:Q}/lib + +.include "../../textproc/mecab/buildlink3.mk" +.include "../../mk/java-vm.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/java-mecab/PLIST b/textproc/java-mecab/PLIST new file mode 100644 index 00000000000..9680e91150b --- /dev/null +++ b/textproc/java-mecab/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/12 13:53:46 obache Exp $ +lib/MeCab.jar +lib/libMeCab.so diff --git a/textproc/java-mecab/distinfo b/textproc/java-mecab/distinfo new file mode 100644 index 00000000000..46e0537d051 --- /dev/null +++ b/textproc/java-mecab/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/05/12 13:53:46 obache Exp $ + +SHA1 (mecab-java-0.95.tar.gz) = 76cb1639486cbcdbfadb2f206a0097e501fc92b8 +RMD160 (mecab-java-0.95.tar.gz) = 604b7e1ffaeda47bc3f281d61af94f02915bdee3 +Size (mecab-java-0.95.tar.gz) = 11444 bytes +SHA1 (patch-aa) = 28cc3dffacefb67acde561547055ffd1fe165696 diff --git a/textproc/java-mecab/patches/patch-aa b/textproc/java-mecab/patches/patch-aa new file mode 100644 index 00000000000..b58a4bbbebe --- /dev/null +++ b/textproc/java-mecab/patches/patch-aa @@ -0,0 +1,28 @@ +$NetBSD: patch-aa,v 1.1.1.1 2007/05/12 13:53:46 obache Exp $ + +--- Makefile.orig 2007-03-12 00:44:08.000000000 +0900 ++++ Makefile +@@ -2,19 +2,17 @@ TARGET=MeCab + JAVAC=javac + JAVA=java + JAR=jar +-CXX=c++ +-INCLUDE=/usr/local/jdk/include + + PACKAGE=org/chasen/mecab + + LIBS=`mecab-config --libs` +-INC=`mecab-config --cflags` -I$(INCLUDE) -I$(INCLUDE)/linux ++INC=`mecab-config --cflags` + + all: +- $(CXX) -O3 -c -fpic $(TARGET)_wrap.cxx $(INC) +- $(CXX) -shared $(TARGET)_wrap.o -o lib$(TARGET).so $(LIBS) ++ $(CXX) $(CXXFLAGS) -c -fpic $(TARGET)_wrap.cxx $(INC) ++ $(CXX) $(LDFLAGS) -shared $(TARGET)_wrap.o -o lib$(TARGET).so $(LIBS) + $(JAVAC) $(PACKAGE)/*.java +- $(JAVAC) test.java ++ $(JAVAC) -encoding EUC_JP test.java + $(JAR) cfv $(TARGET).jar $(PACKAGE)/*.class + + test: |