wok-4.x view zlib/receipt @ rev 11234

jnettop: update depends
author Paul Issott <paul@slitaz.org>
date Sun Nov 06 09:54:00 2011 +0000 (2011-11-06)
parents 63d859d2a162
children d12d95aa6523
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"
13 BUILD_DEPENDS="gcc"
15 # Rules to compile & install the temporary toolchain by Tazwok.
16 cook_tmp_toolchain()
17 {
18 cd $src
19 ./configure --prefix=/tools &&
20 make && make install
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 # see http://bugs.archlinux.org/task/19280
28 patch -p1 -i $stuff/zlib-1.2.5-lfs-decls.patch
29 # work around gcc bug; see https://bugs.archlinux.org/task/20647
30 export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK"
31 ./configure --prefix=/usr --shared &&
32 make && make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 cp -a $_pkg/usr/lib/libz.so* $fs/usr/lib
40 }