wok view libpng+apng/receipt @ rev 20375

I. nagios update: 3.5.0 (March 15, 2013) -> 3.5.1 (2013-08-30) II. typo
author Erkan Yilmaz <erkan@slitaz.org>
date Wed Jun 13 07:19:54 2018 +0000 (2018-06-13)
parents d1ab69441168
children 516554f6d045
line source
1 # SliTaz package receipt.
3 PACKAGE="libpng+apng"
4 SOURCE="libpng"
5 VERSION="1.6.28"
6 SERIES="libpng16"
7 CATEGORY="x-window"
8 SHORT_DESC="Loads and saves PNG files (with APNG support)"
9 MAINTAINER="al.bobylev@gmail.com"
10 LICENSE="zlib/libpng"
11 WEB_SITE="http://www.libpng.org/pub/png/libpng.html"
12 TARBALL="$SOURCE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
14 HOST_ARCH="i486 arm"
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 case "$ARCH" in
33 arm*)
34 make DESTDIR=$DESTDIR install ;;
35 *)
36 make check | tr [A-Z] [a-z] &&
37 make DESTDIR=$DESTDIR install ;;
38 esac
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 }