wok-next view libpng16/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | 5841522533ec |
children | 2c6b8593f387 |
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 LIBS=-lpthread \
20 ./configure \
21 --disable-static \
22 $CONFIGURE_ARGS &&
23 fix libtool &&
24 make &&
25 make install || return 1
27 cook_pick_docs README libpng-manual.txt
29 # Misc png tools
30 cd contrib/pngminus
31 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
32 cp -a png2pnm pnm2png $DESTDIR/usr/bin
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 libpng16)
38 copy @std
39 DEPENDS="zlib"
40 ;;
41 libpng16-dev)
42 copy @dev
43 DEPENDS="libpng16 zlib-dev"
44 ;;
45 esac
46 }