summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorsakamoto <sakamoto@pkgsrc.org>1999-08-02 11:38:48 +0000
committersakamoto <sakamoto@pkgsrc.org>1999-08-02 11:38:48 +0000
commit08a370452fbb7eb05654f51215f593d58a3c2a42 (patch)
treefd2b56e13b1e9ce16e50f48fc914877099301a27 /japanese
parentb4ac7ee589d8557656e74d23be2d7e6fea8fa16b (diff)
downloadpkgsrc-08a370452fbb7eb05654f51215f593d58a3c2a42.tar.gz
Import FreeBSD's "kinput2" port:
Input server of Japanese text
Diffstat (limited to 'japanese')
-rw-r--r--japanese/kinput2/Makefile77
-rw-r--r--japanese/kinput2/files/Kinput2.conf22
-rw-r--r--japanese/kinput2/files/md51
-rw-r--r--japanese/kinput2/pkg/COMMENT1
-rw-r--r--japanese/kinput2/pkg/DESCR16
-rw-r--r--japanese/kinput2/pkg/MESSAGE7
-rw-r--r--japanese/kinput2/pkg/PLIST17
7 files changed, 141 insertions, 0 deletions
diff --git a/japanese/kinput2/Makefile b/japanese/kinput2/Makefile
new file mode 100644
index 00000000000..d5705d8e2d4
--- /dev/null
+++ b/japanese/kinput2/Makefile
@@ -0,0 +1,77 @@
+# New ports collection makefile for: kinput2-wnn4
+# Version required: 3.0
+# Date created: 19 Dec 1997
+# Whom: Satoshi TAOKA <taoka@FreeBSD.org>
+#
+# $Id: Makefile,v 1.1.1.1 1999/08/02 11:38:48 sakamoto Exp $
+#
+
+DISTNAME= kinput2-v3
+PKGNAME= ja-kinput2${INPUT_METHOD}-3.0
+CATEGORIES= japanese x11
+MASTER_SITES= ftp://ftp.sra.co.jp/pub/x11/kinput2/
+
+MAINTAINER= taoka@FreeBSD.org
+
+LIB_DEPENDS= ${LIB_INPUT_METHOD}
+BUILD_DEPENDS= ${BUILD_INPUT_METHOD}
+
+PATCHDIR= ${.CURDIR}/../kinput2-wnn4/patches
+FILESDIR= ${.CURDIR}/../kinput2-wnn4/files
+USE_IMAKE= yes
+
+.if !defined(CANNA) && !defined(SJ3) && !defined(WNN4) && !defined(WNN6)
+# For this port
+WNN4= yes
+.endif
+#
+# Specifying a velue INPUT_METHOD, and seting values BUILD_DEPENDS,
+# LIB_DEPENDS, etc.
+.if defined(CANNA)
+INPUT_METHOD+= canna
+LIB_INPUT_METHOD+= canna16.1:${PORTSDIR}/japanese/Canna
+KINPUT2_DEF+= -DUseCanna -Dport_CANNASRC=${LOCALBASE}/include \
+ -Dport_CANNALIB="-L${LOCALBASE}/lib -lcanna16"
+.endif
+.if defined(SJ3)
+INPUT_METHOD+= sj3
+BUILD_INPUT_METHOD+= sj3serv:${PORTSDIR}/japanese/sj3
+KINPUT2_DEF+= -DUseSj3 -Dport_SJ3SRC=${LOCALBASE}/include \
+ -Dport_SJ3LIB="-L${LOCALBASE}/lib -lsj3lib"
+.endif
+.if defined(WNN4)
+INPUT_METHOD+= wnn4
+BUILD_INPUT_METHOD+= ${X11BASE}/lib/libwnn.a:${PORTSDIR}/japanese/Wnn
+KINPUT2_DEF+= -DUseWnn -Dport_WNNINCDIR=$(X11BASE)/include/wnn \
+ -Dport_WNNLIB="-L$(X11BASE)/lib -lwnn -lcrypt"
+.elif defined(WNN6)
+INPUT_METHOD+= wnn6
+LIB_INPUT_METHOD+= wnn6.1:${PORTSDIR}/japanese/Wnn6-lib
+KINPUT2_DEF+= -DUseWnn -DUseWnn6 -Dport_WNNINCDIR=$(LOCALBASE)/include/wnn \
+ -Dport_WNNLIB="-L$(LOCALBASE)/lib -lwnn6 -lcrypt"
+.endif
+#
+# Make a value of INPUT_METHOD
+.if defined(INPUT_METHOD)
+INPUT_METHOD!= echo ${INPUT_METHOD} | sed -e 's/^/-/' -e 's/ /+/g'
+.endif
+#
+# Redefine $(IMAKE_CMD) with $(PORT_IMAKE_DEFINES) in ${WRKSRC}/Kinput2.conf
+MAKE_ENV+= PORT_IMAKE_DEFINES='${KINPUT2_DEF}'
+
+pre-configure:
+ if [ -f ${WRKSRC}/Kinput2.conf ]; then \
+ ${MV} -f ${WRKSRC}/Kinput2.conf ${WRKSRC}/Kinput2.conf.org; \
+ fi
+ ${CP} ${FILESDIR}/Kinput2.conf ${WRKSRC}/Kinput2.conf
+
+do-configure:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${XMKMF}
+
+post-install:
+# For Wnn4 or Wnn6
+ @if [ -e ${PKGDIR}/MESSAGE ]; then \
+ ${CAT} ${PKGDIR}/MESSAGE; \
+ fi
+
+.include <bsd.port.mk>
diff --git a/japanese/kinput2/files/Kinput2.conf b/japanese/kinput2/files/Kinput2.conf
new file mode 100644
index 00000000000..c7c714ad1da
--- /dev/null
+++ b/japanese/kinput2/files/Kinput2.conf
@@ -0,0 +1,22 @@
+XCOMM Each parameter in this file is explained in the original
+XCOMM Kinput2.conf (probably Kinput2.conf.org)
+
+XCOMM Redefine $(IMAKE_CMD) for FreeBSD ports (by S. Taoka)
+
+IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES) $(PORT_IMAKE_DEFINES)
+
+CCDEF_DIR = $(LIBDIR)/ccdef
+
+WNNSRC = port_WNNSRC
+WNNINCDIR = port_WNNINCDIR
+WNNLIB = port_WNNLIB
+
+CANNAINSTDIR = port_CANNAINSTDIR
+CANNASRC = port_CANNASRC
+CANNALIB = port_CANNALIB
+
+SJ3DEF_DIR = $(LIBDIR)/sj3def
+SJ3SRC = port_SJ3SRC
+SJ3LIB = port_SJ3LIB
+
+TRANSPORTDEFS =
diff --git a/japanese/kinput2/files/md5 b/japanese/kinput2/files/md5
new file mode 100644
index 00000000000..c0ecfd4e19e
--- /dev/null
+++ b/japanese/kinput2/files/md5
@@ -0,0 +1 @@
+MD5 (kinput2-v3.tar.gz) = 3b3b6470879b5071c651bcdc84d52f3e
diff --git a/japanese/kinput2/pkg/COMMENT b/japanese/kinput2/pkg/COMMENT
new file mode 100644
index 00000000000..9c81bc54207
--- /dev/null
+++ b/japanese/kinput2/pkg/COMMENT
@@ -0,0 +1 @@
+Input server of Japanese text (Wnn4)
diff --git a/japanese/kinput2/pkg/DESCR b/japanese/kinput2/pkg/DESCR
new file mode 100644
index 00000000000..3fe8cd6ebcc
--- /dev/null
+++ b/japanese/kinput2/pkg/DESCR
@@ -0,0 +1,16 @@
+Kinput2 is an input server for X11 applications that want Japanese
+text input.
+
+A client that wants kana-kanji conversion service for Japanese text
+sends a request to kinput2. Kinput2 receives the request, does
+kana-kanji conversion, and sends the converted text back to the
+client.
+
+The port supports Wnn4. Egg key binding is avairable,
+if you run
+
+kinput2 -ccdef ccdef.kinput2.egg
+
+-- S. Taoka
+<taoka@FreeBSD.org>
+
diff --git a/japanese/kinput2/pkg/MESSAGE b/japanese/kinput2/pkg/MESSAGE
new file mode 100644
index 00000000000..97668d99055
--- /dev/null
+++ b/japanese/kinput2/pkg/MESSAGE
@@ -0,0 +1,7 @@
+############################################################
+If you want to use Egg key binding on kinput2, then
+you should run
+
+kinput2 -ccdef ccdef.kinput2.egg
+
+############################################################"
diff --git a/japanese/kinput2/pkg/PLIST b/japanese/kinput2/pkg/PLIST
new file mode 100644
index 00000000000..6443168f92e
--- /dev/null
+++ b/japanese/kinput2/pkg/PLIST
@@ -0,0 +1,17 @@
+bin/kinput2
+lib/X11/app-defaults/Kinput2
+lib/X11/ccdef/ccdef.kinput2
+lib/X11/ccdef/rule.eggfunc
+lib/X11/ccdef/rule.func
+lib/X11/ccdef/rule.greek
+lib/X11/ccdef/rule.kana
+lib/X11/ccdef/rule.kana2
+lib/X11/ccdef/rule.roma
+lib/X11/ccdef/rule.wnnroma
+lib/X11/ccdef/rule.zascii
+lib/X11/ccdef/ccdef.kinput2.egg
+lib/X11/ccdef/rule.hiragana.egg
+lib/X11/ccdef/rule.katakana.egg
+lib/X11/ccdef/rule.kigou.egg
+@dirrm lib/X11/ccdef
+man/man1/kinput2.1.gz