wok view libpng/receipt @ rev 19938

Up liboping (1.9.0)
author Paul Issott <paul@slitaz.org>
date Sun Apr 30 14:09:19 2017 +0100 (2017-04-30)
parents 136e6be5a91e
children ee53899c6189
line source
1 # SliTaz package receipt.
3 PACKAGE="libpng"
4 VERSION="1.2.56"
5 CATEGORY="x-window"
6 SHORT_DESC="PNG images library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="zlib/libpng"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
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 }