wok-current view libpng/receipt @ rev 13150
get-flash-plugin: be busybox/sed compatible
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 11 11:13:01 2012 +0200 (2012-07-11) |
parents | 8f3746fffb81 |
children | 51a1ebbda768 |
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 }