aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/dictd-database/Makefile
blob: cd9439a6d93dec82d5acfd6fbf9a91b4cc7a2b44 (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.5
CATEGORIES= chinese textproc
MASTER_SITES=   ftp://freebsd.csie.ntu.edu.tw/users/rafan/ \
        ftp://freebsd.sinica.edu.tw/pub/statue/dictd-database/
DISTNAME=   dict-zh-${PORTVERSION}

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

BUILD_DEPENDS=  ${LOCALBASE}/bin/dictfmt:${PORTSDIR}/textproc/dictfmt \
        ${LOCALBASE}/bin/dictzip:${PORTSDIR}/net/dictd

USE_LIBTOOL_VER=    13
USE_GMAKE=  yes
USE_PERL5_BUILD=yes
USE_REINPLACE=  yes

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

post-patch:
    @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/configure

post-install:
    @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 502110
BUILD_DEPENDS+= ${LOCALBASE}/share/locale/zh_TW.UTF-8/LC_CTYPE:${PORTSDIR}/misc/utf8locale
.endif

.include <bsd.port.post.mk>