summaryrefslogtreecommitdiffstats
path: root/external/meta-openembedded/meta-gnome/recipes-support/ibus/ibus-native.bb
blob: ca65114c4d0cf435a3443bb75a28135452fe06b8 (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
require ${BPN}.inc

inherit native

DEPENDS += " \
    glib-2.0-native \
    dbus-native \
    iso-codes \
"

PACKAGECONFIG = ""

# for allarch iso-codes
EXTRA_NATIVE_PKGCONFIG_PATH = ":${RECIPE_SYSROOT}${datadir_native}/pkgconfig"
# for allarch unicode-ucd - just to make configure happy
EXTRA_OECONF += "--with-ucd-dir=${RECIPE_SYSROOT}${datadir_native}/unicode/ucd"

do_compile() {
    cd src
    # seems by moving to src we break dependency tracking so build what's
    # necessary step by step
    oe_runmake ibusenumtypes.h
    oe_runmake ibusmarshalers.h
    oe_runmake ibusenumtypes.c
    oe_runmake unicode-parser
}

do_install() {
    install -d ${D}/${libdir}
    install -m 755 ${S}/src/.libs/libibus-*.so* ${D}/${libdir}

    install -d ${D}/${bindir}
    install -m 755 ${S}/src/.libs/unicode-parser ${D}/${bindir}
}