summaryrefslogtreecommitdiffstats
path: root/japanese/ibus-skk/Makefile
blob: 45137fec0e7768754031937238f1aa43e503ef11 (plain)
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
# Created by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
# $FreeBSD$

PORTNAME=	ibus-skk
PORTVERSION=	1.4.1
PORTREVISION=	3
CATEGORIES=	japanese
MASTER_SITES=	GHC

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Japanese SKK input engine for IBus

RUN_DEPENDS=	${LOCALBASE}/share/skk/SKK-JISYO.L:${PORTSDIR}/japanese/skk-jisyo
LIB_DEPENDS=	libskk.so:${PORTSDIR}/japanese/libskk \
		libibus-1.0.so:${PORTSDIR}/textproc/ibus

USES=		gettext gmake pkgconfig python
USE_GNOME=	intltool
USE_GITHUB=	yes
GH_ACCOUNT=	ueno
GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	DATADIRNAME=share

CPPFLAGS+=	-I${LOCALBASE}/include

OPTIONS_DEFINE=	NLS

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/share/skk/SKK-JISYO.L|${LOCALBASE}/share/skk/SKK-JISYO.L|' ${WRKSRC}/src/preferences.c

.include <bsd.port.pre.mk>

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

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud