wok-current rev 15945
libpng: add to ARM port
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Feb 23 02:23:54 2014 +0100 (2014-02-23) |
parents | f6332424127f |
children | a73d738315e8 |
files | libpng-dev/receipt libpng/receipt |
line diff
1.1 --- a/libpng-dev/receipt Sun Feb 23 00:35:49 2014 +0100 1.2 +++ b/libpng-dev/receipt Sun Feb 23 02:23:54 2014 +0100 1.3 @@ -8,8 +8,9 @@ 1.4 LICENSE="zlib/libpng" 1.5 WANTED="libpng" 1.6 WEB_SITE="http://libpng.org/pub/png/libpng.html" 1.7 +HOST_ARCH="i486 arm" 1.8 1.9 -DEPENDS="libpng pkg-config" 1.10 +DEPENDS="libpng" 1.11 1.12 # Rules to gen a SliTaz package suitable for Tazpkg. 1.13 genpkg_rules()
2.1 --- a/libpng/receipt Sun Feb 23 00:35:49 2014 +0100 2.2 +++ b/libpng/receipt Sun Feb 23 02:23:54 2014 +0100 2.3 @@ -9,10 +9,16 @@ 2.4 TARBALL="$PACKAGE-$VERSION.tar.bz2" 2.5 WEB_SITE="http://libpng.org/pub/png/libpng.html" 2.6 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 2.7 +HOST_ARCH="i486 arm" 2.8 2.9 DEPENDS="zlib" 2.10 BUILD_DEPENDS="pkg-config gawk zlib-dev" 2.11 2.12 +# Handle cross compilation. 2.13 +case "$ARCH" in 2.14 + arm) BUILD_DEPENDS="" ;; 2.15 +esac 2.16 + 2.17 # Rules to configure and make the package. 2.18 compile_rules() 2.19 {