Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 1 | require ${BPN}.inc |
| 2 | |
| 3 | inherit native |
| 4 | |
| 5 | DEPENDS += " \ |
| 6 | glib-2.0-native \ |
| 7 | dbus-native \ |
| 8 | iso-codes \ |
| 9 | " |
| 10 | |
| 11 | PACKAGECONFIG = "" |
| 12 | |
| 13 | # for allarch iso-codes |
| 14 | EXTRA_NATIVE_PKGCONFIG_PATH = ":${RECIPE_SYSROOT}${datadir_native}/pkgconfig" |
| 15 | # for allarch unicode-ucd - just to make configure happy |
| 16 | EXTRA_OECONF += "--with-ucd-dir=${RECIPE_SYSROOT}${datadir_native}/unicode/ucd" |
| 17 | |
| 18 | do_compile() { |
| 19 | cd src |
| 20 | # seems by moving to src we break dependency tracking so build what's |
| 21 | # necessary step by step |
| 22 | oe_runmake ibusenumtypes.h |
| 23 | oe_runmake ibusmarshalers.h |
| 24 | oe_runmake ibusenumtypes.c |
| 25 | oe_runmake unicode-parser |
| 26 | } |
| 27 | |
| 28 | do_install() { |
| 29 | install -d ${D}/${libdir} |
| 30 | install -m 755 ${S}/src/.libs/libibus-*.so* ${D}/${libdir} |
| 31 | |
| 32 | install -d ${D}/${bindir} |
| 33 | install -m 755 ${S}/src/.libs/unicode-parser ${D}/${bindir} |
| 34 | } |