Import japanese/ibus-skk version 1.4.1_2
[dports.git] / japanese / ibus-skk / Makefile
1 # New ports collection makefile for:    ibus-skk
2 # Date created: 4 January 2010
3 # Whom:         Hiroto Kagotani <hiroto.kagotani@gmail.com>
4 #
5 # $FreeBSD: ports/japanese/ibus-skk/Makefile,v 1.14 2012/11/17 05:58:35 svnexp Exp $
6 #
7
8 PORTNAME=       ibus-skk
9 PORTVERSION=    1.4.1
10 PORTREVISION=   2
11 CATEGORIES=     japanese
12 MASTER_SITES=   http://cloud.github.com/downloads/ueno/ibus-skk/
13
14 MAINTAINER=     hiroto.kagotani@gmail.com
15 COMMENT=        A Japanese SKK input engine for IBus
16
17 RUN_DEPENDS=    ${LOCALBASE}/share/skk/SKK-JISYO.L:${PORTSDIR}/japanese/skk-jisyo
18 LIB_DEPENDS=    skk:${PORTSDIR}/japanese/libskk \
19                 ibus-1.0:${PORTSDIR}/textproc/ibus
20
21 USE_PYTHON=     yes
22 USE_GETTEXT=    yes
23
24 USE_GMAKE=      yes
25 USE_GNOME=      intltool
26 GNU_CONFIGURE=  yes
27 CONFIGURE_ENV+= DATADIRNAME=share
28
29 CPPFLAGS+=      -I${LOCALBASE}/include
30
31 OPTIONS_DEFINE= NLS
32
33 post-patch:
34         @${REINPLACE_CMD} -e 's|/usr/share/skk/SKK-JISYO.L|${LOCALBASE}/share/skk/SKK-JISYO.L|' ${WRKSRC}/src/preferences.c
35
36 post-install:
37         @${CAT} ${PKGMESSAGE}
38         @${ECHO} To display this message again, type ${PKG_INFO} -D ${PKGNAME}
39
40 .include <bsd.port.pre.mk>
41
42 .if ${PORT_OPTIONS:MNLS}
43 USE_GETTEXT=    yes
44 PLIST_SUB+=     NLS=""
45 .else
46 CONFIGURE_ARGS+=        --disable-nls
47 PLIST_SUB+=     NLS="@comment "
48 .endif
49
50 .include <bsd.port.post.mk>