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