wok-next annotate libpng16/receipt @ rev 20916
libopenraw, abiword: update deps; boost: pack unpacked libs
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Aug 21 05:42:25 2018 +0300 (2018-08-21) |
parents | df20b2110f7e |
children | d5aab818505e |
rev | line source |
---|---|
al@19735 | 1 # SliTaz package receipt v2. |
al@19735 | 2 |
al@19735 | 3 PACKAGE="libpng16" |
al@20905 | 4 VERSION="1.6.35" |
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@20905 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/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 } |