summaryrefslogtreecommitdiff
path: root/inputmethod/skkserv/Makefile
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2002-05-31 12:59:58 +0000
committerseb <seb@pkgsrc.org>2002-05-31 12:59:58 +0000
commitccf31e5072384b7cbb450cbbfd536c92b8166d20 (patch)
tree03d870fa2589c8907e9d42df7cdac8c7fc89db9a /inputmethod/skkserv/Makefile
parent8983cb50fc6af95456d1b8f77f632e500a0e553b (diff)
downloadpkgsrc-ccf31e5072384b7cbb450cbbfd536c92b8166d20.tar.gz
Reimport of package skkserv from japanese/skkserv into inputmethod/skkserv.
This is part of the japanese category retirement. CATEGORIES adjusted.
Diffstat (limited to 'inputmethod/skkserv/Makefile')
-rw-r--r--inputmethod/skkserv/Makefile63
1 files changed, 63 insertions, 0 deletions
diff --git a/inputmethod/skkserv/Makefile b/inputmethod/skkserv/Makefile
new file mode 100644
index 00000000000..555d1d77e5a
--- /dev/null
+++ b/inputmethod/skkserv/Makefile
@@ -0,0 +1,63 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/05/31 12:59:58 seb Exp $
+
+DISTNAME= skk9.6
+PKGNAME= skkserv-3.9.4
+PKGREVISION= 1
+WRKSRC= ${WRKDIR}/skk-9.6
+CATEGORIES= japanese inputmethod
+MASTER_SITES= ftp://skk.kuis.kyoto-u.ac.jp/skk/9.6/
+
+PATCHFILES= SKK-JISYO.L.diff.gz
+PATCH_SITES= http://www.ht-net21.ne.jp/%7Enaoki-w/skk/
+PATCH_DIST_ARGS= -d ${WRKSRC}/jisyo --forward --quiet
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://skk.kuis.kyoto-u.ac.jp/
+COMMENT= Dictionary server for Simple Kana-Kanji conversion programs
+
+BUILD_DEFS+= USE_INET6
+
+DIST_SUBDIR= skk
+
+GNU_CONFIGURE= YES
+INSTALL_FILE= ${WRKDIR}/INSTALL
+
+.include "../../mk/bsd.prefs.mk"
+
+.if (${OPSYS} == "SunOS")
+.if exists(/usr/ccs)
+SKKSERV_UID?= 60002 # noaccess
+SKKSERV_GID?= 60002 # noaccess
+.else
+SKKSERV_UID?= 65534 # nobody
+SKKSERV_GID?= 65534 # nogroup
+.endif
+.endif
+SKKSERV_UID?= 32767 # nobody
+SKKSERV_GID?= 32766 # nogroup
+MAKE_ENV= SKKUID=${SKKSERV_UID} SKKGID=${SKKSERV_GID}
+
+# tmp for building dictionary. ~16MB required. mfs would be much faster.
+TMPDIR?= ${WRKDIR}
+
+post-build:
+ ${SED} -e 's#@PREFIX@#${PREFIX}#g' <${FILESDIR}/skkserv.sh \
+ >${WRKDIR}/skkserv.sh
+ ${SED} -e 's#@PREFIX@#${PREFIX}#g' <${PKGDIR}/INSTALL >${INSTALL_FILE}
+ :
+ : Merging dictionaries....
+ :
+ ${WRKSRC}/jisyo-tools/skkdic-expr -d ${TMPDIR} \
+ ${WRKSRC}/jisyo/SKK-JISYO.L + ${WRKSRC}/jisyo/SKK-JISYO.JIS2 | \
+ ${WRKSRC}/jisyo-tools/skkdic-sort >${WRKDIR}/SKK-JISYO.L
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/skkserv.sh ${PREFIX}/etc/rc.d/skkserv
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/skk
+ ${INSTALL_DATA} ${WRKDIR}/SKK-JISYO.L ${PREFIX}/share/skk/SKK-JISYO.L
+ ${INSTALL_DATA} ${WRKSRC}/skkserv/README ${PREFIX}/share/skk/README.skkserv
+ ${INSTALL_DATA} ${WRKSRC}/jisyo-tools/README.1st ${PREFIX}/share/skk/README.1st.jisyo-tools
+ ${INSTALL_DATA} ${WRKSRC}/jisyo-tools/README ${PREFIX}/share/skk/README.jisyo-tools
+ ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
+
+.include "../../mk/bsd.pkg.mk"