summaryrefslogtreecommitdiffstats
path: root/japanese/im-ja
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/im-ja')
-rw-r--r--japanese/im-ja/Makefile77
-rw-r--r--japanese/im-ja/distinfo3
-rw-r--r--japanese/im-ja/files/patch-src_Makefile.in15
-rw-r--r--japanese/im-ja/files/patch-src_helper_helper-socket.c11
-rw-r--r--japanese/im-ja/files/patch-src_xim_Makefile.in11
-rw-r--r--japanese/im-ja/pkg-descr11
-rw-r--r--japanese/im-ja/pkg-plist48
7 files changed, 176 insertions, 0 deletions
diff --git a/japanese/im-ja/Makefile b/japanese/im-ja/Makefile
new file mode 100644
index 000000000..ab00a04a8
--- /dev/null
+++ b/japanese/im-ja/Makefile
@@ -0,0 +1,77 @@
+# New ports collection makefile for: im-ja
+# Date created: 2003/09/02
+# Whom: Jacques Vidrine <nectar@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= im-ja
+PORTVERSION= 1.5
+PORTREVISION= 4
+CATEGORIES= japanese x11-toolkits
+MASTER_SITES= http://im-ja.sourceforge.net/
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= A Japanese input module for GTK2
+
+OPTIONS+= ANTHY "Use Anthy" on
+OPTIONS+= CANNA "Use Canna" on
+OPTIONS+= WNN "Use FreeWnn" on
+OPTIONS+= GNOMEPANEL "Build GNOME Panel Applet" off
+
+USE_XLIB= yes
+USE_GNOME= gconf2 gnomehack gnomeprefix gnometarget intlhack libglade2
+USE_PERL5_BUILD= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+
+MAN1= im-ja-conf.1 im-ja-xim-server.1
+GCONF_SCHEMAS= im-ja.schemas
+
+CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include -DNO_MALLOC_H
+LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITHOUT_ANTHY)
+CONFIGURE_ARGS+= --disable-anthy
+.else
+LIB_DEPENDS+= anthy.1:${PORTSDIR}/japanese/anthy
+.endif
+
+.if defined(WITHOUT_CANNA)
+CONFIGURE_ARGS+= --disable-canna
+.else
+LIB_DEPENDS+= RKC.1:${PORTSDIR}/japanese/Canna
+.endif
+
+.if defined(WITHOUT_WNN)
+CONFIGURE_ARGS+= --disable-wnn
+.else
+LIB_DEPENDS+= wnn.0:${PORTSDIR}/japanese/FreeWnn-lib
+.endif
+
+.if defined(WITH_GNOMEPANEL)
+USE_GNOME+= gnomepanel
+PLIST_SUB+= GNOMEPANEL=""
+.else
+CONFIGURE_ARGS+= --disable-gnome
+PLIST_SUB+= GNOMEPANEL="@comment "
+.endif
+
+post-patch:
+ ${FIND} ${WRKSRC} -name configure.in | ${XARGS} ${TOUCH}
+ ${FIND} ${WRKSRC} -name aclocal.m4 | ${XARGS} ${TOUCH}
+ ${FIND} ${WRKSRC} -name configure | ${XARGS} ${TOUCH}
+ ${FIND} ${WRKSRC} -name config.h.in | ${XARGS} ${TOUCH}
+ ${FIND} ${WRKSRC} -name Makefile.am | ${XARGS} ${TOUCH}
+ ${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${TOUCH}
+ @${REINPLACE_CMD} -e 's|$$(datadir)/gconf|$$(sysconfdir)/gconf|g' \
+ ${WRKSRC}/data/Makefile.in
+
+post-install:
+ ${LOCALBASE}/bin/gtk-query-immodules-2.0 > \
+ ${LOCALBASE}/etc/gtk-2.0/gtk.immodules
+
+.include <bsd.port.post.mk>
diff --git a/japanese/im-ja/distinfo b/japanese/im-ja/distinfo
new file mode 100644
index 000000000..e9f5b08b5
--- /dev/null
+++ b/japanese/im-ja/distinfo
@@ -0,0 +1,3 @@
+MD5 (im-ja-1.5.tar.gz) = 8986574373d03e685730e16d8f15ade9
+SHA256 (im-ja-1.5.tar.gz) = 96f4ed82706a873bdade99a934a1a66431f146758837ed0f007e3c145649f780
+SIZE (im-ja-1.5.tar.gz) = 905539
diff --git a/japanese/im-ja/files/patch-src_Makefile.in b/japanese/im-ja/files/patch-src_Makefile.in
new file mode 100644
index 000000000..463635803
--- /dev/null
+++ b/japanese/im-ja/files/patch-src_Makefile.in
@@ -0,0 +1,15 @@
+--- src/Makefile.in.ORIG Mon Apr 12 08:00:59 2004
++++ src/Makefile.in Mon Apr 12 08:01:22 2004
+@@ -512,12 +512,6 @@
+ uninstall-recursive
+
+
+-hiragana-convtable.h: hiragana-convtable.txt
+- perl convtable.pl hiragana
+-zenkaku-convtable.h: zenkaku-convtable.txt
+- perl convtable.pl zenkaku
+-halfkata-convtable.h: halfkata-convtable.txt
+- perl convtable.pl halfkata
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/japanese/im-ja/files/patch-src_helper_helper-socket.c b/japanese/im-ja/files/patch-src_helper_helper-socket.c
new file mode 100644
index 000000000..165515833
--- /dev/null
+++ b/japanese/im-ja/files/patch-src_helper_helper-socket.c
@@ -0,0 +1,11 @@
+--- src/helper/helper-socket.c.orig Tue Apr 12 20:10:13 2005
++++ src/helper/helper-socket.c Thu Dec 29 23:05:18 2005
+@@ -25,6 +25,8 @@
+
+ #include <glib.h>
+
++#include <sys/types.h>
++#include <sys/time.h>
+ #include <netinet/in.h>
+ #include <string.h>
+ #include <sys/types.h>
diff --git a/japanese/im-ja/files/patch-src_xim_Makefile.in b/japanese/im-ja/files/patch-src_xim_Makefile.in
new file mode 100644
index 000000000..504c00891
--- /dev/null
+++ b/japanese/im-ja/files/patch-src_xim_Makefile.in
@@ -0,0 +1,11 @@
+--- src/xim/Makefile.in.ORIG Mon Apr 12 07:58:51 2004
++++ src/xim/Makefile.in Mon Apr 12 07:59:06 2004
+@@ -1663,7 +1663,7 @@
+
+
+ IMdkit/libXimd.a :
+- cd IMdkit; make
++ cd IMdkit; $(MAKE)
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/japanese/im-ja/pkg-descr b/japanese/im-ja/pkg-descr
new file mode 100644
index 000000000..555020eae
--- /dev/null
+++ b/japanese/im-ja/pkg-descr
@@ -0,0 +1,11 @@
+im-ja is a Japanese input module for GTK2.
+
+Currently supported input modes are: hiragana, katakana, half-width
+katakana, zenkaku, Canna, FreeWnn, and Kanji character recognition
+(based on Kanjipad).
+
+Conversion hotkeys, status window, preedit text colors, etc. can be
+customized through a GUI. An optional applet is also included for the
+gnome-panel which can be used to display and change the input method.
+
+WWW: http://im-ja.sourceforge.net/
diff --git a/japanese/im-ja/pkg-plist b/japanese/im-ja/pkg-plist
new file mode 100644
index 000000000..407ffd2a5
--- /dev/null
+++ b/japanese/im-ja/pkg-plist
@@ -0,0 +1,48 @@
+bin/im-ja-conf
+bin/im-ja-xim-server
+lib/gtk-2.0/%%GTK2_VERSION%%/immodules/im-ja.la
+lib/gtk-2.0/%%GTK2_VERSION%%/immodules/im-ja.so
+%%GNOMEPANEL%%libdata/bonobo/servers/GNOME_ImJaApplet.server
+%%GNOMEPANEL%%libexec/im-ja/im-ja-applet
+libexec/im-ja/im-ja-helper
+libexec/im-ja/kpengine
+share/applications/im-ja.desktop
+%%GNOMEPANEL%%share/gnome-2.0/ui/GNOME_ImJaApplet.xml
+share/im-ja/01.unistrok
+share/im-ja/02.unistrok
+share/im-ja/03.unistrok
+share/im-ja/04.unistrok
+share/im-ja/05.unistrok
+share/im-ja/06.unistrok
+share/im-ja/07.unistrok
+share/im-ja/08.unistrok
+share/im-ja/09.unistrok
+share/im-ja/10.unistrok
+share/im-ja/11.unistrok
+share/im-ja/12.unistrok
+share/im-ja/13.unistrok
+share/im-ja/14.unistrok
+share/im-ja/15.unistrok
+share/im-ja/16.unistrok
+share/im-ja/17.unistrok
+share/im-ja/18.unistrok
+share/im-ja/19.unistrok
+share/im-ja/20.unistrok
+share/im-ja/21.unistrok
+share/im-ja/22.unistrok
+share/im-ja/23.unistrok
+share/im-ja/im-ja-conf.glade
+share/im-ja/im-ja-doc.html
+share/im-ja/im-ja-symbols.txt
+share/im-ja/radkfile.utf8
+share/pixmaps/im-ja-about.jpg
+share/pixmaps/im-ja-capplet.png
+share/locale/ca/LC_MESSAGES/im-ja.mo
+share/locale/de/LC_MESSAGES/im-ja.mo
+share/locale/es/LC_MESSAGES/im-ja.mo
+share/locale/hu/LC_MESSAGES/im-ja.mo
+share/locale/ja/LC_MESSAGES/im-ja.mo
+@dirrm share/im-ja
+@dirrm libexec/im-ja
+@exec if [ -f %D/bin/gtk-query-immodules-2.0 ]; then %D/bin/gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules; fi
+@unexec if [ -f %D/bin/gtk-query-immodules-2.0 ]; then %D/bin/gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules; fi