summaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
Diffstat (limited to 'chinese')
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/fcitx/Makefile32
-rw-r--r--chinese/fcitx/distinfo1
-rw-r--r--chinese/fcitx/files/patch-Makefile18
-rw-r--r--chinese/fcitx/pkg-descr3
-rw-r--r--chinese/fcitx/pkg-message6
-rw-r--r--chinese/fcitx/pkg-plist8
7 files changed, 69 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index 2c02ade..772fc430 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -39,6 +39,7 @@
SUBDIR += emacs20
SUBDIR += enscript
SUBDIR += eterm
+ SUBDIR += fcitx
SUBDIR += firebird
SUBDIR += fortunetw
SUBDIR += gb2jis
diff --git a/chinese/fcitx/Makefile b/chinese/fcitx/Makefile
new file mode 100644
index 0000000..372af70
--- /dev/null
+++ b/chinese/fcitx/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: zh-fcitx
+# Date created: 26 March 2003
+# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fcitx
+PORTVERSION= 1.8.2
+CATEGORIES= chinese
+MASTER_SITES= http://www.linuxsir.com.cn/fcitx/
+
+MAINTAINER= statue@freebsd.sinica.edu.tw
+COMMENT= A simple and fast GBK Chinese XIM server
+
+LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
+
+USE_XLIB= yes
+USE_REINPLACE= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's#usr/share#usr/local/share#g' ${WRKSRC}/Makefile ${WRKSRC}/ime.h
+ @${REINPLACE_CMD} -e 's#usr/bin#usr/local/bin#g' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's#zh_CN.GB2312#zh_CN.EUC#g' ${WRKSRC}/window.c
+ @${REINPLACE_CMD} -e 's#zh_CN.gb2312#zh_CN.EUC#g' ${WRKSRC}/xim.c
+ @${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
+ ${WRKSRC}/IMdkit/lib/IMConn.c
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/chinese/fcitx/distinfo b/chinese/fcitx/distinfo
new file mode 100644
index 0000000..e479771
--- /dev/null
+++ b/chinese/fcitx/distinfo
@@ -0,0 +1 @@
+MD5 (fcitx-1.8.2.tar.gz) = 6674c077741ffa073337d116852d0b39
diff --git a/chinese/fcitx/files/patch-Makefile b/chinese/fcitx/files/patch-Makefile
new file mode 100644
index 0000000..f9b0ee8
--- /dev/null
+++ b/chinese/fcitx/files/patch-Makefile
@@ -0,0 +1,18 @@
+--- Makefile.orig Wed Mar 26 02:29:39 2003
++++ Makefile Wed Mar 26 02:41:59 2003
+@@ -1,12 +1,12 @@
+ CC = gcc
+
+-CFLAGS= -O2 -fno-strength-reduce
++CFLAGS= -O2 -fno-strength-reduce -DSIGUNUSED=32
+
+-INC = -I/usr/X11R6/include -I.
++INC = -I/usr/local/include -I/usr/X11R6/include -I.
+
+ SRC = main.c ime.c AddPhraseWindow.c IC.c InputWindow.c MainWindow.c MyErrorsHandlers.c punc.c py.c PYFA.c pyParser.c pyMapTable.c SetLocale.c tools.c wbx.c window.c xim.c qw.c sp.c py-2.c
+
+-LIB = -L/usr/X11R6/lib -lX11
++LIB = -L/usr/local/lib -L/usr/X11R6/lib -lX11 -liconv
+
+ OBJ = $(SRC:.c=.o)
+
diff --git a/chinese/fcitx/pkg-descr b/chinese/fcitx/pkg-descr
new file mode 100644
index 0000000..c820202
--- /dev/null
+++ b/chinese/fcitx/pkg-descr
@@ -0,0 +1,3 @@
+A simple and fast GBK Chinese XIM server
+
+WWW: http://www.fcitx.org/
diff --git a/chinese/fcitx/pkg-message b/chinese/fcitx/pkg-message
new file mode 100644
index 0000000..541c5ff
--- /dev/null
+++ b/chinese/fcitx/pkg-message
@@ -0,0 +1,6 @@
+-----------------------------------------------
+Remember to set environment varible XMODIFIERS:
+ csh/tcsh: setenv XMODIFIERS @im=fcitx
+ sh/bash: export XMODIFIERS='@im=fcitx'
+and set LANG, LC_CTYPE to zh_CN.EUC.
+-----------------------------------------------
diff --git a/chinese/fcitx/pkg-plist b/chinese/fcitx/pkg-plist
new file mode 100644
index 0000000..ccecd32
--- /dev/null
+++ b/chinese/fcitx/pkg-plist
@@ -0,0 +1,8 @@
+bin/fcitx
+share/fcitx/punc.mb
+share/fcitx/pySym.mb
+share/fcitx/pybase.mb
+share/fcitx/pyphrase.mb
+share/fcitx/sp.dat
+share/fcitx/wbx.mb
+@dirrm share/fcitx
OpenPOWER on IntegriCloud