summaryrefslogtreecommitdiff
path: root/inputmethod/ibus-table/Makefile
blob: 5329c71a935ed2fb533646e8424d825a95177661 (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
# $NetBSD: Makefile,v 1.1.1.1 2010/08/07 02:13:06 obache Exp $
#

DISTNAME=	ibus-table-1.3.0.20100621
CATEGORIES=	inputmethod
MASTER_SITES=	http://ibus.googlecode.com/files/

MAINTAINER=	obache@NetBSD.org
HOMEPAGE=	http://code.google.com/p/ibus/
COMMENT=	The Table engine for IBus platform
LICENSE=	gnu-lgpl-v2.1

DEPENDS+=	${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3

PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=		yes
USE_TOOLS+=		gmake pkg-config msgfmt
USE_PKGLOCALEDIR=	yes

PKGCONFIG_OVERRIDE+=	ibus-table.pc.in

CONFIGURE_ARGS+=	--disable-additional

SUBST_CLASSES+=		prefix
SUBST_STAGE.prefix=	pre-configure
SUBST_FILES.prefix=	engine/tabcreatedb.py
SUBST_SED.prefix=	-e 's|/usr/share|${PREFIX}/share|g'

SUBST_CLASSES+=		epython
SUBST_STAGE.epython=	pre-configure
SUBST_FILES.epython=	engine/ibus-engine-table.in
SUBST_FILES.epython+=	engine/ibus-table-createdb.in
SUBST_SED.epython=	-e 's;exec python;exec ${PYTHONBIN};g'

REPLACE_PYTHON+=	engine/tabcreatedb.py

.include "../../lang/python/application.mk"
BUILDLINK_ABI_DEPENDS.ibus+=	ibus>=1.1.0
.include "../../inputmethod/ibus/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"