2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="weston"
|
2022-07-11 10:58:58 +00:00
|
|
|
PKG_VERSION="10.0.0"
|
|
|
|
PKG_SHA256="5c23964112b90238bed39e5dd1e41cd71a79398813cdc3bbb15a9fdc94e547ae"
|
|
|
|
PKG_LICENSE="MIT"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_SITE="https://wayland.freedesktop.org/"
|
|
|
|
PKG_URL="https://wayland.freedesktop.org/releases/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
2022-07-11 10:58:58 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain wayland wayland-protocols libdrm libxkbcommon libinput cairo pango libjpeg-turbo dbus seatd"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LONGDESC="Reference implementation of a Wayland compositor"
|
|
|
|
|
2022-07-11 10:58:58 +00:00
|
|
|
PKG_MESON_OPTS_TARGET="-Dbackend-drm=true \
|
|
|
|
-Dbackend-drm-screencast-vaapi=false \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dbackend-headless=false \
|
|
|
|
-Dbackend-rdp=false \
|
|
|
|
-Dscreenshare=false \
|
2022-07-11 10:58:58 +00:00
|
|
|
-Dbackend-wayland=false \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dbackend-x11=false \
|
2022-07-11 10:58:58 +00:00
|
|
|
-Ddeprecated-backend-fbdev=false \
|
|
|
|
-Dbackend-default=drm \
|
|
|
|
-Drenderer-gl=true \
|
|
|
|
-Ddeprecated-weston-launch=false \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dxwayland=false \
|
2022-07-11 10:58:58 +00:00
|
|
|
-Dsystemd=true \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dremoting=false \
|
|
|
|
-Dpipewire=false \
|
2022-07-11 10:58:58 +00:00
|
|
|
-Dshell-desktop=true \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dshell-fullscreen=false \
|
|
|
|
-Dshell-ivi=false \
|
2022-07-11 10:58:58 +00:00
|
|
|
-Dshell-kiosk=false \
|
|
|
|
-Ddesktop-shell-client-default="weston-desktop-shell" \
|
|
|
|
-Ddeprecated-wl-shell=false \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dcolor-management-lcms=false \
|
|
|
|
-Dcolor-management-colord=false \
|
2022-07-11 10:58:58 +00:00
|
|
|
-Dlauncher-logind=false \
|
|
|
|
-Dlauncher-libseat=true \
|
|
|
|
-Dimage-jpeg=true \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dimage-webp=false \
|
2022-07-11 10:58:58 +00:00
|
|
|
-Dtools=['terminal']
|
2022-02-05 14:23:32 +00:00
|
|
|
-Ddemo-clients=false \
|
2022-07-11 10:58:58 +00:00
|
|
|
-Dsimple-clients=[] \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dresize-pool=false \
|
|
|
|
-Dwcap-decode=false \
|
2022-07-11 10:58:58 +00:00
|
|
|
-Dtest-junit-xml=false \
|
|
|
|
-Dtest-skip-is-failure=false \
|
|
|
|
-Dtest-gl-renderer=false \
|
|
|
|
-Ddoc=false"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
pre_configure_target() {
|
|
|
|
# weston does not build with NDEBUG (requires assert for tests)
|
|
|
|
export TARGET_CFLAGS=$(echo ${TARGET_CFLAGS} | sed -e "s|-DNDEBUG||g")
|
|
|
|
}
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/usr/lib/weston
|
|
|
|
cp ${PKG_DIR}/scripts/weston-config ${INSTALL}/usr/lib/weston
|
|
|
|
|
|
|
|
mkdir -p ${INSTALL}/usr/share/weston
|
|
|
|
cp ${PKG_DIR}/config/weston.ini ${INSTALL}/usr/share/weston
|
2022-07-11 10:58:58 +00:00
|
|
|
find_file_path "splash/splash-2160.png" && cp ${FOUND_PATH} ${INSTALL}/usr/share/weston/libreelec-wallpaper-2160.png
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
safe_remove ${INSTALL}/usr/share/wayland-sessions
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
enable_service weston.service
|
|
|
|
}
|