aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/gskk/Makefile
blob: a04757e9c606e587ee241418e7cc675dfa966257 (plain) (blame)
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
# New ports collection makefile for:    gskk
# Date created:     7 Mar 2005
# Whom:         Hajimu UMEMOTO <ume@FreeBSD.org>

#
# $FreeBSD$
#

PORTNAME=   gskk
PORTVERSION=    20041208
CATEGORIES= japanese
MASTER_SITES=   http://www.ohnolab.org/~kimoto/
DISTNAME=   ${PORTNAME}-${PORTVERSION}.t
EXTRACT_SUFX=   .gz

MAINTAINER= ume@FreeBSD.org
COMMENT=    SKK's dictionary for Canna

RUN_DEPENDS=    ${LOCALBASE}/sbin/cannaserver:${PORTSDIR}/japanese/canna-server
BUILD_DEPENDS=  mkbindic:${PORTSDIR}/japanese/canna-server

NO_WRKSUBDIR=   yes

EXTRACT_AFTER_ARGS= > ${PORTNAME}.t

PLIST_FILES=    share/canna/dic/canna/dics.dir.${PORTNAME} \
        share/canna/dic/canna/${PORTNAME}.cbd \
        share/canna/dic/canna/${PORTNAME}.cld

.if !defined(NOPORTDOCS)
PORTDOCS=   README.FreeBSD
.endif

SUB_FILES=  README.FreeBSD pkg-message
SUB_LIST+=  DICDIR=${DICDIR} PORTNAME=${PORTNAME}

PKGMESSAGE= ${WRKDIR}/pkg-message

DICS=       ${PORTNAME}.cbd ${PORTNAME}.cld
DICSFILE=   dics.dir.${PORTNAME}
DICDIR=     ${PREFIX}/share/canna/dic/canna

INSTALL_DIC=    ${INSTALL} ${COPY} -o bin -g bin -m 664

do-build:
    cd ${WRKDIR} && mkbindic ${PORTNAME}.t

do-install:
    cd ${WRKSRC} && ${INSTALL_DIC} ${DICS} ${DICDIR}
    ${INSTALL_DIC} ${FILESDIR}/${DICSFILE} ${DICDIR}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKDIR}/README.FreeBSD ${DOCSDIR}
.endif

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>