wok-current annotate 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 |
rev | line source |
---|---|
pankso@8 | 1 # SliTaz package receipt. |
pankso@8 | 2 |
pankso@8 | 3 PACKAGE="zlib" |
slaxemulator@5350 | 4 VERSION="1.2.5" |
pankso@178 | 5 CATEGORY="base-system" |
pankso@8 | 6 SHORT_DESC="Compression library." |
pankso@8 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@8 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
rcx@5998 | 9 WEB_SITE="http://zlib.net/" |
slaxemulator@5350 | 10 WGET_URL="$WEB_SITE/$TARBALL" |
pankso@8 | 11 |
slaxemulator@10413 | 12 DEPENDS="glibc-base" |
slaxemulator@10413 | 13 |
slaxemulator@10413 | 14 # Rules to compile & install the temporary toolchain by Tazwok. |
slaxemulator@10413 | 15 cook_tmp_toolchain() |
slaxemulator@10413 | 16 { |
slaxemulator@10413 | 17 cd $src |
slaxemulator@10413 | 18 ./configure --prefix=/tools && |
slaxemulator@10413 | 19 make && make install |
slaxemulator@10413 | 20 } |
slaxemulator@10413 | 21 |
pankso@8 | 22 # Rules to configure and make the package. |
pankso@8 | 23 compile_rules() |
pankso@8 | 24 { |
gokhlayeh@8214 | 25 cd $src |
slaxemulator@11121 | 26 # see http://bugs.archlinux.org/task/19280 |
slaxemulator@11121 | 27 patch -p1 -i $stuff/zlib-1.2.5-lfs-decls.patch |
slaxemulator@11121 | 28 # work around gcc bug; see https://bugs.archlinux.org/task/20647 |
slaxemulator@11121 | 29 export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" |
gokhlayeh@8214 | 30 ./configure --prefix=/usr --shared && |
slaxemulator@10406 | 31 make && make install |
pankso@8 | 32 } |
pankso@8 | 33 |
pankso@8 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@8 | 35 genpkg_rules() |
pankso@8 | 36 { |
pankso@8 | 37 mkdir -p $fs/usr/lib |
rcx@5998 | 38 cp -a $_pkg/usr/lib/libz.so* $fs/usr/lib |
pankso@8 | 39 } |