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

updated adminer (4.7.5 -> 4.8.1)
author Hans-G?nter Theisgen
date Sat Sep 25 17:50:51 2021 +0100 (2021-09-25)
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 }