summaryrefslogtreecommitdiff
path: root/chinese/gcin
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/gcin')
-rw-r--r--chinese/gcin/Makefile7
-rw-r--r--chinese/gcin/files/patch-configure9
-rw-r--r--chinese/gcin/files/patch-modules__Makefile18
3 files changed, 31 insertions, 3 deletions
diff --git a/chinese/gcin/Makefile b/chinese/gcin/Makefile
index 34ff78f478ec..19956ccc6f0c 100644
--- a/chinese/gcin/Makefile
+++ b/chinese/gcin/Makefile
@@ -1,6 +1,6 @@
PORTNAME= gcin
PORTVERSION= 2.9.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= chinese textproc gnome
MASTER_SITES= http://hyperrate.com/gcin-source/
EXTRACT_ONLY= gcin-${PORTVERSION}.tar.xz
@@ -26,9 +26,10 @@ OPTIONS_DEFINE= ANTHY
OPTIONS_SUB= yes
ANTHY_DESC= Japanese anthy IM module
-ANTHY_BUILD_DEPENDS= ${LOCALBASE}/include/anthy/anthy.h:japanese/anthy
-ANTHY_LIB_DEPENDS= libanthy.so:japanese/anthy
+ANTHY_BUILD_DEPENDS= ${LOCALBASE}/include/anthy-unicode-1.0/anthy/anthy.h:japanese/anthy-unicode
+ANTHY_LIB_DEPENDS= libanthy-unicode.so:japanese/anthy-unicode
ANTHY_CONFIGURE_OFF= --use_anthy=N
+ANTHY_MAKE_ENV= ANTHY_CFLAGS=-I${LOCALBASE}/include/anthy-unicode-1.0
post-patch:
@${REINPLACE_CMD} -e 's,&,,; 1 s,##!/bin/bash,#!/bin/sh,; \
diff --git a/chinese/gcin/files/patch-configure b/chinese/gcin/files/patch-configure
index 7f53aeac8d32..b695f7f0a88a 100644
--- a/chinese/gcin/files/patch-configure
+++ b/chinese/gcin/files/patch-configure
@@ -15,6 +15,15 @@
exit
fi
+@@ -172,7 +172,7 @@ echo -n ".... Testing anthy : "
+ fi
+
+ echo -n ".... Testing anthy : "
+-USE_ANTHY=`pkg-config --libs anthy`
++USE_ANTHY=`pkg-config --libs anthy-unicode`
+ if [ $? != 0 ]; then
+ USE_ANTHY=N
+ echo "Not found. It's ok if you don't want anthy support."
@@ -232,7 +232,7 @@ QT4_IM='N'
diff --git a/chinese/gcin/files/patch-modules__Makefile b/chinese/gcin/files/patch-modules__Makefile
index 3c8125ece097..e4192fc04dc4 100644
--- a/chinese/gcin/files/patch-modules__Makefile
+++ b/chinese/gcin/files/patch-modules__Makefile
@@ -1,5 +1,23 @@
--- modules/Makefile.orig 2013-10-05 03:31:52 UTC
+++ modules/Makefile
+@@ -6,7 +6,7 @@ GCIN_MODULE+=anthy-module.so
+
+ ifeq ($(USE_ANTHY),Y)
+ GCIN_MODULE+=anthy-module.so
+-CFLAGS+=-DGCIN_MODULE=1
++CFLAGS+=-DGCIN_MODULE=1 $(ANTHY_CFLAGS)
+ endif
+
+ ifeq ($(USE_CHEWING),Y)
+@@ -19,7 +19,7 @@ anthy-module.so: $(anthy_module_so)
+
+ anthy_module_so = anthy.pico
+ anthy-module.so: $(anthy_module_so)
+- $(CCLD) $(SO_FLAGS) -o $@ $(anthy_module_so) $(LDFLAGS) -lanthy
++ $(CCLD) $(SO_FLAGS) -o $@ $(anthy_module_so) $(LDFLAGS) -lanthy-unicode
+
+ intcode_module_so = intcode.pico win-int.pico
+ intcode-module.so: $(intcode_module_so)
@@ -38,4 +38,4 @@ clean:
.depend:
$(CCX) $(CFLAGS) -MM *.cpp > $@