wok annotate zlib/receipt @ rev 15395
Add: mobile-broadband-provider-info-dev
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sat Nov 02 20:33:46 2013 +0100 (2013-11-02) |
parents | d00306f65b9d |
children | c9e270dd464f |
rev | line source |
---|---|
pankso@8 | 1 # SliTaz package receipt. |
pankso@8 | 2 |
pankso@8 | 3 PACKAGE="zlib" |
pascal@14470 | 4 VERSION="1.2.8" |
pankso@178 | 5 CATEGORY="base-system" |
pankso@8 | 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" |
pascal@14472 | 11 WGET_URL="$SF_MIRROR/libpng/$TARBALL" |
pankso@12828 | 12 HOST_ARCH="i486 arm x86_64" |
pankso@8 | 13 |
slaxemulator@10413 | 14 DEPENDS="glibc-base" |
pascal@12137 | 15 BUILD_DEPENDS="" |
slaxemulator@10413 | 16 |
pankso@8 | 17 # Rules to configure and make the package. |
pankso@8 | 18 compile_rules() |
pankso@8 | 19 { |
gokhlayeh@8214 | 20 cd $src |
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 } |