blob: ae91cb6723a6cd02e116961e178a2aabf426a8dc (
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
|
# New ports collection makefile for: Canna
# Version required: 3.2p2
# Date created: 3 November 1995
# Whom: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
# NIIMI Satoshi <sa2c@and.or.jp>
#
# $Id: Makefile,v 1.21 1998/09/21 22:31:23 steve Exp $
#
DISTNAME= Canna32p2
PKGNAME= ja-Canna-3.2.2
CATEGORIES= japanese
MASTER_SITES= ftp://ftp.nec.co.jp/pub/Canna/Canna32/
MAINTAINER= max@FreeBSD.ORG
USE_IMAKE= yes
PREFIX?= ${LOCALBASE}
ALL_TARGET= canna
MAN1= addwords.1 cannacheck.1 cannakill.1 cannaserver.1 cannastat.1 \
canvert.1 catdic.1 cpdic.1 cshost.1 ctow.1 delwords.1 dicar.1 \
dpbindic.1 dpromdic.1 lsdic.1 mkbindic.1 mkdic.1 mkromdic.1 \
mvdic.1 rmdic.1 splitword.1 wtoc.1
MAN3= RkCloseRoma.3 RkCvtEuc.3 RkCvtHan.3 RkCvtHira.3 RkCvtKana.3 \
RkCvtRoma.3 RkCvtZen.3 RkDefineDic.3 RkDeleteDic.3 RkEndBun.3 \
RkEnlarge.3 RkFinalize.3 RkGetDicList.3 RkGetKanji.3 RkGetLex.3 \
RkGetStat.3 RkGetYomi.3 RkGoto.3 RkInitialize.3 RkIntro.3 RkLeft.3 \
RkMapPhonogram.3 RkMapRoma.3 RkMountD.3 RkNext.3 RkNfer.3 \
RkOpenRoma.3 RkPrev.3 RkRemountDic.3 RkResize.3 RkRgnBun.3 RkRight.3 \
RkShorten.3 RkStoreYomi.3 RkUnmountDic.3 RkXfer.3 cannalib.3 uilib.3
MANCOMPRESSED= no
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/canna.sh
pre-install:
${MKDIR} /var/run/canna
chown bin.bin /var/run/canna
post-install:
if [ "${PORTOBJFORMAT}" = "aout" ]; then \
${LN} -sf libRKC.so.1.0 ${PREFIX}/lib/libRKC.so; \
${LN} -sf libRKC16.so.1.0 ${PREFIX}/lib/libRKC16.so; \
${LN} -sf libcanna.so.1.0 ${PREFIX}/lib/libcanna.so; \
${LN} -sf libcanna16.so.1.0 ${PREFIX}/lib/libcanna16.so; \
fi
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
echo "Installing ${STARTUP_SCRIPT} startup file."; \
echo '#!/bin/sh' > ${STARTUP_SCRIPT}; \
echo 'canna=${PREFIX}/sbin/cannaserver' \
>> ${STARTUP_SCRIPT} ; \
echo 'if [ -f $$canna ]; then' >> ${STARTUP_SCRIPT} ; \
echo ' rm -f /var/run/canna/Canna.pid' >> ${STARTUP_SCRIPT};\
echo ' mkdir -p /var/run/canna' >> ${STARTUP_SCRIPT};\
echo ' touch /var/log/CANNA0msgs' >> ${STARTUP_SCRIPT};\
echo ' chown bin:bin /var/run/canna /var/log/CANNA0msgs' >> ${STARTUP_SCRIPT};\
echo " echo -n ' Canna'" >> ${STARTUP_SCRIPT}; \
echo ' $$canna' >> ${STARTUP_SCRIPT} ; \
echo "fi" >> ${STARTUP_SCRIPT} ; \
chmod 755 ${STARTUP_SCRIPT} ; \
chown bin.bin ${STARTUP_SCRIPT}; \
fi
@${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
|