wok-next 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 | dc05f28d0496 |
children | f730b5689911 |
files | directfb-dev/receipt directfb-examples/receipt directfb/receipt |
line diff
1.1 --- a/directfb-dev/receipt Sun Mar 02 15:43:44 2014 +0100 1.2 +++ b/directfb-dev/receipt Sun Mar 02 16:33:52 2014 +0100 1.3 @@ -9,6 +9,7 @@ 1.4 MAINTAINER="pankso@slitaz.org" 1.5 LICENSE="LGPL2.1" 1.6 WEB_SITE="http://www.directfb.org/" 1.7 +HOST_ARCH="i486 arm" 1.8 1.9 DEPENDS="pkg-config" 1.10
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/directfb-examples/receipt Sun Mar 02 16:33:52 2014 +0100 2.3 @@ -0,0 +1,44 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="directfb-examples" 2.7 +VERSION="1.2.0" 2.8 +CATEGORY="system-tools" 2.9 +SHORT_DESC="DirectFB examples." 2.10 +MAINTAINER="pankso@slitaz.org" 2.11 +SOURCE="DirectFB-examples" 2.12 +TARBALL="$SOURCE-$VERSION.tar.gz" 2.13 +WEB_SITE="http://www.directfb.org/" 2.14 +WGET_URL="http://www.directfb.org/downloads/Extras/$TARBALL" 2.15 +HOST_ARCH="i486 arm" 2.16 + 2.17 +DEPENDS="directfb" 2.18 +BUILD_DEPENDS="directfb-dev" 2.19 + 2.20 +# Handle cross compilation. 2.21 +case "$ARCH" in 2.22 + arm) 2.23 + export LDFLAGS="-L/cross/arm/sysroot/usr/lib" 2.24 + export CPPFLAGS="-I/cross/arm/sysroot/usr/include/directfb" ;; 2.25 +esac 2.26 + 2.27 +# Rules to configure and make the package. 2.28 +compile_rules() 2.29 +{ 2.30 + ./configure \ 2.31 + --prefix=/usr \ 2.32 + $CONFIGURE_ARGS && 2.33 + make && make DESTDIR=$DESTDIR install 2.34 +} 2.35 + 2.36 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.37 +genpkg_rules() 2.38 +{ 2.39 + mkdir -p $fs/usr/lib $fs/usr/share 2.40 + cp -a $install/usr/bin $fs/usr 2.41 + cp -a $install/usr/share/directfb-* $fs/usr/share 2.42 +} 2.43 + 2.44 +testsuite() 2.45 +{ 2.46 + readelf -h $install/usr/bin/spacedream 2.47 +}
3.1 --- a/directfb/receipt Sun Mar 02 15:43:44 2014 +0100 3.2 +++ b/directfb/receipt Sun Mar 02 16:33:52 2014 +0100 3.3 @@ -9,34 +9,34 @@ 3.4 SOURCE="DirectFB" 3.5 TARBALL="$SOURCE-$VERSION.tar.gz" 3.6 WEB_SITE="http://www.directfb.org/" 3.7 -WGET_URL="http://www.directfb.org/downloads/Core/$SOURCE-1.4/$TARBALL" 3.8 -#HOST_ARCH="i486 arm" 3.9 +WGET_URL="http://www.directfb.org/downloads/Core/$SOURCE-1.7/$TARBALL" 3.10 +HOST_ARCH="i486 arm" 3.11 3.12 -DEPENDS="libpng tslib" 3.13 -BUILD_DEPENDS="libpng-dev tslib-dev perl" 3.14 +DEPENDS="libpng libjpeg freetype tslib zlib" 3.15 +BUILD_DEPENDS="libpng-dev jpeg-dev freetype-dev tslib-dev perl" 3.16 3.17 # Handle cross compilation. 3.18 case "$ARCH" in 3.19 arm) 3.20 - BUILD_DEPENDS="libpng-dev" 3.21 - CROSS_ARGS='LDFLAGS="-L/cross/arm/sysroot/usr/lib" \ 3.22 - CPPFLAGS="-I/cross/arm/sysroot/usr/include"';; 3.23 + BUILD_DEPENDS="libpng-dev jpeg-dev freetype-dev" 3.24 + ARCH_ARGS="--with-gfxdrivers=none --disable-x11" 3.25 + export LDFLAGS="-L/cross/arm/sysroot/usr/lib" 3.26 + export CPPFLAGS="-I/cross/arm/sysroot/usr/include" ;; 3.27 esac 3.28 3.29 # Handle SliTaz arch installation. 3.30 case "$SLITAZ_ARCH" in 3.31 - arm) DEPENDS="libpng" ;; 3.32 + arm) DEPENDS="libpng libjpeg freetype zlib" ;; 3.33 esac 3.34 3.35 # Rules to configure and make the package. 3.36 compile_rules() 3.37 { 3.38 - cd $src 3.39 ./configure \ 3.40 --prefix=/usr \ 3.41 --sysconfdir=/etc \ 3.42 --with-dither-rgb16=none \ 3.43 - $CONFIGURE_ARGS $CROSS_ARGS && 3.44 + $CONFIGURE_ARGS $ARCH_ARGS && 3.45 make && make DESTDIR=$DESTDIR install 3.46 } 3.47