wok-next diff directfb-examples/receipt @ rev 15996

directfb: add to ARM arch + add directfb-examples
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 02 16:33:52 2014 +0100 (2014-03-02)
parents
children 0fa6869e0b4b
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/directfb-examples/receipt	Sun Mar 02 16:33:52 2014 +0100
     1.3 @@ -0,0 +1,44 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="directfb-examples"
     1.7 +VERSION="1.2.0"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="DirectFB examples."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +SOURCE="DirectFB-examples"
    1.12 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://www.directfb.org/"
    1.14 +WGET_URL="http://www.directfb.org/downloads/Extras/$TARBALL"
    1.15 +HOST_ARCH="i486 arm"
    1.16 +
    1.17 +DEPENDS="directfb"
    1.18 +BUILD_DEPENDS="directfb-dev"
    1.19 +
    1.20 +# Handle cross compilation.
    1.21 +case "$ARCH" in
    1.22 +	arm) 
    1.23 +		export LDFLAGS="-L/cross/arm/sysroot/usr/lib"
    1.24 +		export CPPFLAGS="-I/cross/arm/sysroot/usr/include/directfb" ;;
    1.25 +esac
    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 +		$CONFIGURE_ARGS &&
    1.33 +	make && make DESTDIR=$DESTDIR install
    1.34 +}
    1.35 +
    1.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 +genpkg_rules()
    1.38 +{
    1.39 +	mkdir -p $fs/usr/lib $fs/usr/share
    1.40 +	cp -a $install/usr/bin $fs/usr
    1.41 +	cp -a $install/usr/share/directfb-* $fs/usr/share
    1.42 +}
    1.43 +
    1.44 +testsuite()
    1.45 +{
    1.46 +		readelf -h $install/usr/bin/spacedream
    1.47 +}