blob: 2ef54f212f20271dd2d0261da858544f257bc950 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001SUMMARY = "Helper lib for keyboard management"
2LICENSE = "LGPLv2"
3LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=6e29c688d912da12b66b73e32b03d812"
4
5DEPENDS = "xkbcomp gtk+ iso-codes libxi libxml2"
6
7inherit autotools pkgconfig gettext gobject-introspection distro_features_check
8
9REQUIRED_DISTRO_FEATURES = "x11"
10
11RDEPENDS_${PN} += "iso-codes xkbcomp"
12
13SRC_URI = " \
14 http://pkgs.fedoraproject.org/repo/pkgs/${BPN}/${BPN}-${PV}.tar.bz2/13af74dcb6011ecedf1e3ed122bd31fa/${BPN}-${PV}.tar.bz2 \
15 file://fix-do_installe-failure.patch \
16"
17SRC_URI[md5sum] = "13af74dcb6011ecedf1e3ed122bd31fa"
18SRC_URI[sha256sum] = "17a34194df5cbcd3b7bfd0f561d95d1f723aa1c87fca56bc2c209514460a9320"
19
20FILES_${PN} += "${datadir}/*"
21
22EXTRA_OECONF = "--with-xkb-bin-base=${bindir}"
23
24do_configure_append() {
25 find ${B} -name Makefile | xargs sed -i s:'-I$(includedir)':'-I.':g
26 find ${B} -name Makefile | xargs sed -i s:'-I/usr/include':'-I${STAGING_INCDIR}':g
27}
28
29do_compile_append() {
30 sed -i -e s:${STAGING_DIR_TARGET}::g \
31 -e s:/${TARGET_SYS}::g \
32 libxklavier.pc
33}
34
35