wok-next annotate libpng16/receipt @ rev 20883
Check Repology info from h* to l* packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jul 11 02:06:34 2018 +0300 (2018-07-11) |
parents | 2c6b8593f387 |
children | e7a485521d6a |
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@20883 | 11 REPOLOGY="libpng" |
al@19735 | 12 |
al@19735 | 13 TARBALL="libpng-$VERSION.tar.xz" |
al@19735 | 14 WGET_URL="$SF_MIRROR/libpng/$TARBALL" |
al@19735 | 15 |
al@20443 | 16 BUILD_DEPENDS="zlib-dev" |
al@19735 | 17 SPLIT="libpng16-dev" |
al@19735 | 18 |
al@20443 | 19 compile_rules() { |
al@20722 | 20 # don't use --disable-static: optipng-static require such lib |
al@20722 | 21 |
al@19776 | 22 LIBS=-lpthread \ |
al@20645 | 23 ./configure \ |
al@20645 | 24 $CONFIGURE_ARGS && |
al@20595 | 25 fix libtool && |
al@20595 | 26 make && |
al@20595 | 27 make install || return 1 |
al@19776 | 28 |
al@20513 | 29 cook_pick_docs README libpng-manual.txt |
al@19735 | 30 |
al@19735 | 31 # Misc png tools |
al@19735 | 32 cd contrib/pngminus |
al@19735 | 33 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png |
al@19735 | 34 cp -a png2pnm pnm2png $DESTDIR/usr/bin |
al@19735 | 35 } |
al@19735 | 36 |
al@20443 | 37 genpkg_rules() { |
al@19735 | 38 case $PACKAGE in |
al@19735 | 39 libpng16) |
al@19735 | 40 copy @std |
al@19735 | 41 DEPENDS="zlib" |
al@19735 | 42 ;; |
al@19735 | 43 libpng16-dev) |
al@19735 | 44 copy @dev |
al@20645 | 45 DEPENDS="libpng16 zlib-dev" |
al@19735 | 46 ;; |
al@19735 | 47 esac |
al@19735 | 48 } |