37 lines
1.3 KiB
Makefile
37 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="xkeyboard-config"
|
|
PKG_VERSION="2.34"
|
|
PKG_SHA256="b321d27686ee7e6610ffe7b56e28d5bbf60625a1f595124cd320c0caa717b8ce"
|
|
PKG_LICENSE="MIT"
|
|
PKG_SITE="http://www.X.org"
|
|
PKG_URL="http://www.x.org/releases/individual/data/${PKG_NAME}/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
|
|
PKG_DEPENDS_TARGET="toolchain util-macros"
|
|
PKG_LONGDESC="X keyboard extension data files."
|
|
PKG_TOOLCHAIN="autotools"
|
|
|
|
configure_package() {
|
|
if [ "${DISPLAYSERVER}" = "x11" ] || \
|
|
[ "${DISPLAYSERVER}" = "wl" ]; then
|
|
PKG_DEPENDS_TARGET+=" xkbcomp"
|
|
fi
|
|
}
|
|
|
|
pre_configure_target() {
|
|
PKG_CONFIGURE_OPTS_TARGET="--without-xsltproc \
|
|
--enable-compat-rules \
|
|
--disable-runtime-deps \
|
|
--enable-nls \
|
|
--disable-rpath \
|
|
--datadir=${XORG_PATH_XKB} \
|
|
--with-gnu-ld"
|
|
|
|
if [ "${DISPLAYSERVER}" = "x11" ] || \
|
|
[ "${DISPLAYSERVER}" = "wl" ]; then
|
|
PKG_CONFIGURE_OPTS_TARGET+=" XKBCOMP=/usr/bin/xkbcomp \
|
|
--with-xkb-base=${XORG_PATH_XKB} \
|
|
--with-xkb-rules-symlink=xorg"
|
|
fi
|
|
}
|