1*4882a593SmuzhiyunSUMMARY = "Generic XKB keymap library" 2*4882a593SmuzhiyunDESCRIPTION = "libxkbcommon is a keymap compiler and support library which \ 3*4882a593Smuzhiyunprocesses a reduced subset of keymaps as defined by the XKB specification." 4*4882a593SmuzhiyunHOMEPAGE = "http://www.xkbcommon.org" 5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=e525ed9809e1f8a07cf4bce8b09e8b87" 6*4882a593SmuzhiyunLICENSE = "MIT & MIT" 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunDEPENDS = "flex-native bison-native" 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunSRC_URI = "http://xkbcommon.org/download/${BPN}-${PV}.tar.xz" 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunSRC_URI[sha256sum] = "943c07a1e2198026d8102b17270a1f406e4d3d6bbc4ae105b9e1b82d7d136b39" 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunUPSTREAM_CHECK_URI = "http://xkbcommon.org/" 15*4882a593Smuzhiyun 16*4882a593Smuzhiyuninherit meson pkgconfig 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunPACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)} xkbregistry" 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunPACKAGECONFIG[docs] = "-Denable-docs=true,-Denable-docs=false,doxygen-native" 21*4882a593SmuzhiyunPACKAGECONFIG[wayland] = "-Denable-wayland=true,-Denable-wayland=false,wayland-native wayland wayland-protocols," 22*4882a593SmuzhiyunPACKAGECONFIG[x11] = "-Denable-x11=true,-Denable-x11=false,libxcb xkeyboard-config," 23*4882a593SmuzhiyunPACKAGECONFIG[xkbregistry] = "-Denable-xkbregistry=true,-Denable-xkbregistry=false,libxml2" 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunPACKAGE_BEFORE_PN += "xkbcli" 26*4882a593SmuzhiyunFILES:${PN} = "" 27*4882a593SmuzhiyunFILES:xkbcli = "${bindir}/xkbcli ${libexecdir}/xkbcommon/xkbcli-*" 28*4882a593Smuzhiyun 29*4882a593Smuzhiyunpython populate_packages:prepend () { 30*4882a593Smuzhiyun # Put the libraries into separate packages to avoid dependency creep 31*4882a593Smuzhiyun do_split_packages(d, d.expand('${libdir}'), r'^(lib.*)\.so\.*', '%s', '%s library', extra_depends='', allow_links=True) 32*4882a593Smuzhiyun} 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun# Fix a following runtime error: 35*4882a593Smuzhiyun# xkbcommon: ERROR: couldn't find a Compose file for locale "C" 36*4882a593SmuzhiyunRDEPENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11-locale', 'libx11-compose-data', d)}" 37