wok-next annotate directfb-examples/receipt @ rev 16414
Up: slitaz-tools, slitaz-tools-boxes (5.7.3)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 17 13:44:31 2014 +0300 (2014-04-17) |
parents | 9a2b059bf7d8 |
children | 10baa41a7882 |
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@15999 | 43 readelf -h $install/usr/bin/spacedream |
pankso@15996 | 44 } |