# $NetBSD: Makefile,v 1.9 2001/02/16 15:25:12 wiz Exp $ DISTNAME= Canna35b2 PKGNAME= Canna-server-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/ COMMENT= Kana-Kanji conversion system (server) DEPENDS+= Canna-lib-3.5b2:../../japanese/canna-lib MASTERDIR= ${.CURDIR}/../../japanese/canna-lib FILESDIR= ${MASTERDIR}/files PATCHDIR= ${MASTERDIR}/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 DICT_DIR?= /var/dict MAKE_ENV+= CANNAOWNER=${CANNAOWNER} CANNAGROUP=${CANNAGROUP} \ CANNA_SPOOL=${CANNA_SPOOL} DICT_DIR=${DICT_DIR} INET6=${INET6} PLIST_SUBST= CANNAOWNER=${CANNAOWNER} CANNAGROUP=${CANNAGROUP} \ CANNA_SPOOL=${CANNA_SPOOL} CANNA_MODE=${CANNA_MODE} \ DICT_DIR=${DICT_DIR} PREFIX=${PREFIX} STARTUP_SCRIPT= etc/rc.d/canna STARTUP_SCRIPT_SRC=${WRKDIR}/STARTUP INSTALL_TARGET= instserver instclient post-patch: @${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig @${SED} -e 's|\(SUBDIRS = .*\) misc\(.*\)|\1\2|' \ -e 's|\(SERVERDIR = .*\) dic/phono\(.*\)|\1\2|' \ -e 's|\(CLIENTDIR = .*\) dic/phono misc|\1|' \ ${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile do-configure: @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF}) post-build: @${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT_SRC} @${ECHO} 'canna=${PREFIX}/sbin/cannaserver' >> ${STARTUP_SCRIPT_SRC} @${ECHO} 'if [ -f $$canna ]; then' >> ${STARTUP_SCRIPT_SRC} @${ECHO} " echo -n ' Canna'" >> ${STARTUP_SCRIPT_SRC} @${ECHO} ' $$canna' >> ${STARTUP_SCRIPT_SRC} @${ECHO} "fi" >> ${STARTUP_SCRIPT_SRC} post-install: @${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL @${INSTALL_SCRIPT} ${STARTUP_SCRIPT_SRC} ${PREFIX}/${STARTUP_SCRIPT} @${MKDIR} ${CANNA_SPOOL} @${CHMOD} ${CANNA_MODE} ${CANNA_SPOOL} @${CHOWN} ${CANNAOWNER}:${CANNAGROUP} ${CANNA_SPOOL} .include "../../mk/bsd.pkg.mk"