wok-current annotate zlib/receipt @ rev 25601

use gcc49-lib-base for openldap-dev
author Stanislas Leduc <shann@slitaz.org>
date Fri Sep 01 12:04:33 2023 +0000 (16 months ago)
parents 71ea22396e62
children
rev   line source
pankso@8 1 # SliTaz package receipt.
pankso@8 2
pankso@8 3 PACKAGE="zlib"
pascal@25487 4 VERSION="1.2.13"
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
pascal@25487 18 # What is the latest version available today?
pascal@24069 19 current_version()
pascal@24069 20 {
pascal@24069 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24069 22 sed '/FONT SIZE/!d;s|.*zlib ||;s|<.*||;q'
pascal@24069 23 }
pascal@24069 24
pankso@8 25 # Rules to configure and make the package.
pankso@8 26 compile_rules()
pankso@8 27 {
pankso@12769 28 case "$ARCH" in
pankso@12769 29 i486)
pankso@12769 30 # work around gcc bug; see https://bugs.archlinux.org/task/20647
pankso@12769 31 export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" ;;
pankso@12769 32 esac
gokhlayeh@8214 33 ./configure --prefix=/usr --shared &&
slaxemulator@10406 34 make && make install
pankso@8 35 }
pankso@8 36
pankso@12769 37 # Important cross compiled package so run readelf.
pankso@12769 38 testsuite()
pankso@12769 39 {
pankso@12769 40 cd $install
pankso@12769 41 readelf -h usr/lib/*.so.$VERSION
pankso@12769 42 }
pankso@12769 43
pankso@8 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@8 45 genpkg_rules()
pankso@8 46 {
pankso@8 47 mkdir -p $fs/usr/lib
pankso@12769 48 cp -a $install/usr/lib/libz.so* $fs/usr/lib
pankso@8 49 }