distribution/packages/wayland/weston/package.mk
2022-09-02 17:46:22 -04:00

63 lines
2.8 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="weston"
PKG_VERSION="10.0.1"
PKG_SHA256="8a9e52506a865a7410981b04f8341b89b84106db8531ab1f9fdd37b5dc034115"
PKG_LICENSE="MIT"
PKG_SITE="https://wayland.freedesktop.org/"
PKG_URL="https://gitlab.freedesktop.org/wayland/weston/-/releases/${PKG_VERSION}/downloads/${PKG_NAME}-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_TARGET="toolchain wayland wayland-protocols libdrm libxkbcommon libinput cairo pango libjpeg-turbo dbus seatd glu ${OPENGL} libX11 xorg-server libXcursor xkbcomp setxkbmap cairo"
PKG_LONGDESC="Reference implementation of a Wayland compositor"
PKG_MESON_OPTS_TARGET="-Dbackend-drm=true \
-Dbackend-drm-screencast-vaapi=false \
-Dbackend-headless=false \
-Dbackend-rdp=false \
-Dscreenshare=false \
-Dbackend-wayland=true \
-Dbackend-x11=false \
-Ddeprecated-backend-fbdev=false \
-Dbackend-default=drm \
-Drenderer-gl=true \
-Ddeprecated-weston-launch=false \
-Dxwayland=true \
-Dsystemd=true \
-Dremoting=false \
-Dpipewire=false \
-Dshell-desktop=true \
-Dshell-fullscreen=true \
-Dshell-ivi=false \
-Dshell-kiosk=true \
-Ddesktop-shell-client-default="weston-desktop-shell" \
-Ddeprecated-wl-shell=false \
-Dcolor-management-lcms=false \
-Dcolor-management-colord=false \
-Dlauncher-logind=false \
-Dlauncher-libseat=true \
-Dimage-jpeg=true \
-Dimage-webp=false \
-Dtools=['terminal']
-Ddemo-clients=false \
-Dsimple-clients=[] \
-Dresize-pool=false \
-Dwcap-decode=false \
-Dtest-junit-xml=false \
-Dtest-skip-is-failure=false \
-Dtest-gl-renderer=false \
-Ddoc=false"
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/*ini ${INSTALL}/usr/share/weston
safe_remove ${INSTALL}/usr/share/wayland-sessions
}