wok-next view libpng/receipt @ rev 19722
Up net-snmp (5.7.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 24 18:42:05 2017 +0200 (2017-05-24) |
parents | 18b7cffacced |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libpng"
4 VERSION="1.6.28"
5 CATEGORY="libs"
6 SHORT_DESC="PNG images library (with APNG support)"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="zlib/libpng"
9 WEB_SITE="http://www.libpng.org/pub/png/libpng.html"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/libpng/$TARBALL"
15 PATCH="$PACKAGE-$VERSION-apng.patch.gz"
16 PATCH_URL="$SF_MIRROR/apng/$PATCH"
18 DEPENDS="zlib"
19 BUILD_DEPENDS="gawk zlib-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 [ -s "$SRC/$PATCH" ] || wget -O "$SRC/$PATCH" $PATCH_URL
25 gzip -cd $SRC/$PATCH | patch -p0
27 ./configure \
28 --disable-static \
29 $CONFIGURE_ARGS &&
30 make && make install
32 # Misc png tools
33 cd contrib/pngminus
34 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
35 cp -a png2pnm pnm2png $DESTDIR/usr/bin
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cook_copy_files png2pnm pnm2png pngfix png-fix-itxt *.so*
42 }