wok-6.x annotate zlib/receipt @ rev 13548

Added multi-stream support to Alsa
author Brenton Scott <admin@trixarian.net>
date Fri Nov 02 06:24:10 2012 +0200 (2012-11-02)
parents 68de2a869f28
children bad390eafe41
rev   line source
pankso@8 1 # SliTaz package receipt.
pankso@8 2
pankso@8 3 PACKAGE="zlib"
pankso@12769 4 VERSION="1.2.7"
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"
pankso@12769 9 WEB_SITE="http://zlib.net"
slaxemulator@5350 10 WGET_URL="$WEB_SITE/$TARBALL"
pankso@12828 11 HOST_ARCH="i486 arm x86_64"
pankso@8 12
slaxemulator@10413 13 DEPENDS="glibc-base"
pascal@12137 14 BUILD_DEPENDS=""
slaxemulator@10413 15
pankso@8 16 # Rules to configure and make the package.
pankso@8 17 compile_rules()
pankso@8 18 {
gokhlayeh@8214 19 cd $src
pankso@12769 20 case "$ARCH" in
pankso@12769 21 i486)
pankso@12769 22 # work around gcc bug; see https://bugs.archlinux.org/task/20647
pankso@12769 23 export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" ;;
pankso@12769 24 esac
gokhlayeh@8214 25 ./configure --prefix=/usr --shared &&
slaxemulator@10406 26 make && make install
pankso@8 27 }
pankso@8 28
pankso@12769 29 # Important cross compiled package so run readelf.
pankso@12769 30 testsuite()
pankso@12769 31 {
pankso@12769 32 cd $install
pankso@12769 33 readelf -h usr/lib/*.so.$VERSION
pankso@12769 34 }
pankso@12769 35
pankso@8 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@8 37 genpkg_rules()
pankso@8 38 {
pankso@8 39 mkdir -p $fs/usr/lib
pankso@12769 40 cp -a $install/usr/lib/libz.so* $fs/usr/lib
pankso@8 41 }