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

updated libcroco and libcroco-dev (0.6.4 -> 0.6.12)
author Hans-G?nter Theisgen
date Sun Mar 31 16:21:20 2019 +0100 (2019-03-31)
parents 136e6be5a91e
children ee53899c6189
rev   line source
pankso@23 1 # SliTaz package receipt.
pankso@23 2
pankso@23 3 PACKAGE="libpng"
psychomaniak@19438 4 VERSION="1.2.56"
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"
psychomaniak@19439 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@23 10 WEB_SITE="http://libpng.org/pub/png/libpng.html"
devl547@11336 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@15945 12 HOST_ARCH="i486 arm"
pankso@11812 13
pascal@2476 14 DEPENDS="zlib"
slaxemulator@11816 15 BUILD_DEPENDS="pkg-config gawk zlib-dev"
pankso@23 16
pankso@15945 17 # Handle cross compilation.
pankso@15945 18 case "$ARCH" in
pankso@15945 19 arm) BUILD_DEPENDS="" ;;
pankso@15945 20 esac
pankso@15945 21
pankso@23 22 # Rules to configure and make the package.
pankso@23 23 compile_rules()
pankso@23 24 {
devl547@11336 25 cd $src
devl547@11336 26 ./configure \
devl547@11336 27 --enable-shared \
devl547@11336 28 --prefix=/usr \
devl547@11336 29 --mandir=/usr/share/man \
devl547@11336 30 $CONFIGURE_ARGS &&
devl547@11336 31 make &&
devl547@11336 32 make DESTDIR=$DESTDIR install
devl547@11336 33
devl547@11336 34 cd contrib/pngminus
devl547@11336 35 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
devl547@11336 36 mkdir -p $DESTDIR/usr/bin
devl547@11336 37 cp -a png2pnm pnm2png $DESTDIR/usr/bin
pankso@23 38 }
pankso@23 39
pankso@23 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@23 41 genpkg_rules()
pankso@23 42 {
pankso@908 43 mkdir -p $fs/usr/lib
pankso@11812 44 cp -a $install/usr/lib/libpng*.so* $fs/usr/lib
pankso@11812 45 cp -a $install/usr/bin $fs/usr
pankso@23 46 }