wok-current view zlib/receipt @ rev 18409
merge
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Sat Sep 19 14:22:36 2015 +0000 (2015-09-19) |
parents | 7a526dcd4932 |
children | 24f3e4344c1a |
line source
1 # SliTaz package receipt.
3 PACKAGE="zlib"
4 VERSION="1.2.8"
5 CATEGORY="base-system"
6 SHORT_DESC="Compression library"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="zlib/libpng"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://zlib.net"
11 WGET_URL="$SF_MIRROR/libpng/$TARBALL"
12 HOST_ARCH="i486 arm x86_64"
14 DEPENDS="glibc-base"
15 BUILD_DEPENDS=""
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 case "$ARCH" in
21 i486)
22 # work around gcc bug; see https://bugs.archlinux.org/task/20647
23 export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" ;;
24 esac
25 ./configure --prefix=/usr --shared &&
26 make && make install
27 }
29 # Important cross compiled package so run readelf.
30 testsuite()
31 {
32 cd $install
33 readelf -h usr/lib/*.so.$VERSION
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 cp -a $install/usr/lib/libz.so* $fs/usr/lib
41 }