wok-current view zlib/receipt @ rev 14274
njconnect - source file is now fixed on upstream level ;-)
author | Pawel P. <xj@wp.pl> |
---|---|
date | Fri Apr 05 12:14:08 2013 +0000 (2013-04-05) |
parents | 68de2a869f28 |
children | bad390eafe41 |
line source
1 # SliTaz package receipt.
3 PACKAGE="zlib"
4 VERSION="1.2.7"
5 CATEGORY="base-system"
6 SHORT_DESC="Compression library."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://zlib.net"
10 WGET_URL="$WEB_SITE/$TARBALL"
11 HOST_ARCH="i486 arm x86_64"
13 DEPENDS="glibc-base"
14 BUILD_DEPENDS=""
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
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 }