wok-6.x annotate zlib/receipt @ rev 18552
Up slitaz-tools(952)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 07 22:01:33 2015 +0200 (2015-11-07) |
parents | 7a526dcd4932 |
children | 24f3e4344c1a |
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" |
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" |
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 { |
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 } |