diff options
author | sakamoto <sakamoto@pkgsrc.org> | 1999-08-02 04:37:09 +0000 |
---|---|---|
committer | sakamoto <sakamoto@pkgsrc.org> | 1999-08-02 04:37:09 +0000 |
commit | 4ae399c2c5ba9a436e9958d142603009a2a1da1c (patch) | |
tree | 866005435eda1184f93bbcb2a9fc95c1a2a26a95 /japanese/canna-lib/Makefile | |
parent | 9e284384a5956fddcf013973874d7f4dd380de2f (diff) | |
download | pkgsrc-4ae399c2c5ba9a436e9958d142603009a2a1da1c.tar.gz |
Kana-Kanji conversion system (library)
Diffstat (limited to 'japanese/canna-lib/Makefile')
-rw-r--r-- | japanese/canna-lib/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/japanese/canna-lib/Makefile b/japanese/canna-lib/Makefile new file mode 100644 index 00000000000..9d1425368b9 --- /dev/null +++ b/japanese/canna-lib/Makefile @@ -0,0 +1,51 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/08/02 04:37:09 sakamoto Exp $ +# + +DISTNAME= Canna35b2 +PKGNAME= Canna-lib-3.5b2 +CATEGORIES= japanese +MASTER_SITES= ftp://ftp.nec.co.jp/pub/Canna/Canna35/ + +PATCH_SITES= http://www.jaist.ac.jp/~fujieda/canna/ +PATCHFILES= Canna35b2-unoff1.patch.gz Canna35b2-unoff2.patch.gz \ + Canna35b2-hack1.patch.gz +PATCH_DIST_STRIP= -p1 + +MAINTAINER= tech-pkg-ja@jp.netbsd.org +HOMEPAGE= http://www.nec.co.jp/japanese/product/computer/soft/canna/ + +PLIST_TMP= ${PKGDIR}/PLIST +PLIST_SRC= ${WRKDIR}/PLIST + +INSTALL_TARGET= install install.man + +.include "../../mk/bsd.prefs.mk" +CANNAOWNER?= daemon +CANNAGROUP?= daemon +DICT_DIR?= /var/dict +MAKE_ENV+= CANNAOWNER=${CANNAOWNER} CANNAGROUP=${CANNAGROUP} \ + DICT_DIR=${DICT_DIR} + +post-patch: + @${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig + @${SED} -e 's|\(SUBDIRS = lib canna\).*\( misc\)|\1 cmd/forcpp cmd/kpdic dic/phono\2|' \ + -e 's|\(SGSDIR = \).*|\1 lib canna dic/phono misc doc|' \ + ${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile + +do-configure: + @(cd ${WRKSRC}; ${XMKMF}) + +post-configure: + @${LN} -s ${WRKSRC}/server/*.h ${WRKSRC}/include + +post-build: + @${SED} -e 's|$${CANNAOWNER}|${CANNAOWNER}|' \ + -e 's|$${CANNAGROUP}|${CANNAGROUP}|' \ + -e 's|$${DICT_DIR}|${DICT_DIR}|' \ + -e 's|$${PREFIX}|${PREFIX}|' \ + ${PLIST_TMP} > ${PLIST_SRC} + +post-install: + @${LN} -s ${DICT_DIR}/canna ${PREFIX}/share/canna/dic + +.include "../../mk/bsd.pkg.mk" |