summaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-30 09:18:52 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-30 09:18:52 +0800
commit6323dc13a0f7f36cbfa9a2639455e156c3d14481 (patch)
tree0783180eb19cf0d9ff902f0a7a983ea909838791 /chinese
parent056c5d49baab985aa3236c29db4275b7906a22a3 (diff)
downloadmarcuscom-ports-6323dc13a0f7f36cbfa9a2639455e156c3d14481.tar
marcuscom-ports-6323dc13a0f7f36cbfa9a2639455e156c3d14481.tar.gz
marcuscom-ports-6323dc13a0f7f36cbfa9a2639455e156c3d14481.tar.bz2
marcuscom-ports-6323dc13a0f7f36cbfa9a2639455e156c3d14481.tar.lz
marcuscom-ports-6323dc13a0f7f36cbfa9a2639455e156c3d14481.tar.xz
marcuscom-ports-6323dc13a0f7f36cbfa9a2639455e156c3d14481.tar.zst
marcuscom-ports-6323dc13a0f7f36cbfa9a2639455e156c3d14481.zip
..-. .. -..- / -... ..- .. .-.. -.. / .-- .. - .... / --. -. --- -- . / -- --- ...- . / - --- / .-.. --- -.-. .- .-.. -... .- ... .
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7372 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'chinese')
-rw-r--r--chinese/oxim/Makefile101
-rw-r--r--chinese/oxim/distinfo3
-rw-r--r--chinese/oxim/files/patch-Makefile.in11
-rw-r--r--chinese/oxim/files/patch-gtk-immodule-gtkintl.h11
-rw-r--r--chinese/oxim/pkg-descr8
-rw-r--r--chinese/oxim/pkg-message16
-rw-r--r--chinese/oxim/pkg-plist35
7 files changed, 185 insertions, 0 deletions
diff --git a/chinese/oxim/Makefile b/chinese/oxim/Makefile
new file mode 100644
index 000000000..5eec58244
--- /dev/null
+++ b/chinese/oxim/Makefile
@@ -0,0 +1,101 @@
+# New ports collection makefile for: oxim
+# Date created: Mar 19 2006
+# Whom: Rong-En Fan <rafan@infor.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= oxim
+PORTVERSION= 1.1.1
+CATEGORIES= chinese textproc
+MASTER_SITES= ftp://ftp.opendesktop.org.tw/odp/OXIM/Source/ \
+ ftp://apt.nc.hcc.edu.tw/pub/mirror/opendesktop.org.tw/OXIM/Source/ \
+ ftp://ftp4.tnc.edu.tw/pub3/opendesktop-tw/odp/OXIM/Source/ \
+ ftp://140.111.66.34/odp/OXIM/Source/ \
+ ftp://140.111.128.66/odp/OXIM/Source/
+
+MAINTAINER= rafan@FreeBSD.org
+COMMENT= Open X Input Method server
+
+LIB_DEPENDS= Xft.2:${PORTSDIR}/x11-fonts/libXft
+RUN_DEPENDS= zh-fireflyttf>=0:${PORTSDIR}/chinese/fireflyttf
+
+OPTIONS= GTK2 "Enable GTK2 input method module" On \
+ CHEWING "Enable Chewing input module" On \
+ UNICODE "Enable Unicode input module" On
+
+USE_GCC= 3.2+
+USE_ICONV= yes
+USE_GNOME=
+
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -liconv
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+CONFIGURE_ARGS+=--disable-bimsphone-module \
+ --disable-static \
+ --with-conf-dir=${TARGETDIR}/etc/${PORTNAME}
+# oxim requires qinputcontextplugin.h which only exists in Debian package
+CONFIGURE_ARGS+=--disable-qt-immodule \
+ --disable-setup-tool
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITHOUT_GTK2)
+CONFIGURE_ARGS+= --disable-gtk-immodule
+PLIST_SUB+= GTK2="@comment "
+.else
+USE_GNOME+= gtk20
+CONFIGURE_ARGS+= --enable-gtk-immodule
+PLIST_SUB+= GTK2=""
+.endif
+
+.if !defined(WITHOUT_CHEWING)
+# make sure we have the required libchewing
+BUILD_DEPENDS+= zh-libchewing>=0.3.0_1:${PORTSDIR}/chinese/libchewing
+RUN_DEPENDS+= zh-libchewing>=0.3.0_1:${PORTSDIR}/chinese/libchewing
+
+CONFIGURE_ARGS+= --enable-chewing-module
+CONFIGURE_ENV+= CHEWING_CFLAGS=-I${LOCALBASE}/include
+PLIST_SUB+= CHEWING=""
+.else
+CONFIGURE_ARGS+= --disable-chewing-module
+PLIST_SUB+= CHEWING="@comment "
+.endif
+
+.if !defined(WITHOUT_UNICODE)
+CONFIGURE_ARGS+= --enable-unicode-module
+PLIST_SUB+= UNICODE=""
+.else
+CONFIGURE_ARGS+= --disable-unicode-module
+PLIST_SUB+= UNICODE="@comment "
+.endif
+
+# TODO WITHOUT_NLS knob
+#.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -lintl"
+PLIST_SUB+= NLS=""
+#.else
+#CONFIGURE_ARGS+=--disable-nls
+#PLIST_SUB+= NLS="@comment "
+#.endif
+
+.if ${OSVERSION} < 500000
+BROKEN= lack of stdint.h
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} 's|%%PREFIX%%|${TARGETDIR}|' \
+ ${WRKSRC}/src/gtk-immodule/gtkintl.h
+
+post-install:
+.if !defined(WITHOUT_GTK2)
+ @gtk-query-immodules-2.0 > ${TARGETDIR}/etc/gtk-2.0/gtk.immodules
+.endif
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO} To display this message again, type ${PKG_INFO} -D ${PKGNAME}
+
+.include <bsd.port.post.mk>
diff --git a/chinese/oxim/distinfo b/chinese/oxim/distinfo
new file mode 100644
index 000000000..5b64f4731
--- /dev/null
+++ b/chinese/oxim/distinfo
@@ -0,0 +1,3 @@
+MD5 (oxim-1.1.1.tar.gz) = fbbd3d76958d750b5a9dc865a645d540
+SHA256 (oxim-1.1.1.tar.gz) = 7b0b02bdf24439f087c21b2d4915f2a01c4702fb262acfa65dc9a13e5a9f80eb
+SIZE (oxim-1.1.1.tar.gz) = 1877585
diff --git a/chinese/oxim/files/patch-Makefile.in b/chinese/oxim/files/patch-Makefile.in
new file mode 100644
index 000000000..a2ae28c47
--- /dev/null
+++ b/chinese/oxim/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Fri Sep 8 05:15:45 2006
++++ Makefile.in Fri Sep 8 05:16:05 2006
+@@ -672,8 +672,6 @@
+
+
+ install-exec-local:
+- $(mkinstalldirs) $(DESTDIR)/$(input_d_dir)
+- sed 's|@OXIM_IM_MODULE_DIR@|$(IM_MODULES_DIR)|' oxim-start.sh.in > $(DESTDIR)/$(input_d_dir)/oxim
+
+ uninstall-local:
+ rm -f $(DESTDIR)/$(input_d_dir)/oxim
diff --git a/chinese/oxim/files/patch-gtk-immodule-gtkintl.h b/chinese/oxim/files/patch-gtk-immodule-gtkintl.h
new file mode 100644
index 000000000..da511fe67
--- /dev/null
+++ b/chinese/oxim/files/patch-gtk-immodule-gtkintl.h
@@ -0,0 +1,11 @@
+--- src/gtk-immodule/gtkintl.h.orig Thu Mar 23 08:43:55 2006
++++ src/gtk-immodule/gtkintl.h Thu Mar 23 08:46:33 2006
+@@ -1,7 +1,7 @@
+ #ifndef __GTKINTL_H__
+ #define __GTKINTL_H__
+ #define ENABLE_NLS 1
+-#define GTK_LOCALEDIR "/usr/share/locale"
++#define GTK_LOCALEDIR "%%PREFIX%%/share/locale"
+ #define GETTEXT_PACKAGE "gtk20"
+
+ #ifdef ENABLE_NLS
diff --git a/chinese/oxim/pkg-descr b/chinese/oxim/pkg-descr
new file mode 100644
index 000000000..e77ced631
--- /dev/null
+++ b/chinese/oxim/pkg-descr
@@ -0,0 +1,8 @@
+oxim is a common input method server, which focuses mainly on Chinese.
+It is mainly developed by Firefly <firefly@ossii.com.tw>, and is a
+fork from xcin 2.5.3 (pre-release version). In addition to the
+original Root and OverTheSpot input style inherited from xcin, it
+also supports OnTheSpot and OnTheSpotQT. You can easily use oxim in
+GTK and QT based software.
+
+WWW: http://opendesktop.org.tw/
diff --git a/chinese/oxim/pkg-message b/chinese/oxim/pkg-message
new file mode 100644
index 000000000..453a361cc
--- /dev/null
+++ b/chinese/oxim/pkg-message
@@ -0,0 +1,16 @@
+--------------------------------------------------------------------
+Remember to set environment variables:
+
+ (csh/tcsh) (sh/bash)
+ setenv XMODIFIERS @im=oxim export XMODIFIERS='@im=oxim'
+ setenv GTK_IM_MODULE oxim export GTK_IM_MODULE=oxim
+ setenv QT_IM_MODULE xim export QT_IM_MODULE=xim
+
+If you have disabled GTK2 support, you may want to use ``xim'' for
+GTK_IM_MODULE (GTK2 support is enabled by default).
+
+Finally, to start the oxim input method daemon, use command:
+
+ exec oxim &
+
+--------------------------------------------------------------------
diff --git a/chinese/oxim/pkg-plist b/chinese/oxim/pkg-plist
new file mode 100644
index 000000000..5c994b419
--- /dev/null
+++ b/chinese/oxim/pkg-plist
@@ -0,0 +1,35 @@
+bin/oxim
+bin/oxim-conv
+bin/oxim2tab
+etc/oxim/locale.list
+etc/oxim/oxim.conf
+lib/liboxim.la
+lib/liboxim.so
+lib/liboxim.so.0
+%%GTK2%%lib/gtk-2.0/immodules/gtk-im-oxim.so
+%%CHEWING%%lib/oxim/modules/chewing.la
+%%CHEWING%%lib/oxim/modules/chewing.so
+%%GTK2%%lib/oxim/immodules/gtk-im-oxim.la
+%%GTK2%%lib/oxim/immodules/gtk-im-oxim.so
+lib/oxim/modules/gen-inp.la
+lib/oxim/modules/gen-inp.so
+lib/oxim/modules/gen-inp-v1.la
+lib/oxim/modules/gen-inp-v1.so
+%%UNICODE%%lib/oxim/modules/unicode.la
+%%UNICODE%%lib/oxim/modules/unicode.so
+lib/oxim/panels/defaultkeyboard.conf
+lib/oxim/panels/defaultkeyboard.xpm
+lib/oxim/tables/cnscj.tab
+lib/oxim/tables/cnsphone.tab
+lib/oxim/tables/default.phr
+lib/oxim/tables/symbol.list
+@dirrm etc/oxim
+@dirrm lib/oxim/immodules
+@dirrm lib/oxim/modules
+@dirrm lib/oxim/panels
+@dirrm lib/oxim/tables
+@dirrm lib/oxim
+%%GTK2%%@dirrmtry lib/gtk-2.0/immodules
+%%GTK2%%@dirrmtry lib/gtk-2.0
+%%GTK2%%@exec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
+%%GTK2%%@unexec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules