summaryrefslogtreecommitdiff
path: root/textproc/java-mecab/patches/patch-aa
blob: d3bf3baf4f720c81a019efabe5bed8df96f823be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-aa,v 1.2 2007/12/31 12:23:41 obache Exp $

--- Makefile.orig	2007-06-10 14:32:44.000000000 +0000
+++ Makefile
@@ -2,22 +2,20 @@ 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
 	$(JAR) cfv $(TARGET).jar $(PACKAGE)/*.class
 
 test:
+	$(JAVAC) -encoding EUC_JP test.java
 	env LD_LIBRARY_PATH=. $(JAVA) test
 
 clean: