wok-next annotate directfb/receipt @ rev 15988
popt: add to ARM arch
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 02 02:38:28 2014 +0100 (2014-03-02) |
parents | fd812ac90452 |
children | 9a2b059bf7d8 |
rev | line source |
---|---|
pascal@11220 | 1 # SliTaz package receipt. |
pascal@11220 | 2 |
pascal@11220 | 3 PACKAGE="directfb" |
pascal@11220 | 4 VERSION="1.4.3" |
pascal@11220 | 5 CATEGORY="system-tools" |
pascal@11220 | 6 SHORT_DESC="Thin library that provides hardware graphics acceleration." |
pascal@11220 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15579 | 8 LICENSE="LGPL2.1" |
pascal@11220 | 9 SOURCE="DirectFB" |
pascal@11220 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@11220 | 11 WEB_SITE="http://www.directfb.org/" |
pascal@11220 | 12 WGET_URL="http://www.directfb.org/downloads/Core/$SOURCE-1.4/$TARBALL" |
pankso@15970 | 13 #HOST_ARCH="i486 arm" |
pascal@11220 | 14 |
pascal@15579 | 15 DEPENDS="libpng tslib" |
pascal@15580 | 16 BUILD_DEPENDS="libpng-dev tslib-dev perl" |
pascal@15579 | 17 |
pankso@15969 | 18 # Handle cross compilation. |
pankso@15969 | 19 case "$ARCH" in |
pankso@15969 | 20 arm) |
pankso@15969 | 21 BUILD_DEPENDS="libpng-dev" |
pankso@15969 | 22 CROSS_ARGS='LDFLAGS="-L/cross/arm/sysroot/usr/lib" \ |
pankso@15969 | 23 CPPFLAGS="-I/cross/arm/sysroot/usr/include"';; |
pankso@15969 | 24 esac |
pankso@15969 | 25 |
pankso@15969 | 26 # Handle SliTaz arch installation. |
pankso@15969 | 27 case "$SLITAZ_ARCH" in |
pankso@15969 | 28 arm) DEPENDS="libpng" ;; |
pankso@15969 | 29 esac |
pankso@15969 | 30 |
pascal@11220 | 31 # Rules to configure and make the package. |
pascal@11220 | 32 compile_rules() |
pascal@11220 | 33 { |
pascal@11220 | 34 cd $src |
pankso@15969 | 35 ./configure \ |
pankso@15969 | 36 --prefix=/usr \ |
pankso@15969 | 37 --sysconfdir=/etc \ |
pankso@15969 | 38 --with-dither-rgb16=none \ |
pankso@15969 | 39 $CONFIGURE_ARGS $CROSS_ARGS && |
pankso@15969 | 40 make && make DESTDIR=$DESTDIR install |
pascal@11220 | 41 } |
pascal@11220 | 42 |
pascal@11220 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11220 | 44 genpkg_rules() |
pascal@11220 | 45 { |
pascal@11220 | 46 mkdir -p $fs/usr/lib $fs/usr/share |
pascal@15579 | 47 cp -a $install/usr/bin $fs/usr |
pascal@15579 | 48 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@15579 | 49 cp -a $install/usr/lib/directfb-1.4-0 $fs/usr/lib |
pascal@15579 | 50 cp -a $install/usr/share/directfb-* $fs/usr/share |
pascal@11220 | 51 find $fs/usr/lib -name "*.*a" -exec rm '{}' \; |
pascal@11220 | 52 } |