wok-next view libpng16/receipt @ rev 20875
Fix bastet, cherokee
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jul 06 12:59:08 2018 +0300 (2018-07-06) |
parents | 7729bf733291 |
children | df20b2110f7e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libpng16"
4 VERSION="1.6.34"
5 CATEGORY="libs"
6 SHORT_DESC="PNG images library 1.6 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 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libpng.html"
12 TARBALL="libpng-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/libpng/$TARBALL"
15 BUILD_DEPENDS="zlib-dev"
16 SPLIT="libpng16-dev"
18 compile_rules() {
19 # don't use --disable-static: optipng-static require such lib
21 LIBS=-lpthread \
22 ./configure \
23 $CONFIGURE_ARGS &&
24 fix libtool &&
25 make &&
26 make install || return 1
28 cook_pick_docs README libpng-manual.txt
30 # Misc png tools
31 cd contrib/pngminus
32 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
33 cp -a png2pnm pnm2png $DESTDIR/usr/bin
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 libpng16)
39 copy @std
40 DEPENDS="zlib"
41 ;;
42 libpng16-dev)
43 copy @dev
44 DEPENDS="libpng16 zlib-dev"
45 ;;
46 esac
47 }