# HG changeset patch # User Christophe Lincoln # Date 1398125418 -7200 # Node ID 80fba2e65d49cf20bdb21a4f25336f09fe1feac3 # Parent aea5676e77c8324867a7da26b9f4079f217a3b26 Commit wok/rpi-vc-tools and wok/xorg-xf86-video-rpi (not far to cross compile) diff -r aea5676e77c8 -r 80fba2e65d49 wok/rpi-vc-tools/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wok/rpi-vc-tools/receipt Tue Apr 22 02:10:18 2014 +0200 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="rpi-vc-tools" +VERSION="" +CATEGORY="system-tools" +SHORT_DESC="Raspberry Pi VideoCore Tools (vcdbg, vcgencmd, raspivid, etc)." +MAINTAINER="pankso@slitaz.org" +LICENSE="custom" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://www.raspberrypi.org/" +WGET_URL="$TARBALL" +HOST_ARCH="arm" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/opt/vc +} diff -r aea5676e77c8 -r 80fba2e65d49 wok/xorg-xf86-video-rpi/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wok/xorg-xf86-video-rpi/receipt Tue Apr 22 02:10:18 2014 +0200 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="xorg-xf86-video-rpi" +VERSION="0.2.0" +CATEGORY="x-window" +SHORT_DESC="Raspberry Pi DDX driver for XFree86 server." +MAINTAINER="pankso@slitaz.org" +LICENSE="GPL" +SOURCE="xf86-video-rpi" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="https://github.com/Factoid/xf86-video-rpi" +WGET_URL="${WEB_SITE}/archive/${VERSION}.tar.gz" +HOST_ARCH="arm" + +BUILD_DEPENDS="xorg-server-dev" + +# Rules to configure and make the package. +compile_rules() +{ + if [ ! -d "/opt/vc/include" ]; then + echo "Missing Raspberry PI VideoCore files..." + return 1 + fi + autoconf && automake + ./configure \ + --sysconfdir=/etc \ + $CONFIGURE_ARGS && + make && make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/X11/modules/drivers/ + cp -a $install/usr/lib/X11/modules/drivers/*.so \ + $fs/usr/lib/X11/modules/drivers/ +}