wok-next view directfb/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 | 010bb8c2c4ac |
children | f730b5689911 |
line source
1 # SliTaz package receipt.
3 PACKAGE="directfb"
4 VERSION="1.4.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Thin library that provides hardware graphics acceleration."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 SOURCE="DirectFB"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.directfb.org/"
12 WGET_URL="http://www.directfb.org/downloads/Core/$SOURCE-1.7/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="libpng libjpeg freetype tslib zlib"
16 BUILD_DEPENDS="libpng-dev jpeg-dev freetype-dev tslib-dev perl"
18 # Handle cross compilation.
19 case "$ARCH" in
20 arm)
21 BUILD_DEPENDS="libpng-dev jpeg-dev freetype-dev"
22 ARCH_ARGS="--with-gfxdrivers=none --disable-x11"
23 export LDFLAGS="-L/cross/arm/sysroot/usr/lib"
24 export CPPFLAGS="-I/cross/arm/sysroot/usr/include" ;;
25 esac
27 # Handle SliTaz arch installation.
28 case "$SLITAZ_ARCH" in
29 arm) DEPENDS="libpng libjpeg freetype zlib" ;;
30 esac
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 ./configure \
36 --prefix=/usr \
37 --sysconfdir=/etc \
38 --with-dither-rgb16=none \
39 $CONFIGURE_ARGS $ARCH_ARGS &&
40 make && make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/lib $fs/usr/share
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
49 cp -a $install/usr/lib/directfb-1.4-0 $fs/usr/lib
50 cp -a $install/usr/share/directfb-* $fs/usr/share
51 find $fs/usr/lib -name "*.*a" -exec rm '{}' \;
52 }