1
0
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
2021-10-27 09:47:55 +02:00

39 lines
1.3 KiB
Makefile

# 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"
PKG_VERSION="1.0.3"
PKG_SHA256="a2202f851e072b84e64a395212cbd976ee18a8ee602008b0bad02a13247dbc52"
PKG_LICENSE="MIT"
PKG_SITE="http://xkbcommon.org"
PKG_URL="http://xkbcommon.org/download/${PKG_NAME}-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_TARGET="toolchain xkeyboard-config libxml2"
PKG_LONGDESC="xkbcommon is a library to handle keyboard descriptions."
PKG_MESON_OPTS_TARGET="-Denable-docs=false"
if ! [ "${PROJECT}" = "L4T" ]; then
if [ "${DISPLAYSERVER}" = "x11" ]; then
PKG_MESON_OPTS_TARGET+=" -Denable-x11=true \
-Denable-wayland=false"
elif [ "${DISPLAYSERVER}" = "weston" ]; then
PKG_MESON_OPTS_TARGET+=" -Denable-x11=false \
-Denable-wayland=true"
else
PKG_MESON_OPTS_TARGET+=" -Denable-x11=false \
-Denable-wayland=false"
fi
else
PKG_MESON_OPTS_TARGET+=" -Denable-x11=false \
-Denable-wayland=false"
fi
pre_configure_target() {
if ! [ "${PROJECT}" = "L4T" ]; then
if [ "${DISPLAYSERVER}" = "x11" ]; then
TARGET_LDFLAGS="${LDFLAGS} -lXau -lxcb"
fi
fi
}