# HG changeset patch # User Christophe Lincoln # Date 1399455642 -7200 # Node ID 4b98ccd8fa5813069e3cc980e391f7dd5a91a8d5 # Parent 48a8666c6207d5ceb8d2f7a880e74595b0f71526 wok/weston-rpi diff -r 48a8666c6207 -r 4b98ccd8fa58 wok/weston-rpi/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wok/weston-rpi/receipt Wed May 07 11:40:42 2014 +0200 @@ -0,0 +1,45 @@ +# SliTaz package receipt. + +PACKAGE="weston-rpi" +VERSION="1.4.0" +CATEGORY="x-window" +SHORT_DESC="Implementation of a Wayland compositor for the Raspberry Pi." +MAINTAINER="pankso@slitaz.org" +LICENSE="MIT" +TARBALL="$PACKAGE-$VERSION.tar.xz" +WEB_SITE="http://www.slitaz.org/" +WGET_URL="http://wayland.freedesktop.org/releases/$TARBALL" +HOST_ARCH="arm" + +DEPENDS="wayland mesa-wayland cairo-gl libxkbcommon libunwind mtdev \ +xorg-libXcursor pam liblzma" +BUILD_DEPENDS="wayland-dev mesa-wayland-dev cairo-gl-dev libxkbcommon-dev \ +libunwind-dev mtdev-dev xorg-libXcursor-dev pam-dev liblzma-dev \ +gegl-dev libdrm-dev xorg-libXxf86vm-dev udev-dev pkg-config jpeg-dev" + +# WARNING: Weston for the Rpi needs the official firmware in /opt/vc. +# They are not packaged in i486 so install all firmware by hand. +# DL: https://github.com/raspberrypi/firmware + +# Rules to configure and make the package. +compile_rules() +{ + ./configure \ + --prefix=/usr \ + --libexec=/usr/lib/weston \ + --disable-documentation \ + --enable-fbdev-compositor && + make && make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/weston $fs/usr/share + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib/weston/*.so* $fs/usr/lib/weston + cp -a $install/usr/lib/weston/weston-* $fs/usr/lib/weston + cp -a $install/usr/share/weston $fs/usr/share + # Custom weston-session + cp -f $stuff/weston-session $fs/usr/bin +} diff -r 48a8666c6207 -r 4b98ccd8fa58 wok/weston-rpi/stuff/weston-session --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wok/weston-rpi/stuff/weston-session Wed May 07 11:40:42 2014 +0200 @@ -0,0 +1,19 @@ +#!/bin/sh +# +# Start Wayland Weston compositor session on SliTaz GNU/Linux +# + +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir + +# Start DBUS session. +if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then + dbus-launch --sh-syntax --exit-with-session & +fi + +if [ ! -d "${XDG_RUNTIME_DIR}" ]; then + mkdir ${XDG_RUNTIME_DIR} + chmod 0700 ${XDG_RUNTIME_DIR} +fi + +exec weston-launch