blob: 3cef0d2e5026148c185abc4f8df1db778ff9acba [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
Brad Bishop8410d612019-11-25 09:40:59 -05007inherit autotools pkgconfig gettext gobject-introspection features_check
Brad Bishop6e60e8b2018-02-01 10:27:11 -05008
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 \
Brad Bishopcdf48592019-02-04 08:30:59 -050016 file://0001-xklavier_config_xkb.c-Fix-keyboard-layout-settings-f.patch \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050017"
18SRC_URI[md5sum] = "13af74dcb6011ecedf1e3ed122bd31fa"
19SRC_URI[sha256sum] = "17a34194df5cbcd3b7bfd0f561d95d1f723aa1c87fca56bc2c209514460a9320"
20
21FILES_${PN} += "${datadir}/*"
22
23EXTRA_OECONF = "--with-xkb-bin-base=${bindir}"
24
25do_configure_append() {
26 find ${B} -name Makefile | xargs sed -i s:'-I$(includedir)':'-I.':g
27 find ${B} -name Makefile | xargs sed -i s:'-I/usr/include':'-I${STAGING_INCDIR}':g
28}
29
30do_compile_append() {
31 sed -i -e s:${STAGING_DIR_TARGET}::g \
32 -e s:/${TARGET_SYS}::g \
33 libxklavier.pc
34}
35
36