wok view zlib/receipt @ rev 12179
Up: slitaz-configs (4.8.3) - Only apps in Applications menu and logout button on top right
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 24 16:15:55 2012 +0100 (2012-03-24) |
parents | 16b97ec782a4 |
children | 68de2a869f28 |
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=""
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 }