wok-next view libpng16/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents e7a485521d6a
children
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="$PACKAGE-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$install/usr/lib -lpng" -f makefile.std png2pnm pnm2png
34 cp -a png2pnm pnm2png $install/usr/bin
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 libpng16)
40 copy @std
41 DEPENDS="zlib"
42 ;;
43 *-dev)
44 copy @dev
45 DEPENDS="libpng16 zlib-dev"
46 ;;
47 esac
48 }