wok-4.x view libpng/receipt @ rev 12063

alarm-clock: fix bdeps & url
author Antoine Bodin <gokhlayeh@slitaz.org>
date Fri Mar 09 01:49:07 2012 +0100 (2012-03-09)
parents 8f3746fffb81
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libpng"
4 VERSION="1.2.47"
5 CATEGORY="x-window"
6 SHORT_DESC="PNG images library."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://libpng.org/pub/png/libpng.html"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 DEPENDS="zlib"
13 BUILD_DEPENDS="pkg-config gawk zlib-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --enable-shared \
21 --prefix=/usr \
22 --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$DESTDIR install
27 cd contrib/pngminus
28 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
29 mkdir -p $DESTDIR/usr/bin
30 cp -a png2pnm pnm2png $DESTDIR/usr/bin
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
37 cp -a $install/usr/lib/libpng*.so* $fs/usr/lib
38 cp -a $install/usr/bin $fs/usr
39 }