aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/scim-fcitx/Makefile
blob: 89697ea2011ebe4227ba23c364f7c26b68c4be96 (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:    zh-scim-fcitx
# Date created:     8 May 2007
# Whom:         Yinghong Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   scim
PORTVERSION=    3.1.1
CATEGORIES= chinese
MASTER_SITES=   SF
PKGNAMESUFFIX=  -fcitx
DISTNAME=   ${PORTNAME}${PKGNAMESUFFIX}.${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    An SCIM IMEngine module for fcitx

RUN_DEPENDS=    scim:${PORTSDIR}/textproc/scim
BUILD_DEPENDS=  ${RUN_DEPENDS}

USE_BZIP2=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes

WRKSRC=     ${WRKDIR}/fcitx

CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib -lintl" \
        CPPFLAGS="-I${LOCALBASE}/include" \
        SCIM_DATADIR=${PREFIX}/share/scim \
        SCIM_ICONDIR=${PREFIX}/share/scim/icons

SUB_FILES=  pkg-message

post-patch:
    @${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \
    ${WRKSRC}/configure

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

.include <bsd.port.mk>