wok view directfb-examples/receipt @ rev 16124

ARM: add aalib
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 23 22:40:07 2014 +0100 (2014-03-23)
parents 9a2b059bf7d8
children 10baa41a7882
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 }