wok-stable view zlib/receipt @ rev 11382

Compat: remove gcc from zlib BUILD_DEPENDS to ensure proper cookorder in tazwok
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Dec 10 04:29:00 2011 +0100 (2011-12-10)
parents f1aa32b03abe
children aa3bb2ecfa32
line source
1 # SliTaz package receipt.
3 PACKAGE="zlib"
4 VERSION="1.2.5"
5 CATEGORY="base-system"
6 SHORT_DESC="Compression library."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://zlib.net/"
10 WGET_URL="$WEB_SITE/$TARBALL"
12 DEPENDS="glibc-base"
14 # Rules to compile & install the temporary toolchain by Tazwok.
15 cook_tmp_toolchain()
16 {
17 cd $src
18 ./configure --prefix=/tools &&
19 make && make install
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 # see http://bugs.archlinux.org/task/19280
27 patch -p1 -i $stuff/zlib-1.2.5-lfs-decls.patch
28 # work around gcc bug; see https://bugs.archlinux.org/task/20647
29 export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK"
30 ./configure --prefix=/usr --shared &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 cp -a $_pkg/usr/lib/libz.so* $fs/usr/lib
39 }