wok-next view libpng16/receipt @ rev 20458

Unlock x86_64 architecture
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 12:12:14 2018 +0200 (2018-03-02)
parents dd145c435e4b
children d43bf7aae921
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"
11 TARBALL="libpng-$VERSION.tar.xz"
12 WGET_URL="$SF_MIRROR/libpng/$TARBALL"
14 #BUILD_DEPENDS="gawk zlib-dev"
15 BUILD_DEPENDS="zlib-dev"
16 SPLIT="libpng16-dev"
18 compile_rules() {
19 LIBS=-lpthread \
20 ./configure $CONFIGURE_ARGS && make && make install &&
22 docdir=$install/usr/share/doc/libpng-$VERSION &&
23 mkdir -p $docdir &&
24 cp -v README libpng-manual.txt $docdir
26 # Misc png tools
27 cd contrib/pngminus
28 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
29 cp -a png2pnm pnm2png $DESTDIR/usr/bin
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 libpng16)
35 copy @std
36 DEPENDS="zlib"
37 ;;
38 libpng16-dev)
39 copy @dev
40 DEPENDS="zlib-dev pkg-config"
41 ;;
42 esac
43 }