wok-next view libpng12/receipt @ rev 19925
libftdi: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 14 23:27:36 2017 +0200 (2017-10-14) |
parents | 4550df96633d |
children | c4e53a39395a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libpng12"
4 VERSION="1.2.57"
5 CATEGORY="libs"
6 SHORT_DESC="PNG images library 1.2 series 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="libpng-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/libpng/$TARBALL"
15 PATCH="libpng-$VERSION-apng.patch.gz"
16 PATCH_URL="$SF_MIRROR/apng/$PATCH"
18 BUILD_DEPENDS="gawk zlib-dev"
19 SPLIT="libpng12-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
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 case $PACKAGE in
37 libpng12)
38 copy @std
39 DEPENDS="zlib"
40 ;;
41 libpng12-dev)
42 DEPENDS="zlib-dev pkg-config"
43 copy @dev
44 ;;
45 esac
46 }