blob: a7384bd5efc7021287147eead2bbd83ce0a08105 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# $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"
|