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"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_VERSION="0.16.2"
|
2022-07-11 10:58:58 +00:00
|
|
|
PKG_LICENSE="MIT"
|
|
|
|
PKG_SITE="https://gitlab.freedesktop.org/wlroots/wlroots/"
|
|
|
|
PKG_URL="https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
|
2023-12-02 00:27:29 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain libinput libxkbcommon pixman libdrm wayland wayland-protocols seatd xwayland"
|
2022-07-11 10:58:58 +00:00
|
|
|
PKG_LONGDESC="A modular Wayland compositor library"
|
|
|
|
|
|
|
|
configure_package() {
|
|
|
|
# OpenGLES Support
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = "yes" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
PKG_MESON_OPTS_TARGET="-Dxcb-errors=disabled \
|
2022-09-02 10:51:17 +00:00
|
|
|
-Dxwayland=enabled \
|
2022-07-11 10:58:58 +00:00
|
|
|
-Dexamples=false \
|
|
|
|
-Drenderers=gles2"
|
|
|
|
|
|
|
|
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")
|
|
|
|
}
|