wok view libpng+apng/receipt @ rev 21277

updated libpng+apng and libpng+apng-dev (1.6.28 -> 1.6.36)
author Hans-G?nter Theisgen
date Fri Apr 12 17:35:29 2019 +0100 (2019-04-12)
parents 5e2c216c7408
children 4fea4d70e3c3
line source
1 # SliTaz package receipt.
3 PACKAGE="libpng+apng"
4 SOURCE="libpng"
5 VERSION="1.6.36"
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"
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 HOST_ARCH="i486 arm"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 [ -s "$SRC/$PATCH" ] || wget -O "$SRC/$PATCH" $PATCH_URL
28 gzip -cd $SRC/$PATCH | patch -p0
30 ./configure \
31 --prefix=/usr \
32 --disable-static \
33 $CONFIGURE_ARGS &&
34 make -j 1 &&
36 case "$ARCH" in
37 arm*)
38 make DESTDIR=$DESTDIR install ;;
39 *)
40 make check | tr [A-Z] [a-z] &&
41 make DESTDIR=$DESTDIR install ;;
42 esac
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib
49 cp -a $install/usr/lib/*.so* $fs/usr/lib
50 }