summaryrefslogtreecommitdiff
path: root/japanese/kinput2
diff options
context:
space:
mode:
authorsakamoto <sakamoto@pkgsrc.org>1999-08-02 11:41:13 +0000
committersakamoto <sakamoto@pkgsrc.org>1999-08-02 11:41:13 +0000
commit8f429e89117a778157ecf3f0164a22facd009694 (patch)
treef1e1577b2ee1952d70cf57f36667be1472bf603a /japanese/kinput2
parent08a370452fbb7eb05654f51215f593d58a3c2a42 (diff)
downloadpkgsrc-8f429e89117a778157ecf3f0164a22facd009694.tar.gz
Adapt this package to NetBSD.
Diffstat (limited to 'japanese/kinput2')
-rw-r--r--japanese/kinput2/Makefile97
-rw-r--r--japanese/kinput2/files/md52
-rw-r--r--japanese/kinput2/pkg/COMMENT2
-rw-r--r--japanese/kinput2/pkg/DESCR4
-rw-r--r--japanese/kinput2/pkg/PLIST9
5 files changed, 47 insertions, 67 deletions
diff --git a/japanese/kinput2/Makefile b/japanese/kinput2/Makefile
index d5705d8e2d4..bfa417528b7 100644
--- a/japanese/kinput2/Makefile
+++ b/japanese/kinput2/Makefile
@@ -1,77 +1,52 @@
-# 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 $
-#
+# $NetBSD: Makefile,v 1.2 1999/08/02 11:41:13 sakamoto Exp $
+# FreeBSD Id: Makefile,v 1.4 1999/06/06 13:19:49 taoka Exp $
DISTNAME= kinput2-v3
-PKGNAME= ja-kinput2${INPUT_METHOD}-3.0
-CATEGORIES= japanese x11
-MASTER_SITES= ftp://ftp.sra.co.jp/pub/x11/kinput2/
+CATEGORIES= japanese
+MASTER_SITES= ftp://ftp.sra.co.jp/pub/x11/kinput2/
-MAINTAINER= taoka@FreeBSD.org
+MAINTAINER= tech-pkg-ja@jp.netbsd.org
-LIB_DEPENDS= ${LIB_INPUT_METHOD}
-BUILD_DEPENDS= ${BUILD_INPUT_METHOD}
+USE_IMAKE= YES
-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"
+.include "../../mk/bsd.prefs.mk"
+.if defined(USE_CANNA) && ${USE_CANNA} != YES && \
+ defined(USE_WNN4) && ${USE_WNN4} != YES && \
+ defined(USE_WNN6) && ${USE_WNN6} != YES && \
+ defined(USE_SJ3) && ${USE_SJ3} != YES
+IGNORE= "is ignored. because USE_CANNA,USE_WNN4,USE_WNN6,USE_SJ3 are \"NO\""
.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"
+
+.if !defined(USE_CANNA) || ${USE_CANNA} == YES
+DEPENDS+= Canna-lib-3.5b2:../../japanese/canna-lib
+KINPUT2_DEF+= -DUseCanna -Dport_CANNASRC=${LOCALBASE}/include/canna \
+ -Dport_CANNALIB="-L${LOCALBASE}/lib -lcanna16"
.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"
+
+#.if defined(USE_WNN6) && ${USE_WNN6} == YES
+#DEPENDS+=
+#KINPUT2_DEF+= -DUseWnn -DUseWnn6 -Dport_WNNINCDIR=$(LOCALBASE)/include/wnn \
+# -Dport_WNNLIB="-L$(LOCALBASE)/lib -lwnn6 -lcrypt"
+#.elif (!defined(USE_WNN4) || ${USE_WNN4} == YES)
+.if !defined(USE_WNN4) || ${USE_WNN4} == YES
+DEPENDS+= ja-FreeWnn-lib-1.10:../../japanese/freewnn-lib
+KINPUT2_DEF+= -DUseWnn -Dport_WNNINCDIR=${LOCALBASE}/include/wnn \
+ -Dport_WNNLIB="-L${LOCALBASE}/lib -lwnn -lcrypt"
.endif
-#
-# Make a value of INPUT_METHOD
-.if defined(INPUT_METHOD)
-INPUT_METHOD!= echo ${INPUT_METHOD} | sed -e 's/^/-/' -e 's/ /+/g'
+
+.if !defined(USE_SJ3) || ${USE_SJ3} == YES
+DEPENDS+= sj3-lib-2.0.1.20:../../japanese/sj3-lib
+KINPUT2_DEF+= -DUseSj3 -Dport_SJ3SRC=${LOCALBASE}/include \
+ -Dport_SJ3LIB="-L${LOCALBASE}/lib -lsj3lib"
.endif
-#
-# Redefine $(IMAKE_CMD) with $(PORT_IMAKE_DEFINES) in ${WRKSRC}/Kinput2.conf
-MAKE_ENV+= PORT_IMAKE_DEFINES='${KINPUT2_DEF}'
+
+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
+ ${MV} -f ${WRKSRC}/Kinput2.conf ${WRKSRC}/Kinput2.conf.org
${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>
+.include "../../mk/bsd.pkg.mk"
diff --git a/japanese/kinput2/files/md5 b/japanese/kinput2/files/md5
index c0ecfd4e19e..d576e0b715c 100644
--- a/japanese/kinput2/files/md5
+++ b/japanese/kinput2/files/md5
@@ -1 +1,3 @@
+$NetBSD: md5,v 1.2 1999/08/02 11:41:13 sakamoto Exp $
+
MD5 (kinput2-v3.tar.gz) = 3b3b6470879b5071c651bcdc84d52f3e
diff --git a/japanese/kinput2/pkg/COMMENT b/japanese/kinput2/pkg/COMMENT
index 9c81bc54207..bb7191c0202 100644
--- a/japanese/kinput2/pkg/COMMENT
+++ b/japanese/kinput2/pkg/COMMENT
@@ -1 +1 @@
-Input server of Japanese text (Wnn4)
+Input server of Japanese text
diff --git a/japanese/kinput2/pkg/DESCR b/japanese/kinput2/pkg/DESCR
index 3fe8cd6ebcc..6f1c0d5f823 100644
--- a/japanese/kinput2/pkg/DESCR
+++ b/japanese/kinput2/pkg/DESCR
@@ -10,7 +10,3 @@ 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/PLIST b/japanese/kinput2/pkg/PLIST
index 6443168f92e..8f95700877e 100644
--- a/japanese/kinput2/pkg/PLIST
+++ b/japanese/kinput2/pkg/PLIST
@@ -1,3 +1,4 @@
+@comment $NetBSD: PLIST,v 1.2 1999/08/02 11:41:13 sakamoto Exp $
bin/kinput2
lib/X11/app-defaults/Kinput2
lib/X11/ccdef/ccdef.kinput2
@@ -13,5 +14,11 @@ lib/X11/ccdef/ccdef.kinput2.egg
lib/X11/ccdef/rule.hiragana.egg
lib/X11/ccdef/rule.katakana.egg
lib/X11/ccdef/rule.kigou.egg
+lib/X11/sj3def/sjhk
+lib/X11/sj3def/sjrc
+lib/X11/sj3def/sjrk
+lib/X11/sj3def/sjsb
+lib/X11/sj3def/sjzh
+man/cat1/kinput2.0
+@dirrm lib/X11/sj3def
@dirrm lib/X11/ccdef
-man/man1/kinput2.1.gz