wok-next annotate zlib/receipt @ rev 12533
Up: xorg-xf86-input-evdev (it provide mouse and keyboard support so xorg-xf86-input-[mouse|keyboard] can be removed)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Apr 26 01:50:03 2012 +0200 (2012-04-26) |
parents | 16b97ec782a4 |
children | 68de2a869f28 |
rev | line source |
---|---|
pankso@8 | 1 # SliTaz package receipt. |
pankso@8 | 2 |
pankso@8 | 3 PACKAGE="zlib" |
slaxemulator@11870 | 4 VERSION="1.2.6" |
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" |
pascal@12137 | 13 BUILD_DEPENDS="" |
slaxemulator@10413 | 14 |
slaxemulator@10413 | 15 # Rules to compile & install the temporary toolchain by Tazwok. |
slaxemulator@10413 | 16 cook_tmp_toolchain() |
slaxemulator@10413 | 17 { |
slaxemulator@10413 | 18 cd $src |
slaxemulator@10413 | 19 ./configure --prefix=/tools && |
slaxemulator@10413 | 20 make && make install |
slaxemulator@10413 | 21 } |
slaxemulator@10413 | 22 |
pankso@8 | 23 # Rules to configure and make the package. |
pankso@8 | 24 compile_rules() |
pankso@8 | 25 { |
gokhlayeh@8214 | 26 cd $src |
slaxemulator@11121 | 27 # work around gcc bug; see https://bugs.archlinux.org/task/20647 |
slaxemulator@11121 | 28 export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" |
gokhlayeh@8214 | 29 ./configure --prefix=/usr --shared && |
slaxemulator@10406 | 30 make && make install |
pankso@8 | 31 } |
pankso@8 | 32 |
pankso@8 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@8 | 34 genpkg_rules() |
pankso@8 | 35 { |
pankso@8 | 36 mkdir -p $fs/usr/lib |
rcx@5998 | 37 cp -a $_pkg/usr/lib/libz.so* $fs/usr/lib |
pankso@8 | 38 } |