wok-next annotate libpng16/receipt @ rev 20791

Up gnome-games, and add/update all the required dependencies
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jun 10 01:56:40 2018 +0300 (2018-06-10)
parents 7729bf733291
children df20b2110f7e
rev   line source
al@19735 1 # SliTaz package receipt v2.
al@19735 2
al@19735 3 PACKAGE="libpng16"
al@20645 4 VERSION="1.6.34"
al@19735 5 CATEGORY="libs"
al@19735 6 SHORT_DESC="PNG images library 1.6 series with APNG support"
al@19735 7 MAINTAINER="al.bobylev@gmail.com"
al@19735 8 LICENSE="zlib/libpng"
al@19735 9 WEB_SITE="http://www.libpng.org/pub/png/libpng.html"
al@20645 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libpng.html"
al@19735 11
al@19735 12 TARBALL="libpng-$VERSION.tar.xz"
al@19735 13 WGET_URL="$SF_MIRROR/libpng/$TARBALL"
al@19735 14
al@20443 15 BUILD_DEPENDS="zlib-dev"
al@19735 16 SPLIT="libpng16-dev"
al@19735 17
al@20443 18 compile_rules() {
al@20722 19 # don't use --disable-static: optipng-static require such lib
al@20722 20
al@19776 21 LIBS=-lpthread \
al@20645 22 ./configure \
al@20645 23 $CONFIGURE_ARGS &&
al@20595 24 fix libtool &&
al@20595 25 make &&
al@20595 26 make install || return 1
al@19776 27
al@20513 28 cook_pick_docs README libpng-manual.txt
al@19735 29
al@19735 30 # Misc png tools
al@19735 31 cd contrib/pngminus
al@19735 32 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
al@19735 33 cp -a png2pnm pnm2png $DESTDIR/usr/bin
al@19735 34 }
al@19735 35
al@20443 36 genpkg_rules() {
al@19735 37 case $PACKAGE in
al@19735 38 libpng16)
al@19735 39 copy @std
al@19735 40 DEPENDS="zlib"
al@19735 41 ;;
al@19735 42 libpng16-dev)
al@19735 43 copy @dev
al@20645 44 DEPENDS="libpng16 zlib-dev"
al@19735 45 ;;
al@19735 46 esac
al@19735 47 }