mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
weston: initial package
This commit is contained in:
parent
4ebd9ba8d7
commit
449df852c6
13
packages/wayland/weston/config/weston.ini
Normal file
13
packages/wayland/weston/config/weston.ini
Normal file
@ -0,0 +1,13 @@
|
||||
[core]
|
||||
idle-time=0
|
||||
|
||||
[shell]
|
||||
locking=false
|
||||
|
||||
[launcher]
|
||||
path=/usr/lib/kodi/kodi.bin
|
||||
icon=/usr/share/kodi/media/icon16x16.png
|
||||
|
||||
[launcher]
|
||||
icon=/usr/share/weston/terminal.png
|
||||
path=/usr/bin/weston-terminal
|
68
packages/wayland/weston/package.mk
Normal file
68
packages/wayland/weston/package.mk
Normal file
@ -0,0 +1,68 @@
|
||||
################################################################################
|
||||
# This file is part of LibreELEC - https://libreelec.tv
|
||||
# Copyright (C) 2016-present Team LibreELEC
|
||||
#
|
||||
# LibreELEC is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# LibreELEC is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="weston"
|
||||
PKG_VERSION="3.0.0"
|
||||
PKG_SHA256="cde1d55e8dd70c3cbb3d1ec72f60e60000041579caa1d6a262bd9c35e93723a5"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="OSS"
|
||||
PKG_SITE="https://wayland.freedesktop.org/"
|
||||
PKG_URL="https://wayland.freedesktop.org/releases/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
||||
PKG_DEPENDS_TARGET="toolchain wayland-protocols libdrm libxkbcommon libinput cairo libjpeg-turbo dbus"
|
||||
PKG_SECTION="wayland"
|
||||
PKG_SHORTDESC="Reference implementation of a Wayland compositor"
|
||||
PKG_LONGDESC="Reference implementation of a Wayland compositor"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="CFLAGS=-DMESA_EGL_NO_X11_HEADERS \
|
||||
LIBS=-lturbojpeg \
|
||||
--with-cairo-glesv2 \
|
||||
--disable-xwayland \
|
||||
--disable-x11-compositor \
|
||||
--disable-xwayland-test \
|
||||
--disable-libunwind \
|
||||
--disable-colord \
|
||||
--disable-ivi-shell \
|
||||
--disable-fbdev-compositor \
|
||||
--disable-rdp-compositor \
|
||||
--disable-screen-sharing \
|
||||
--disable-vaapi-recorder \
|
||||
--disable-headless-compositor \
|
||||
--enable-systemd-login \
|
||||
--disable-weston-launch \
|
||||
--disable-fullscreen-shell \
|
||||
--disable-demo-clients-install \
|
||||
--enable-systemd-notify"
|
||||
|
||||
pre_configure_target() {
|
||||
strip_lto
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
rm -r $INSTALL/usr/share/wayland-sessions
|
||||
rm -r $INSTALL/usr/lib/weston-simple-im
|
||||
}
|
||||
|
||||
post_install() {
|
||||
enable_service weston.service
|
||||
}
|
19
packages/wayland/weston/profile.d/04-weston.conf
Normal file
19
packages/wayland/weston/profile.d/04-weston.conf
Normal file
@ -0,0 +1,19 @@
|
||||
################################################################################
|
||||
# This file is part of LibreELEC - https://libreelec.tv
|
||||
# Copyright (C) 2016-present Team LibreELEC
|
||||
#
|
||||
# LibreELEC is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# LibreELEC is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
export XDG_RUNTIME_DIR=/var/run/0-runtime-dir
|
29
packages/wayland/weston/scripts/weston-config
Executable file
29
packages/wayland/weston/scripts/weston-config
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
################################################################################
|
||||
# This file is part of LibreELEC - https://libreelec.tv
|
||||
# Copyright (C) 2016-present Team LibreELEC
|
||||
#
|
||||
# LibreELEC is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# LibreELEC is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
export XDG_RUNTIME_DIR=/var/run/0-runtime-dir
|
||||
|
||||
if [ ! -d "$XDG_RUNTIME_DIR" ]; then
|
||||
mkdir "$XDG_RUNTIME_DIR"
|
||||
chmod 0700 "$XDG_RUNTIME_DIR"
|
||||
fi
|
||||
|
||||
if [ ! -f /storage/.config/weston.ini ]; then
|
||||
cp /usr/share/weston/weston.ini /storage/.config/weston.ini
|
||||
fi
|
18
packages/wayland/weston/system.d/weston.service
Normal file
18
packages/wayland/weston/system.d/weston.service
Normal file
@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Weston Launcher
|
||||
Before=graphical.target
|
||||
After=multi-user.target
|
||||
ConditionKernelCommandLine=!installer
|
||||
|
||||
[Service]
|
||||
Environment=HOME=/storage
|
||||
Environment=XDG_RUNTIME_DIR=/var/run/0-runtime-dir
|
||||
WorkingDirectory=/storage
|
||||
ExecStartPre=-/usr/lib/weston/weston-config
|
||||
ExecStart=/usr/bin/weston --tty=1 --log=/var/log/weston.log
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
Alias=display-manager.service
|
||||
WantedBy=graphical.target
|
Loading…
x
Reference in New Issue
Block a user