wok-next diff directfb/receipt @ rev 15969
openssl: up to 1.0.1f + add to ARM arch (almost rewrite receipt)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Feb 24 23:42:48 2014 +0100 (2014-02-24) |
parents | 812b1350f249 |
children | 010bb8c2c4ac |
line diff
1.1 --- a/directfb/receipt Sat Nov 30 10:52:52 2013 +0000 1.2 +++ b/directfb/receipt Mon Feb 24 23:42:48 2014 +0100 1.3 @@ -10,18 +10,34 @@ 1.4 TARBALL="$SOURCE-$VERSION.tar.gz" 1.5 WEB_SITE="http://www.directfb.org/" 1.6 WGET_URL="http://www.directfb.org/downloads/Core/$SOURCE-1.4/$TARBALL" 1.7 +HOST_ARCH="i486 arm" 1.8 1.9 DEPENDS="libpng tslib" 1.10 BUILD_DEPENDS="libpng-dev tslib-dev perl" 1.11 1.12 +# Handle cross compilation. 1.13 +case "$ARCH" in 1.14 + arm) 1.15 + BUILD_DEPENDS="libpng-dev" 1.16 + CROSS_ARGS='LDFLAGS="-L/cross/arm/sysroot/usr/lib" \ 1.17 + CPPFLAGS="-I/cross/arm/sysroot/usr/include"';; 1.18 +esac 1.19 + 1.20 +# Handle SliTaz arch installation. 1.21 +case "$SLITAZ_ARCH" in 1.22 + arm) DEPENDS="libpng" ;; 1.23 +esac 1.24 + 1.25 # Rules to configure and make the package. 1.26 compile_rules() 1.27 { 1.28 cd $src 1.29 - ./configure --prefix=/usr --sysconfdir=/etc --with-dither-rgb16=none \ 1.30 - $CONFIGURE_ARGS && 1.31 - make && 1.32 - make DESTDIR=$DESTDIR install 1.33 + ./configure \ 1.34 + --prefix=/usr \ 1.35 + --sysconfdir=/etc \ 1.36 + --with-dither-rgb16=none \ 1.37 + $CONFIGURE_ARGS $CROSS_ARGS && 1.38 + make && make DESTDIR=$DESTDIR install 1.39 } 1.40 1.41 # Rules to gen a SliTaz package suitable for Tazpkg.