wok-current annotate libpng/receipt @ rev 11544
swat: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 25 14:23:11 2011 +0100 (2011-12-25) |
parents | 8a245ae85a2d |
children | 8f3746fffb81 |
rev | line source |
---|---|
pankso@23 | 1 # SliTaz package receipt. |
pankso@23 | 2 |
pankso@23 | 3 PACKAGE="libpng" |
slaxemulator@11346 | 4 VERSION="1.2.46" |
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" |
pascal@2476 | 12 DEPENDS="zlib" |
pankso@23 | 13 |
pankso@23 | 14 # Rules to configure and make the package. |
pankso@23 | 15 compile_rules() |
pankso@23 | 16 { |
devl547@11336 | 17 cd $src |
devl547@11336 | 18 ./configure \ |
devl547@11336 | 19 --enable-shared \ |
devl547@11336 | 20 --prefix=/usr \ |
devl547@11336 | 21 --mandir=/usr/share/man \ |
devl547@11336 | 22 $CONFIGURE_ARGS && |
devl547@11336 | 23 make && |
devl547@11336 | 24 make DESTDIR=$DESTDIR install |
devl547@11336 | 25 |
devl547@11336 | 26 cd contrib/pngminus |
devl547@11336 | 27 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png |
devl547@11336 | 28 mkdir -p $DESTDIR/usr/bin |
devl547@11336 | 29 cp -a png2pnm pnm2png $DESTDIR/usr/bin |
pankso@23 | 30 } |
pankso@23 | 31 |
pankso@23 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@23 | 33 genpkg_rules() |
pankso@23 | 34 { |
pankso@908 | 35 mkdir -p $fs/usr/lib |
devl547@11336 | 36 cp -a $_pkg/usr/lib/libpng*.so* $fs/usr/lib |
devl547@11336 | 37 cp -a $_pkg/usr/bin $fs/usr |
pankso@23 | 38 } |