wok-current annotate libpng/receipt @ rev 11812

Up: libpng (1.5.9) - Security fix
author Christophe Lincoln <pankso@slitaz.org>
date Sat Feb 25 17:30:58 2012 +0100 (2012-02-25)
parents 810a579f14cf
children d0d55b9a5cff
rev   line source
pankso@23 1 # SliTaz package receipt.
pankso@23 2
pankso@23 3 PACKAGE="libpng"
pankso@11812 4 VERSION="1.5.9"
pankso@23 5 CATEGORY="x-window"
pankso@23 6 SHORT_DESC="PNG images library."
pankso@23 7 MAINTAINER="pankso@slitaz.org"
pankso@23 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@1443 9 BUILD_DEPENDS="pkg-config"
pankso@23 10 WEB_SITE="http://libpng.org/pub/png/libpng.html"
devl547@11336 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@11812 12
pascal@2476 13 DEPENDS="zlib"
pankso@11812 14 BUILD_DEPENDS="gawk zlib-dev"
pankso@23 15
pankso@23 16 # Rules to configure and make the package.
pankso@23 17 compile_rules()
pankso@23 18 {
devl547@11336 19 cd $src
devl547@11336 20 ./configure \
devl547@11336 21 --enable-shared \
devl547@11336 22 --prefix=/usr \
devl547@11336 23 --mandir=/usr/share/man \
devl547@11336 24 $CONFIGURE_ARGS &&
devl547@11336 25 make &&
devl547@11336 26 make DESTDIR=$DESTDIR install
devl547@11336 27
devl547@11336 28 cd contrib/pngminus
devl547@11336 29 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
devl547@11336 30 mkdir -p $DESTDIR/usr/bin
devl547@11336 31 cp -a png2pnm pnm2png $DESTDIR/usr/bin
pankso@23 32 }
pankso@23 33
pankso@23 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@23 35 genpkg_rules()
pankso@23 36 {
pankso@908 37 mkdir -p $fs/usr/lib
pankso@11812 38 cp -a $install/usr/lib/libpng*.so* $fs/usr/lib
pankso@11812 39 cp -a $install/usr/bin $fs/usr
pankso@23 40 }