wok view directfb/receipt @ rev 15994
jpeg: add to ARM arch
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 02 15:43:07 2014 +0100 (2014-03-02) |
parents | fd812ac90452 |
children | 9a2b059bf7d8 |
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.4/$TARBALL"
13 #HOST_ARCH="i486 arm"
15 DEPENDS="libpng tslib"
16 BUILD_DEPENDS="libpng-dev tslib-dev perl"
18 # Handle cross compilation.
19 case "$ARCH" in
20 arm)
21 BUILD_DEPENDS="libpng-dev"
22 CROSS_ARGS='LDFLAGS="-L/cross/arm/sysroot/usr/lib" \
23 CPPFLAGS="-I/cross/arm/sysroot/usr/include"';;
24 esac
26 # Handle SliTaz arch installation.
27 case "$SLITAZ_ARCH" in
28 arm) DEPENDS="libpng" ;;
29 esac
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 cd $src
35 ./configure \
36 --prefix=/usr \
37 --sysconfdir=/etc \
38 --with-dither-rgb16=none \
39 $CONFIGURE_ARGS $CROSS_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 }