wok annotate libpng/receipt @ rev 15603

Use install instead of _pkg
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 06 10:39:07 2013 +0000 (2013-12-06)
parents d0d55b9a5cff
children c2504719b20a
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"
pascal@15375 8 LICENSE="zlib/libpng"
pankso@23 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
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"
slaxemulator@11816 14 BUILD_DEPENDS="pkg-config 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 }