2022-07-11 10:58:58 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="wlroots"
|
2024-02-09 14:57:26 +00:00
|
|
|
PKG_VERSION="0.17.1"
|
|
|
|
PKG_SHA256="b4b1b08daf0728cd2648fb57660493e5b3eafe4fcc081c138de864895181cdfe"
|
2022-07-11 10:58:58 +00:00
|
|
|
PKG_LICENSE="MIT"
|
|
|
|
PKG_SITE="https://gitlab.freedesktop.org/wlroots/wlroots/"
|
2024-02-09 14:57:26 +00:00
|
|
|
PKG_URL="${PKG_SITE}-/archive/${PKG_VERSION}/wlroots-${PKG_VERSION}.tar.gz"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain libinput libxkbcommon pixman libdrm wayland wayland-protocols seatd xwayland hwdata libxcb xcb-util-wm"
|
2022-07-11 10:58:58 +00:00
|
|
|
PKG_LONGDESC="A modular Wayland compositor library"
|
2024-02-09 14:57:26 +00:00
|
|
|
PKG_TOOLCHAIN="meson"
|
2022-07-11 10:58:58 +00:00
|
|
|
|
|
|
|
configure_package() {
|
|
|
|
# OpenGLES Support
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = "yes" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
fi
|
|
|
|
}
|
2024-02-01 12:54:27 +00:00
|
|
|
# to enable xwayland package: https://gitlab.freedesktop.org/xorg/lib/libxcb-wm/-/tree/master/icccm?ref_type=heads
|
2022-07-11 10:58:58 +00:00
|
|
|
PKG_MESON_OPTS_TARGET="-Dxcb-errors=disabled \
|
2024-02-01 12:54:27 +00:00
|
|
|
-Dxwayland=disabled \
|
2022-07-11 10:58:58 +00:00
|
|
|
-Dexamples=false \
|
2024-02-09 14:57:26 +00:00
|
|
|
-Drenderers=gles2 \
|
|
|
|
-Dbackends=drm,libinput"
|
2022-07-11 10:58:58 +00:00
|
|
|
|
|
|
|
pre_configure_target() {
|
|
|
|
# wlroots does not build without -Wno flags as all warnings being treated as errors
|
|
|
|
export TARGET_CFLAGS=$(echo "${TARGET_CFLAGS} -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-function")
|
|
|
|
}
|