Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | SUMMARY = "Helper lib for keyboard management" |
| 2 | LICENSE = "LGPLv2" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=6e29c688d912da12b66b73e32b03d812" |
| 4 | |
| 5 | DEPENDS = "xkbcomp gtk+ iso-codes libxi libxml2" |
| 6 | |
| 7 | inherit autotools pkgconfig gettext gobject-introspection distro_features_check |
| 8 | |
| 9 | REQUIRED_DISTRO_FEATURES = "x11" |
| 10 | |
| 11 | RDEPENDS_${PN} += "iso-codes xkbcomp" |
| 12 | |
| 13 | SRC_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 Bishop | cdf4859 | 2019-02-04 08:30:59 -0500 | [diff] [blame] | 16 | file://0001-xklavier_config_xkb.c-Fix-keyboard-layout-settings-f.patch \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 17 | " |
| 18 | SRC_URI[md5sum] = "13af74dcb6011ecedf1e3ed122bd31fa" |
| 19 | SRC_URI[sha256sum] = "17a34194df5cbcd3b7bfd0f561d95d1f723aa1c87fca56bc2c209514460a9320" |
| 20 | |
| 21 | FILES_${PN} += "${datadir}/*" |
| 22 | |
| 23 | EXTRA_OECONF = "--with-xkb-bin-base=${bindir}" |
| 24 | |
| 25 | do_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 | |
| 30 | do_compile_append() { |
| 31 | sed -i -e s:${STAGING_DIR_TARGET}::g \ |
| 32 | -e s:/${TARGET_SYS}::g \ |
| 33 | libxklavier.pc |
| 34 | } |
| 35 | |
| 36 | |