aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/dictd-database/Makefile
blob: db185a7fb19d8a52500ece48c4031f661cb1d174 (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
# New ports collection makefile for:    dict-zh
# Date created:     25 Oct 1999
# Whom:         Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
#
# $FreeBSD$
#

PORTNAME=   dictd-database
PORTVERSION=    1.6
PORTREVISION=   1
CATEGORIES= chinese textproc
MASTER_SITES=   LOCAL/rafan/chinese/ \
        ftp://freebsd.sinica.edu.tw/pub/statue/dictd-database/
DISTNAME=   dict-zh-${PORTVERSION}

MAINTAINER= rafan@FreeBSD.org
COMMENT=    A Chinese <-> English dictd words database

RUN_DEPENDS=    ${LOCALBASE}/sbin/dictd:${PORTSDIR}/net/dictd

NO_BUILD=   yes

MSG_FILE=   ${PKGDIR}/pkg-message
PKGMESSAGE= ${WRKSRC}/pkg-message

DICTFILES=  cedict pydict moecomp netterm

do-install:
    ${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
    @${MKDIR} ${PREFIX}/lib/dict
    for f in ${DICTFILES}; do \
      ${INSTALL_DATA} ${WRKSRC}/$${f}.dict.dz ${PREFIX}/lib/dict; \
      ${INSTALL_DATA} ${WRKSRC}/$${f}.index ${PREFIX}/lib/dict; \
    done

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

.include <bsd.port.mk>