wok-next annotate libpng16/receipt @ rev 20513
A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 21 15:58:17 2018 +0200 (2018-03-21) |
parents | c4e53a39395a |
children | 5841522533ec |
rev | line source |
---|---|
al@19735 | 1 # SliTaz package receipt v2. |
al@19735 | 2 |
al@19735 | 3 PACKAGE="libpng16" |
al@19735 | 4 VERSION="1.6.28" |
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@19735 | 10 |
al@19735 | 11 TARBALL="libpng-$VERSION.tar.xz" |
al@19735 | 12 WGET_URL="$SF_MIRROR/libpng/$TARBALL" |
al@19735 | 13 |
al@20443 | 14 #BUILD_DEPENDS="gawk zlib-dev" |
al@20443 | 15 BUILD_DEPENDS="zlib-dev" |
al@19735 | 16 SPLIT="libpng16-dev" |
al@19735 | 17 |
al@20443 | 18 compile_rules() { |
al@19776 | 19 LIBS=-lpthread \ |
al@20513 | 20 ./configure $CONFIGURE_ARGS && make && make install || return 1 |
al@19776 | 21 |
al@20513 | 22 cook_pick_docs README libpng-manual.txt |
al@19735 | 23 |
al@19735 | 24 # Misc png tools |
al@19735 | 25 cd contrib/pngminus |
al@19735 | 26 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png |
al@19735 | 27 cp -a png2pnm pnm2png $DESTDIR/usr/bin |
al@19735 | 28 } |
al@19735 | 29 |
al@20443 | 30 genpkg_rules() { |
al@19735 | 31 case $PACKAGE in |
al@19735 | 32 libpng16) |
al@19735 | 33 copy @std |
al@19735 | 34 DEPENDS="zlib" |
al@19735 | 35 ;; |
al@19735 | 36 libpng16-dev) |
al@19735 | 37 copy @dev |
al@20513 | 38 DEPENDS="zlib-dev" |
al@19735 | 39 ;; |
al@19735 | 40 esac |
al@19735 | 41 } |