distribution/packages/wayland/weston/package.mk

80 lines
3.1 KiB
Makefile
Raw Normal View History

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"
PKG_VERSION="10.0.3"
PKG_LICENSE="MIT"
2022-02-05 14:23:32 +00:00
PKG_SITE="https://wayland.freedesktop.org/"
PKG_URL="https://gitlab.freedesktop.org/wayland/weston/-/archive/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.gz"
2023-03-12 14:41:55 +00:00
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 xterm"
2022-02-05 14:23:32 +00:00
PKG_LONGDESC="Reference implementation of a Wayland compositor"
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 \
-Dbackend-wayland=true \
2022-09-02 21:46:22 +00:00
-Dbackend-x11=false \
-Ddeprecated-backend-fbdev=false \
-Dbackend-default=drm \
-Drenderer-gl=true \
-Ddeprecated-weston-launch=false \
2022-09-02 10:51:17 +00:00
-Dxwayland=true \
-Dsystemd=true \
2022-02-05 14:23:32 +00:00
-Dremoting=false \
-Dpipewire=false \
-Dshell-desktop=true \
-Dshell-fullscreen=true \
2022-02-05 14:23:32 +00:00
-Dshell-ivi=false \
2022-08-28 11:19:32 +00:00
-Dshell-kiosk=true \
2022-08-28 14:45:51 +00:00
-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 \
-Dlauncher-logind=false \
-Dlauncher-libseat=true \
-Dimage-jpeg=true \
2022-02-05 14:23:32 +00:00
-Dimage-webp=false \
-Dtools=['terminal']
2022-02-05 14:23:32 +00:00
-Ddemo-clients=false \
-Dsimple-clients=[] \
2022-02-05 14:23:32 +00:00
-Dresize-pool=false \
-Dwcap-decode=false \
-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/*ini ${INSTALL}/usr/share/weston
2022-02-05 14:23:32 +00:00
safe_remove ${INSTALL}/usr/share/wayland-sessions
for configfile in weston.ini kiosk.ini
do
sed -i -e "s|@WESTONFONTSIZE@|${WESTONFONTSIZE}|g" ${INSTALL}/usr/share/weston/${configfile}
done
if [ "${EMULATION_DEVICE}" = "yes" ] && \
[ ! "${BASE_ONLY}" == true ]
then
cat <<EOF >>${INSTALL}/usr/share/weston/weston.ini
[launcher]
path=/usr/bin/start_es.sh
icon=/usr/config/emulationstation/resources/window_icon_24.png
EOF
fi
2022-02-05 14:23:32 +00:00
}