e367db299fdf329de0433f7ed709735093fd0c93
[pkgsrc.git] / wip / ibus-table / Makefile
1 # $NetBSD$
2 #
3
4 DISTNAME=       ibus-table-1.2.0.20100111
5 CATEGORIES=     inputmethod
6 MASTER_SITES=   http://ibus.googlecode.com/files/
7
8 MAINTAINER=     obache@NetBSD.org
9 HOMEPAGE=       http://code.google.com/p/ibus/
10 COMMENT=        The Table engine for IBus platform
11 LICENSE=        gnu-lgpl-v2.1
12
13 DEPENDS+=       ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
14
15 PKG_DESTDIR_SUPPORT=    user-destdir
16
17 GNU_CONFIGURE=          yes
18 USE_TOOLS+=             gmake pkg-config msgfmt
19 USE_PKGLOCALEDIR=       yes
20
21 PKGCONFIG_OVERRIDE+=    ibus-table.pc.in
22
23 CONFIGURE_ARGS+=        --disable-additional
24
25 SUBST_CLASSES+=         prefix
26 SUBST_STAGE.prefix=     pre-configure
27 SUBST_FILES.prefix=     engine/tabcreatedb.py
28 SUBST_SED.prefix=       -e 's|/usr/share|${PREFIX}/share|g'
29
30 SUBST_CLASSES+=         epython
31 SUBST_STAGE.epython=    pre-configure
32 SUBST_FILES.epython=    engine/ibus-engine-table.in
33 SUBST_FILES.epython+=   engine/ibus-table-createdb.in
34 SUBST_SED.epython=      -e 's;exec python;exec ${PYTHONBIN};g'
35
36 REPLACE_PYTHON+=        engine/tabcreatedb.py
37
38 .include "../../lang/python/application.mk"
39 BUILDLINK_ABI_DEPENDS.ibus+=    ibus>=1.1.0
40 .include "../../wip/ibus/buildlink3.mk"
41 .include "../../mk/bsd.pkg.mk"