wok view zlib/receipt @ rev 12020
Add node (0.6.12) - Node.js framwork (to run etherpad-lite on slitaz)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 06 14:17:35 2012 +0100 (2012-03-06) |
parents | aa3bb2ecfa32 |
children | 16b97ec782a4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="zlib"
4 VERSION="1.2.6"
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"
12 DEPENDS="glibc-base"
14 # Rules to compile & install the temporary toolchain by Tazwok.
15 cook_tmp_toolchain()
16 {
17 cd $src
18 ./configure --prefix=/tools &&
19 make && make install
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 # work around gcc bug; see https://bugs.archlinux.org/task/20647
27 export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK"
28 ./configure --prefix=/usr --shared &&
29 make && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 cp -a $_pkg/usr/lib/libz.so* $fs/usr/lib
37 }