wok view libpng+apng/receipt @ rev 17057

syslinux/c32box: x86_64 auto select
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 21 09:56:57 2014 +0200 (2014-08-21)
parents 1ce2e857978b
children d1139a9dbf88
line source
1 # SliTaz package receipt.
3 PACKAGE="libpng+apng"
4 PROVIDE="libpng"
5 SOURCE="libpng"
6 VERSION="1.6.2"
7 SERIES="libpng16"
8 CATEGORY="x-window"
9 SHORT_DESC="Loads and saves PNG files (with APNG support)"
10 MAINTAINER="al.bobylev@gmail.com"
11 LICENSE="zlib/libpng"
12 WEB_SITE="http://www.libpng.org/pub/png/libpng.html"
13 TARBALL="$SOURCE-$VERSION.tar.xz"
14 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
16 PATCH="$SOURCE-$VERSION-apng.patch.gz"
17 PATCH_URL="$SF_MIRROR/apng/$SOURCE/$SERIES/$PATCH"
19 DEPENDS="zlib"
20 BUILD_DEPENDS="gawk zlib-dev"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 [ -s "$SRC/$PATCH" ] || wget -O "$SRC/$PATCH" $PATCH_URL
26 gzip -cd $SRC/$PATCH | patch -p0
27 ./configure \
28 --prefix=/usr \
29 --disable-static \
30 $CONFIGURE_ARGS &&
31 make &&
32 make check | tr [A-Z] [a-z] &&
33 make DESTDIR=$DESTDIR install
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/*.so* $fs/usr/lib
41 }