wok-6.x view zlib/receipt @ rev 11677
Add pyradio
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sat Feb 18 09:50:02 2012 +0000 (2012-02-18) |
parents | d12d95aa6523 |
children | d49f88b724d0 |
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
19 patch -p 1 < $stuff/zlib-1.2.5-lfs-decls.patch
20 ./configure --prefix=/tools &&
21 make && make install
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 # see http://bugs.archlinux.org/task/19280
29 patch -p1 -i $stuff/zlib-1.2.5-lfs-decls.patch
30 # work around gcc bug; see https://bugs.archlinux.org/task/20647
31 export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK"
32 ./configure --prefix=/usr --shared &&
33 make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 cp -a $_pkg/usr/lib/libz.so* $fs/usr/lib
41 }