wok-6.x view libpng/receipt @ rev 17442
qemu/cloop: fix V0-V2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 10 21:59:12 2014 +0100 (2014-12-10) |
parents | c2504719b20a |
children | 136e6be5a91e |
line source
1 # SliTaz package receipt.
3 PACKAGE="libpng"
4 VERSION="1.2.51"
5 CATEGORY="x-window"
6 SHORT_DESC="PNG images library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="zlib/libpng"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://libpng.org/pub/png/libpng.html"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="zlib"
15 BUILD_DEPENDS="pkg-config gawk zlib-dev"
17 # Handle cross compilation.
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="" ;;
20 esac
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 ./configure \
27 --enable-shared \
28 --prefix=/usr \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
34 cd contrib/pngminus
35 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
36 mkdir -p $DESTDIR/usr/bin
37 cp -a png2pnm pnm2png $DESTDIR/usr/bin
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
44 cp -a $install/usr/lib/libpng*.so* $fs/usr/lib
45 cp -a $install/usr/bin $fs/usr
46 }