slitaz-arm rev 174
wok/weston-rpi
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 07 11:40:42 2014 +0200 (2014-05-07) |
parents | 48a8666c6207 |
children | c0f6d2a62d0d |
files | wok/weston-rpi/receipt wok/weston-rpi/stuff/weston-session |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/wok/weston-rpi/receipt Wed May 07 11:40:42 2014 +0200 1.3 @@ -0,0 +1,45 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="weston-rpi" 1.7 +VERSION="1.4.0" 1.8 +CATEGORY="x-window" 1.9 +SHORT_DESC="Implementation of a Wayland compositor for the Raspberry Pi." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +LICENSE="MIT" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.xz" 1.13 +WEB_SITE="http://www.slitaz.org/" 1.14 +WGET_URL="http://wayland.freedesktop.org/releases/$TARBALL" 1.15 +HOST_ARCH="arm" 1.16 + 1.17 +DEPENDS="wayland mesa-wayland cairo-gl libxkbcommon libunwind mtdev \ 1.18 +xorg-libXcursor pam liblzma" 1.19 +BUILD_DEPENDS="wayland-dev mesa-wayland-dev cairo-gl-dev libxkbcommon-dev \ 1.20 +libunwind-dev mtdev-dev xorg-libXcursor-dev pam-dev liblzma-dev \ 1.21 +gegl-dev libdrm-dev xorg-libXxf86vm-dev udev-dev pkg-config jpeg-dev" 1.22 + 1.23 +# WARNING: Weston for the Rpi needs the official firmware in /opt/vc. 1.24 +# They are not packaged in i486 so install all firmware by hand. 1.25 +# DL: https://github.com/raspberrypi/firmware 1.26 + 1.27 +# Rules to configure and make the package. 1.28 +compile_rules() 1.29 +{ 1.30 + ./configure \ 1.31 + --prefix=/usr \ 1.32 + --libexec=/usr/lib/weston \ 1.33 + --disable-documentation \ 1.34 + --enable-fbdev-compositor && 1.35 + make && make install 1.36 +} 1.37 + 1.38 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.39 +genpkg_rules() 1.40 +{ 1.41 + mkdir -p $fs/usr/lib/weston $fs/usr/share 1.42 + cp -a $install/usr/bin $fs/usr 1.43 + cp -a $install/usr/lib/weston/*.so* $fs/usr/lib/weston 1.44 + cp -a $install/usr/lib/weston/weston-* $fs/usr/lib/weston 1.45 + cp -a $install/usr/share/weston $fs/usr/share 1.46 + # Custom weston-session 1.47 + cp -f $stuff/weston-session $fs/usr/bin 1.48 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/wok/weston-rpi/stuff/weston-session Wed May 07 11:40:42 2014 +0200 2.3 @@ -0,0 +1,19 @@ 2.4 +#!/bin/sh 2.5 +# 2.6 +# Start Wayland Weston compositor session on SliTaz GNU/Linux 2.7 +# 2.8 + 2.9 +export XDG_CONFIG_HOME="$HOME/.config" 2.10 +export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir 2.11 + 2.12 +# Start DBUS session. 2.13 +if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then 2.14 + dbus-launch --sh-syntax --exit-with-session & 2.15 +fi 2.16 + 2.17 +if [ ! -d "${XDG_RUNTIME_DIR}" ]; then 2.18 + mkdir ${XDG_RUNTIME_DIR} 2.19 + chmod 0700 ${XDG_RUNTIME_DIR} 2.20 +fi 2.21 + 2.22 +exec weston-launch