From dfd92b444637f8e03e04a3081efbaa3c9d97eebe Mon Sep 17 00:00:00 2001 From: SupervisedThinking Date: Sun, 16 Jan 2022 12:14:41 +0100 Subject: [PATCH] wlroots: initial package 0.15.0 --- packages/wayland/lib/wlroots/package.mk | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 packages/wayland/lib/wlroots/package.mk diff --git a/packages/wayland/lib/wlroots/package.mk b/packages/wayland/lib/wlroots/package.mk new file mode 100644 index 0000000000..7390955db4 --- /dev/null +++ b/packages/wayland/lib/wlroots/package.mk @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv) + +PKG_NAME="wlroots" +PKG_VERSION="0.15.0" +PKG_SHA256="fcb9e9dbbb112f5c527c1c4155994fd97b6b1eb3950316e186e3c293e7a07fc4" +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" +PKG_DEPENDS_TARGET="toolchain libinput libxkbcommon pixman libdrm wayland wayland-protocols seatd" +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 \ + -Dxwayland=disabled \ + -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") +}