wok-current view libpng+apng/receipt @ rev 22072
updated ufw (0.34 -> 0.36)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Oct 25 16:22:34 2019 +0100 (2019-10-25) |
parents | 516554f6d045 |
children | a54924df72eb |
line source
1 # SliTaz package receipt.
3 PACKAGE="libpng+apng"
4 SOURCE="libpng"
5 VERSION="1.6.37"
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 }