wok-current view libpng+apng/receipt @ rev 20583

libglw-mesa, libglu-mesa, connman: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 14 17:11:28 2018 +0100 (2018-12-14)
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 }