aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/fcitx/Makefile
blob: 96948629ae5e2195c35a1dcb86bf3c7685a55ab9 (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
# New ports collection makefile for:    zh-fcitx
# Date created:     26 March 2003
# Whom:         Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
#
# $FreeBSD$
#

PORTNAME=   fcitx
PORTVERSION=    3.2.1
CATEGORIES= chinese x11
MASTER_SITES=   http://www.fcitx.org/download/ \
        http://dryice.name/computer/FreeBSD/distfiles/
#EXTRACT_SUFX=  .tar.bz2

MAINTAINER= dryice@dryice.name
COMMENT=    A simple and fast GBK Chinese XIM server

LIB_DEPENDS=    Xft.2:${PORTSDIR}/x11-fonts/libXft

USE_BZIP2=  yes
USE_XLIB=   yes
USE_ICONV=  yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes

post-patch:
    @${REINPLACE_CMD} -e 's#zh_CN.GB2312#zh_CN.eucCN#g' ${WRKSRC}/src/xim.c
    @${REINPLACE_CMD} -e 's#zh_CN.gb2312#zh_CN.eucCN#g' ${WRKSRC}/src/ui.c ${WRKSRC}/src/tools.c

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

.include <bsd.port.mk>