wok-next view libpng16/receipt @ rev 20244
Update bdeps: apache-mod-perl, codeblocks, tacacs+, thunar-archive-plugin, tuxpaint, xpenguins
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Nov 07 10:54:15 2017 +0200 (2017-11-07) |
parents | 52c764d3ee0f |
children | 0e7893ac206d |
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 $CONFIGURE_ARGS && make && make install &&
24 docdir=$install/usr/share/doc/libpng-$VERSION &&
25 mkdir -p $docdir &&
26 cp -v README libpng-manual.txt $docdir
28 # Misc png tools
29 cd contrib/pngminus
30 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
31 cp -a png2pnm pnm2png $DESTDIR/usr/bin
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 case $PACKAGE in
38 libpng16)
39 copy @std
40 DEPENDS="zlib"
41 PROVIDE="libpng"
42 ;;
43 libpng16-dev)
44 copy @dev
45 DEPENDS="zlib-dev pkg-config"
46 PROVIDE="libpng-dev"
47 ;;
48 esac
49 }