wok view libpng+apng/receipt @ rev 20194

Up autofs (5.1.4), btrfs-progs (4.15), cifs-utils (6.7), davfs2 (1.5.4), dosfstools (4.1), e2fsprogs (1.43.9), f2fs-tools (1.10.0), moosefs (3.0.100), milfs-utils (2.2.7), owfs (3.2p1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 12 13:54:33 2018 +0100 (2018-02-12)
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 }