aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/scim-pinyin/Makefile
blob: 4d83afcb691322f9ef6b39f8e754d5b669c4a268 (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
# Created by: Jie Gao <gaoj@cpsc.ucalgary.ca>
# $FreeBSD$

PORTNAME=   scim-pinyin
PORTVERSION=    0.5.92
CATEGORIES= chinese
MASTER_SITES=   SF/scim/${PORTNAME}/${PORTVERSION}

MAINTAINER= pclin@FreeBSD.org
COMMENT=    SCIM Chinese Smart Pinyin input method

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

USE_GNOME=  gnomehack lthack
USE_ICONV=  yes
USE_GMAKE=  yes
USE_AUTOTOOLS=  libtool

CONFIGURE_ARGS+=    --disable-skim-support

CPPFLAGS+=  -I${LOCALBASE}/include -D__STDC_ISO_10646__
LDFLAGS+=   -L${LOCALBASE}/lib -lintl

OPTIONS_DEFINE= NLS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB+= NLS="@comment "
.endif

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

.include <bsd.port.mk>