wok-4.x view libpng/receipt @ rev 11336
Up: libpng (1.4.8)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Fri Nov 25 09:54:50 2011 +0000 (2011-11-25) |
parents | 1d0b57b25fe0 |
children | 8a245ae85a2d |
line source
1 # SliTaz package receipt.
3 PACKAGE="libpng"
4 VERSION="1.4.8"
5 CATEGORY="x-window"
6 SHORT_DESC="PNG images library."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 BUILD_DEPENDS="pkg-config"
10 WEB_SITE="http://libpng.org/pub/png/libpng.html"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 DEPENDS="zlib"
14 PATCH="$SF_MIRROR/libpng-apng/$PACKAGE-$VERSION-apng.patch.gz"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 wget $PATCH
21 # Add animated PNG (apng) support
22 # see http://sourceforge.net/projects/libpng-apng/
23 zcat $(basename $PATCH) | patch -p1
24 ./configure \
25 --enable-shared \
26 --prefix=/usr \
27 --mandir=/usr/share/man \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR install
32 cd contrib/pngminus
33 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
34 mkdir -p $DESTDIR/usr/bin
35 cp -a png2pnm pnm2png $DESTDIR/usr/bin
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib
42 cp -a $_pkg/usr/lib/libpng*.so* $fs/usr/lib
43 cp -a $_pkg/usr/bin $fs/usr
44 }