# New ports collection makefile for:	ibus-skk
# Date created:	4 January 2010
# Whom:		Hiroto Kagotani <hiroto.kagotani@gmail.com>
#
# $FreeBSD: ports/japanese/ibus-skk/Makefile,v 1.10 2012/02/06 09:37:12 scheidell Exp $
#

PORTNAME=	ibus-skk
PORTVERSION=	1.4.0
CATEGORIES=	japanese
MASTER_SITES=	http://cloud.github.com/downloads/ueno/ibus-skk/

MAINTAINER=	hiroto.kagotani@gmail.com
COMMENT=	A Japanese SKK input engine for IBus

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

USE_PYTHON=	yes
USE_GETTEXT=	yes

USE_GMAKE=	yes
USE_GNOME=	intltool
GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	DATADIRNAME=share

CPPFLAGS+=	-I${LOCALBASE}/include

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

post-install:
	@${CAT} ${PKGMESSAGE}
	@${ECHO} To display this message again, type ${PKG_INFO} -D ${PKGNAME}

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_NLS)
USE_GETTEXT=	yes
PLIST_SUB+=	NLS=""
.else
CONFIGURE_ARGS+=	--disable-nls
PLIST_SUB+=	NLS="@comment "
.endif

.include <bsd.port.post.mk>
