pkgsrc/inputmethod/canna-server-bin/Makefile
sakamoto 93b7a7e192 Import Canna-server-bin-3.5.2nb2
Kana-Kanji conversion system (server binary)
separated from inputmethod/canna-server, Approved by agc.
2002-06-10 09:08:44 +00:00

66 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2002/06/10 09:08:44 sakamoto Exp $
DISTNAME= Canna35b2
PKGNAME= Canna-server-bin-3.5.2
PKGREVISION= 2
CATEGORIES= japanese inputmethod
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/
COMMENT= Kana-Kanji conversion system (server binary)
FILESDIR= ${.CURDIR}/../canna-lib/files
DISTINFO_FILE= ${.CURDIR}/../canna-lib/distinfo
PATCHDIR= ${.CURDIR}/../canna-lib/patches
BUILD_DEFS+= USE_INET6
.include "../../mk/bsd.prefs.mk"
.if 0 # ${USE_INET6} == "YES"
INET6= -DINET6
.else
INET6= # empty
.endif
CANNAOWNER?= daemon
CANNAGROUP?= daemon
CANNA_SPOOL= /var/spool/canna
CANNA_MODE= 0755
MAKE_ENV+= CANNAOWNER=${CANNAOWNER} CANNAGROUP=${CANNAGROUP} \
CANNA_SPOOL=${CANNA_SPOOL} IMDICTDIR=${IMDICTDIR} INET6=${INET6}
PLIST_SUBST+= CANNAOWNER=${CANNAOWNER} CANNAGROUP=${CANNAGROUP} \
CANNA_SPOOL=${CANNA_SPOOL} CANNA_MODE=${CANNA_MODE}
INSTALL_TARGET= instserver
post-patch:
${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
${SED} -e 's|\(SUBDIRS = \).*|\1 canna lib server cmd doc|' \
-e 's|\(SERVERDIR = \).*|\1 server cmd doc|' \
${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
${MV} ${WRKSRC}/Canna.conf ${WRKSRC}/Canna.conf.orig
${SED} -e 's|\(DicDir.*=\).*|\1${IMDICTDIR}/canna|' \
${WRKSRC}/Canna.conf.orig > ${WRKSRC}/Canna.conf
do-configure:
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF})
post-build:
@${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/canna \
> ${WRKDIR}/canna
post-install:
@${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
@${INSTALL_SCRIPT} ${WRKDIR}/canna ${PREFIX}/etc/rc.d/canna
@${INSTALL_DATA_DIR} ${CANNA_SPOOL}
@${CHMOD} ${CANNA_MODE} ${CANNA_SPOOL}
@${CHOWN} ${CANNAOWNER}:${CANNAGROUP} ${CANNA_SPOOL}
.include "../../devel/nbitools/nbitools.mk"
.include "../canna-lib/buildlink.mk"
.include "../../mk/bsd.pkg.mk"