blob: 7955663f26f4a779439dbf6b5d5c67e7e62a4be7 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001SUMMARY = "Helper lib for keyboard management"
Andrew Geissler9aee5002022-03-30 16:27:02 +00002LICENSE = "LGPL-2.0-only"
Brad Bishop6e60e8b2018-02-01 10:27:11 -05003LIC_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
Patrick Williams213cb262021-08-07 19:21:33 -050011RDEPENDS:${PN} += "iso-codes xkbcomp"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012
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
Patrick Williams213cb262021-08-07 19:21:33 -050021FILES:${PN} += "${datadir}/*"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022
23EXTRA_OECONF = "--with-xkb-bin-base=${bindir}"
24
Patrick Williams213cb262021-08-07 19:21:33 -050025do_configure:append() {
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026 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
Patrick Williams213cb262021-08-07 19:21:33 -050030do_compile:append() {
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031 sed -i -e s:${STAGING_DIR_TARGET}::g \
32 -e s:/${TARGET_SYS}::g \
33 libxklavier.pc
34}
35
36