wok view libpng+apng/receipt @ rev 22916
claws-mail: added build dependency libgnutls
author | Hans-G?nter Theisgen |
---|---|
date | Mon Feb 24 13:45:59 2020 +0100 (2020-02-24) |
parents | 4fea4d70e3c3 |
children | 65d7d867e0c1 |
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 # try to fix apng patch...
31 gzip -cd $SRC/$PATCH > patch.apng
32 for i in $(seq 267 -1 248); do
33 sed -i "s|^\+PNG_EXPORT($i,|+PNG_EXPORT($(($i+2)),|" patch.apng
34 done
35 patch -p0 < patch.apng
37 LIBS=-lrt \
38 ./configure \
39 --prefix=/usr \
40 --disable-static \
41 $CONFIGURE_ARGS &&
42 make -j 1 &&
44 case "$ARCH" in
45 arm*)
46 make DESTDIR=$DESTDIR install ;;
47 *)
48 make check | tr [A-Z] [a-z] &&
49 make DESTDIR=$DESTDIR install ;;
50 esac
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/lib
57 cp -a $install/usr/lib/*.so* $fs/usr/lib
58 }