wok-6.x annotate libpng/receipt @ rev 15090

pinentry: add bdeps...
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 13 21:20:52 2013 +0000 (2013-08-13)
parents 8f3746fffb81
children 51a1ebbda768
rev   line source
pankso@23 1 # SliTaz package receipt.
pankso@23 2
pankso@23 3 PACKAGE="libpng"
slaxemulator@11816 4 VERSION="1.2.47"
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"
pankso@23 9 WEB_SITE="http://libpng.org/pub/png/libpng.html"
devl547@11336 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@11812 11
pascal@2476 12 DEPENDS="zlib"
slaxemulator@11816 13 BUILD_DEPENDS="pkg-config gawk zlib-dev"
pankso@23 14
pankso@23 15 # Rules to configure and make the package.
pankso@23 16 compile_rules()
pankso@23 17 {
devl547@11336 18 cd $src
devl547@11336 19 ./configure \
devl547@11336 20 --enable-shared \
devl547@11336 21 --prefix=/usr \
devl547@11336 22 --mandir=/usr/share/man \
devl547@11336 23 $CONFIGURE_ARGS &&
devl547@11336 24 make &&
devl547@11336 25 make DESTDIR=$DESTDIR install
devl547@11336 26
devl547@11336 27 cd contrib/pngminus
devl547@11336 28 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
devl547@11336 29 mkdir -p $DESTDIR/usr/bin
devl547@11336 30 cp -a png2pnm pnm2png $DESTDIR/usr/bin
pankso@23 31 }
pankso@23 32
pankso@23 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@23 34 genpkg_rules()
pankso@23 35 {
pankso@908 36 mkdir -p $fs/usr/lib
pankso@11812 37 cp -a $install/usr/lib/libpng*.so* $fs/usr/lib
pankso@11812 38 cp -a $install/usr/bin $fs/usr
pankso@23 39 }