wok-next view libpng16/receipt @ rev 19776

Up libpng16 for -lpthread (to fix message in gdk-pixbuf's gdk-pixbuf-query-loaders), pygobject, perl-gtk2, perl-gtk2-trayicon, imagemagick, imagemagick6.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jun 16 03:38:59 2017 +0300 (2017-06-16)
parents e3681453b45c
children 028634d82da8
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"
12 TARBALL="libpng-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/libpng/$TARBALL"
15 BUILD_DEPENDS="gawk zlib-dev"
16 SPLIT="libpng16-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 LIBS=-lpthread \
22 ./configure \
23 --disable-static \
24 $CONFIGURE_ARGS &&
25 make && make install &&
27 docdir=$install/usr/share/doc/libpng-$VERSION &&
28 mkdir -p $docdir &&
29 cp -v README libpng-manual.txt $docdir
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 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 case $PACKAGE in
41 libpng16)
42 copy @std
43 DEPENDS="zlib"
44 PROVIDE="libpng"
45 ;;
46 libpng16-dev)
47 copy @dev
48 DEPENDS="zlib-dev pkg-config"
49 PROVIDE="libpng-dev"
50 ;;
51 esac
52 }