diff options
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/libxkbcommon_1.8.0.bb')
| -rw-r--r-- | meta/recipes-graphics/xorg-lib/libxkbcommon_1.8.0.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libxkbcommon_1.8.0.bb b/meta/recipes-graphics/xorg-lib/libxkbcommon_1.8.0.bb new file mode 100644 index 0000000000..a7dad3f4a2 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxkbcommon_1.8.0.bb | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | SUMMARY = "Generic XKB keymap library" | ||
| 2 | DESCRIPTION = "libxkbcommon is a keymap compiler and support library which \ | ||
| 3 | processes a reduced subset of keymaps as defined by the XKB specification." | ||
| 4 | HOMEPAGE = "http://www.xkbcommon.org" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e525ed9809e1f8a07cf4bce8b09e8b87" | ||
| 6 | LICENSE = "MIT & MIT" | ||
| 7 | |||
| 8 | DEPENDS = "flex-native bison-native" | ||
| 9 | |||
| 10 | SRC_URI = "git://github.com/xkbcommon/libxkbcommon;protocol=https;branch=master" | ||
| 11 | |||
| 12 | SRCREV = "76740e0c4583ae49675e7ba8213d31ee09aa00d2" | ||
| 13 | S = "${WORKDIR}/git" | ||
| 14 | |||
| 15 | inherit meson pkgconfig bash-completion | ||
| 16 | |||
| 17 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)} xkbregistry" | ||
| 18 | |||
| 19 | PACKAGECONFIG[docs] = "-Denable-docs=true,-Denable-docs=false,doxygen-native" | ||
| 20 | PACKAGECONFIG[wayland] = "-Denable-wayland=true,-Denable-wayland=false,wayland-native wayland wayland-protocols," | ||
| 21 | PACKAGECONFIG[x11] = "-Denable-x11=true,-Denable-x11=false,libxcb xkeyboard-config," | ||
| 22 | PACKAGECONFIG[xkbregistry] = "-Denable-xkbregistry=true,-Denable-xkbregistry=false,libxml2" | ||
| 23 | |||
| 24 | PACKAGE_BEFORE_PN += "xkbcli" | ||
| 25 | FILES:${PN} = "" | ||
| 26 | FILES:xkbcli = "${bindir}/xkbcli ${libexecdir}/xkbcommon/xkbcli-*" | ||
| 27 | |||
| 28 | python populate_packages:prepend () { | ||
| 29 | # Put the libraries into separate packages to avoid dependency creep | ||
| 30 | do_split_packages(d, d.expand('${libdir}'), r'^(lib.*)\.so\.*', '%s', '%s library', extra_depends='', allow_links=True) | ||
| 31 | } | ||
| 32 | |||
| 33 | # Recommended to fix a possible runtime error: | ||
| 34 | # xkbcommon: ERROR: couldn't find a Compose file for locale "C" | ||
| 35 | RRECOMMENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11-locale', 'libx11-compose-data', d)}" | ||
| 36 | |||
| 37 | BBCLASSEXTEND += "native" | ||
| 38 | |||
| 39 | CVE_PRODUCT += "xkbcommon:libxkbcommon" | ||
