wok-next view libpng16/receipt @ rev 20905
Update packages from ISO and LFS backages (all but toolchain)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Aug 07 00:30:45 2018 +0300 (2018-08-07) |
parents | df20b2110f7e |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libpng16"
4 VERSION="1.6.35"
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/svn/general/libpng.html"
11 REPOLOGY="libpng"
13 TARBALL="libpng-$VERSION.tar.xz"
14 WGET_URL="$SF_MIRROR/libpng/$TARBALL"
16 BUILD_DEPENDS="zlib-dev"
17 SPLIT="libpng16-dev"
19 compile_rules() {
20 # don't use --disable-static: optipng-static require such lib
22 LIBS=-lpthread \
23 ./configure \
24 $CONFIGURE_ARGS &&
25 fix libtool &&
26 make &&
27 make install || return 1
29 cook_pick_docs README libpng-manual.txt
31 # Misc png tools
32 cd contrib/pngminus
33 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
34 cp -a png2pnm pnm2png $DESTDIR/usr/bin
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 libpng16)
40 copy @std
41 DEPENDS="zlib"
42 ;;
43 libpng16-dev)
44 copy @dev
45 DEPENDS="libpng16 zlib-dev"
46 ;;
47 esac
48 }