2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="libxkbcommon"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_VERSION="1.5.0"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="MIT"
|
2022-07-11 10:58:58 +00:00
|
|
|
PKG_SITE="https://xkbcommon.org"
|
|
|
|
PKG_URL="https://xkbcommon.org/download/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
2023-08-25 13:53:08 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain xkeyboard-config libxml2 libXau libxcb wayland"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LONGDESC="xkbcommon is a library to handle keyboard descriptions."
|
|
|
|
|
|
|
|
PKG_MESON_OPTS_TARGET="-Denable-docs=false"
|
|
|
|
|
|
|
|
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
|
|
|
PKG_MESON_OPTS_TARGET+=" -Denable-x11=true \
|
|
|
|
-Denable-wayland=false"
|
2022-07-11 10:58:58 +00:00
|
|
|
elif [ "${DISPLAYSERVER}" = "wl" ]; then
|
2022-09-02 19:27:01 +00:00
|
|
|
PKG_MESON_OPTS_TARGET+=" -Denable-x11=true \
|
|
|
|
-Denable-wayland=true \
|
|
|
|
-Dxkb-config-root=/usr/share/X11/xkb"
|
2022-02-05 14:23:32 +00:00
|
|
|
else
|
|
|
|
PKG_MESON_OPTS_TARGET+=" -Denable-x11=false \
|
|
|
|
-Denable-wayland=false"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure_target() {
|
2023-08-24 09:53:35 +00:00
|
|
|
case ${DISPLAYSERVER} in
|
|
|
|
"x11"|"wl")
|
|
|
|
TARGET_LDFLAGS="${LDFLAGS} -lXau -lxcb"
|
|
|
|
;;
|
|
|
|
esac
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|