wok-current annotate 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 |
rev | line source |
---|---|
pankso@15996 | 1 # SliTaz package receipt. |
pankso@15996 | 2 |
pankso@15996 | 3 PACKAGE="directfb-examples" |
pankso@15996 | 4 VERSION="1.2.0" |
pankso@15996 | 5 CATEGORY="system-tools" |
pankso@15996 | 6 SHORT_DESC="DirectFB examples." |
pankso@15996 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@15996 | 8 SOURCE="DirectFB-examples" |
pankso@15996 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pankso@15996 | 10 WEB_SITE="http://www.directfb.org/" |
pankso@15996 | 11 WGET_URL="http://www.directfb.org/downloads/Extras/$TARBALL" |
pankso@15996 | 12 HOST_ARCH="i486 arm" |
pankso@15996 | 13 |
pankso@15996 | 14 DEPENDS="directfb" |
pankso@15996 | 15 BUILD_DEPENDS="directfb-dev" |
pankso@15996 | 16 |
pankso@15996 | 17 # Handle cross compilation. |
pankso@15996 | 18 case "$ARCH" in |
pankso@15996 | 19 arm) |
pankso@15996 | 20 export LDFLAGS="-L/cross/arm/sysroot/usr/lib" |
pankso@15996 | 21 export CPPFLAGS="-I/cross/arm/sysroot/usr/include/directfb" ;; |
pankso@15996 | 22 esac |
pankso@15996 | 23 |
pankso@15996 | 24 # Rules to configure and make the package. |
pankso@15996 | 25 compile_rules() |
pankso@15996 | 26 { |
pankso@15996 | 27 ./configure \ |
pankso@15996 | 28 --prefix=/usr \ |
pankso@15996 | 29 $CONFIGURE_ARGS && |
pankso@15996 | 30 make && make DESTDIR=$DESTDIR install |
pankso@15996 | 31 } |
pankso@15996 | 32 |
pankso@15996 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@15996 | 34 genpkg_rules() |
pankso@15996 | 35 { |
pankso@15996 | 36 mkdir -p $fs/usr/lib $fs/usr/share |
pankso@15996 | 37 cp -a $install/usr/bin $fs/usr |
pankso@15996 | 38 cp -a $install/usr/share/directfb-* $fs/usr/share |
pankso@15996 | 39 } |
pankso@15996 | 40 |
pankso@15996 | 41 testsuite() |
pankso@15996 | 42 { |
pankso@15996 | 43 readelf -h $install/usr/bin/spacedream |
pankso@15996 | 44 } |