wok view zlib/receipt @ rev 12784

fox14: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 15 11:12:15 2012 +0200 (2012-05-15)
parents 08977d6d0fba
children 91a6e8662cd7
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"
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 }