wok rev 12769
zlib: make it an arm package (noe cook/cooker handle packages by arch
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 13 01:20:22 2012 +0200 (2012-05-13) |
parents | 7759df4ad853 |
children | e3c1d6be7e77 |
files | zlib/receipt |
line diff
1.1 --- a/zlib/receipt Sat May 12 22:46:57 2012 +0200 1.2 +++ b/zlib/receipt Sun May 13 01:20:22 2012 +0200 1.3 @@ -1,38 +1,41 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="zlib" 1.7 -VERSION="1.2.6" 1.8 +VERSION="1.2.7" 1.9 CATEGORY="base-system" 1.10 SHORT_DESC="Compression library." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.13 -WEB_SITE="http://zlib.net/" 1.14 +WEB_SITE="http://zlib.net" 1.15 WGET_URL="$WEB_SITE/$TARBALL" 1.16 +HOST_ARCH="i486 arm" 1.17 1.18 DEPENDS="glibc-base" 1.19 BUILD_DEPENDS="" 1.20 1.21 -# Rules to compile & install the temporary toolchain by Tazwok. 1.22 -cook_tmp_toolchain() 1.23 -{ 1.24 - cd $src 1.25 - ./configure --prefix=/tools && 1.26 - make && make install 1.27 -} 1.28 - 1.29 # Rules to configure and make the package. 1.30 compile_rules() 1.31 { 1.32 cd $src 1.33 - # work around gcc bug; see https://bugs.archlinux.org/task/20647 1.34 - export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" 1.35 + case "$ARCH" in 1.36 + i486) 1.37 + # work around gcc bug; see https://bugs.archlinux.org/task/20647 1.38 + export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" ;; 1.39 + esac 1.40 ./configure --prefix=/usr --shared && 1.41 make && make install 1.42 } 1.43 1.44 +# Important cross compiled package so run readelf. 1.45 +testsuite() 1.46 +{ 1.47 + cd $install 1.48 + readelf -h usr/lib/*.so.$VERSION 1.49 +} 1.50 + 1.51 # Rules to gen a SliTaz package suitable for Tazpkg. 1.52 genpkg_rules() 1.53 { 1.54 mkdir -p $fs/usr/lib 1.55 - cp -a $_pkg/usr/lib/libz.so* $fs/usr/lib 1.56 + cp -a $install/usr/lib/libz.so* $fs/usr/lib 1.57 }