aboutsummaryrefslogtreecommitdiff
path: root/chinese/gcin
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2012-09-05 08:35:37 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2012-09-05 08:35:37 +0000
commit29bc781796189192197946853972cabe7b96463d (patch)
tree6efd526349e735b0d2578394d1f5532166386ecd /chinese/gcin
parent013bc93b54cbe56bd17b77d563b754df37d1b5cb (diff)
downloadports-29bc781796189192197946853972cabe7b96463d.tar.gz
ports-29bc781796189192197946853972cabe7b96463d.zip
Notes
Diffstat (limited to 'chinese/gcin')
-rw-r--r--chinese/gcin/Makefile2
-rw-r--r--chinese/gcin/files/patch-modules_Makefile29
2 files changed, 30 insertions, 1 deletions
diff --git a/chinese/gcin/Makefile b/chinese/gcin/Makefile
index 4d7502a5469b..26c6a4c40288 100644
--- a/chinese/gcin/Makefile
+++ b/chinese/gcin/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gcin
PORTVERSION= 2.7.8
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= chinese textproc gnome
MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/:main
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:main
diff --git a/chinese/gcin/files/patch-modules_Makefile b/chinese/gcin/files/patch-modules_Makefile
new file mode 100644
index 000000000000..6055b0ed5a25
--- /dev/null
+++ b/chinese/gcin/files/patch-modules_Makefile
@@ -0,0 +1,29 @@
+--- modules/Makefile.orig 2012-09-05 15:46:26.000000000 +0800
++++ modules/Makefile 2012-09-05 15:49:16.000000000 +0800
+@@ -3,15 +3,18 @@ include ../suffixes-rule
+
+ CFLAGS+=-I.. -I../IMdkit/include
+ GCIN_MODULE=intcode-module.so
++SOURCES=intcode.cpp win-int.cpp
+
+ ifeq ($(USE_ANTHY),Y)
+ GCIN_MODULE+=anthy-module.so
++SOURCES+=anthy.cpp
+ endif
+
+ ifeq ($(USE_CHEWING),Y)
+ GCIN_MODULE+=chewing-module.so
+ CHEWING_DATADIR=$(shell pkg-config --variable=datadir chewing)
+ CFLAGS += -DCHEWING_DATADIR=\"$(CHEWING_DATADIR)\"
++SOURCES+=chewing-conf.cpp chewing.cpp gcin-setup-chewing.cpp
+ endif
+
+ all: $(GCIN_MODULE)
+@@ -35,6 +38,6 @@ install:
+ clean:
+ rm -f *.pico *.so *.o .depend
+ .depend:
+- $(CCX) $(CFLAGS) -MM *.cpp > $@
++ $(CCX) $(CFLAGS) -MM $(SOURCES) > $@
+
+ include .depend