wok-next view zlib/receipt @ rev 12119

libhx, openjpeg, vlc, zlib: update bdeps (bb incompatibilities)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 13 13:21:44 2012 +0100 (2012-03-13)
parents d49f88b724d0
children 08977d6d0fba
line source
1 # SliTaz package receipt.
3 PACKAGE="zlib"
4 VERSION="1.2.6"
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="coreutils-file-special"
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 # work around gcc bug; see https://bugs.archlinux.org/task/20647
28 export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK"
29 ./configure --prefix=/usr --shared &&
30 make && make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
37 cp -a $_pkg/usr/lib/libz.so* $fs/usr/lib
38 }