wok-next view libpng16/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents 0e7893ac206d
children c4e53a39395a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libpng16"
4 VERSION="1.6.28"
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 HOST_ARCH="i486 arm x86_64"
12 TARBALL="libpng-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/libpng/$TARBALL"
15 #BUILD_DEPENDS="gawk zlib-dev"
16 BUILD_DEPENDS="zlib-dev"
17 SPLIT="libpng16-dev"
19 compile_rules() {
20 LIBS=-lpthread \
21 ./configure $CONFIGURE_ARGS && make && make install &&
23 docdir=$install/usr/share/doc/libpng-$VERSION &&
24 mkdir -p $docdir &&
25 cp -v README libpng-manual.txt $docdir
27 # Misc png tools
28 cd contrib/pngminus
29 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
30 cp -a png2pnm pnm2png $DESTDIR/usr/bin
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 libpng16)
36 copy @std
37 DEPENDS="zlib"
38 ;;
39 libpng16-dev)
40 copy @dev
41 DEPENDS="zlib-dev pkg-config"
42 ;;
43 esac
44 }