slitaz-arm rev 129

Commit wok/rpi-vc-tools and wok/xorg-xf86-video-rpi (not far to cross compile)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 22 02:10:18 2014 +0200 (2014-04-22)
parents aea5676e77c8
children 7fae2a06e947
files wok/rpi-vc-tools/receipt wok/xorg-xf86-video-rpi/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/wok/rpi-vc-tools/receipt	Tue Apr 22 02:10:18 2014 +0200
     1.3 @@ -0,0 +1,18 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="rpi-vc-tools"
     1.7 +VERSION=""
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Raspberry Pi VideoCore Tools (vcdbg, vcgencmd, raspivid, etc)."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="custom"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.13 +WEB_SITE="http://www.raspberrypi.org/"
    1.14 +WGET_URL="$TARBALL"
    1.15 +HOST_ARCH="arm"
    1.16 +
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +	mkdir -p $fs/opt/vc
    1.21 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/wok/xorg-xf86-video-rpi/receipt	Tue Apr 22 02:10:18 2014 +0200
     2.3 @@ -0,0 +1,37 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="xorg-xf86-video-rpi"
     2.7 +VERSION="0.2.0"
     2.8 +CATEGORY="x-window"
     2.9 +SHORT_DESC="Raspberry Pi DDX driver for XFree86 server."
    2.10 +MAINTAINER="pankso@slitaz.org"
    2.11 +LICENSE="GPL"
    2.12 +SOURCE="xf86-video-rpi"
    2.13 +TARBALL="$SOURCE-$VERSION.tar.gz"
    2.14 +WEB_SITE="https://github.com/Factoid/xf86-video-rpi"
    2.15 +WGET_URL="${WEB_SITE}/archive/${VERSION}.tar.gz"
    2.16 +HOST_ARCH="arm"
    2.17 +
    2.18 +BUILD_DEPENDS="xorg-server-dev"
    2.19 +
    2.20 +# Rules to configure and make the package.
    2.21 +compile_rules()
    2.22 +{
    2.23 +	if [ ! -d "/opt/vc/include" ]; then
    2.24 +		echo "Missing Raspberry PI VideoCore files..."
    2.25 +		return 1
    2.26 +	fi
    2.27 +	autoconf && automake
    2.28 +	./configure \
    2.29 +		--sysconfdir=/etc \
    2.30 +		$CONFIGURE_ARGS &&
    2.31 +	make && make install
    2.32 +}
    2.33 +
    2.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.35 +genpkg_rules()
    2.36 +{
    2.37 +	mkdir -p $fs/usr/lib/X11/modules/drivers/
    2.38 +    cp -a $install/usr/lib/X11/modules/drivers/*.so \
    2.39 +    	$fs/usr/lib/X11/modules/drivers/
    2.40 +}