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

Up libcomerr (1.44.5)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 24 12:15:02 2020 +0100 (2020-01-24)
parents 24f3e4344c1a
children 7e911016a644
rev   line source
pankso@8 1 # SliTaz package receipt.
pankso@8 2
pankso@8 3 PACKAGE="zlib"
pascal@20022 4 VERSION="1.2.11"
pankso@178 5 CATEGORY="base-system"
al@17992 6 SHORT_DESC="Compression library"
pankso@8 7 MAINTAINER="pankso@slitaz.org"
al@14742 8 LICENSE="zlib/libpng"
pascal@14472 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@12769 10 WEB_SITE="http://zlib.net"
devl547@19594 11 WGET_URL="$WEB_SITE/$TARBALL"
devl547@19594 12 #WGET_URL="$SF_MIRROR/libpng/$TARBALL"
pankso@12828 13 HOST_ARCH="i486 arm x86_64"
pankso@8 14
slaxemulator@10413 15 DEPENDS="glibc-base"
pascal@12137 16 BUILD_DEPENDS=""
slaxemulator@10413 17
pankso@8 18 # Rules to configure and make the package.
pankso@8 19 compile_rules()
pankso@8 20 {
pankso@12769 21 case "$ARCH" in
pankso@12769 22 i486)
pankso@12769 23 # work around gcc bug; see https://bugs.archlinux.org/task/20647
pankso@12769 24 export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" ;;
pankso@12769 25 esac
gokhlayeh@8214 26 ./configure --prefix=/usr --shared &&
slaxemulator@10406 27 make && make install
pankso@8 28 }
pankso@8 29
pankso@12769 30 # Important cross compiled package so run readelf.
pankso@12769 31 testsuite()
pankso@12769 32 {
pankso@12769 33 cd $install
pankso@12769 34 readelf -h usr/lib/*.so.$VERSION
pankso@12769 35 }
pankso@12769 36
pankso@8 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@8 38 genpkg_rules()
pankso@8 39 {
pankso@8 40 mkdir -p $fs/usr/lib
pankso@12769 41 cp -a $install/usr/lib/libz.so* $fs/usr/lib
pankso@8 42 }