at-spi2-core: updated build opts for Wayland

This commit is contained in:
SupervisedThinking 2022-12-15 02:31:13 +01:00
parent 4715fa1d3c
commit b166999ff2

View File

@ -8,13 +8,25 @@ PKG_SHA256="c6ba7c160434edebf09d2936933569c936f6ec972301766f2bdac5a4d418153c"
PKG_LICENSE="OSS"
PKG_SITE="https://www.gnome.org/"
PKG_URL="https://download.gnome.org/sources/at-spi2-core/${PKG_VERSION:0:4}/at-spi2-core-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_TARGET="toolchain atk dbus glib libXtst"
PKG_DEPENDS_TARGET="toolchain atk dbus glib"
PKG_LONGDESC="Protocol definitions and daemon for D-Bus at-spi."
configure_package() {
# Build with x11 support
if [ ${DISPLAYSERVER} = "x11" ]; then
PKG_DEPENDS_TARGET+=" libXtst"
fi
}
pre_configure_target() {
PKG_MESON_OPTS_TARGET="-Ddocs=false \
-Dintrospection=disabled \
-Ddbus_daemon=/usr/bin/dbus-daemon"
pre_configure_target() {
if [ ${DISPLAYSERVER} = "x11" ]; then
PKG_MESON_OPTS_TARGET+="-Dx11=true"
TARGET_LDFLAGS="${LDFLAGS} -lXext"
else
PKG_MESON_OPTS_TARGET+="-Dx11=false"
fi
}