wok-next annotate libpng16/receipt @ rev 20454
Choose between libpng16 and libpng12
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 17:32:31 2018 +0200 (2018-02-28) |
parents | 0e7893ac206d |
children | c4e53a39395a |
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@20443 | 10 HOST_ARCH="i486 arm x86_64" |
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="gawk zlib-dev" |
al@20443 | 16 BUILD_DEPENDS="zlib-dev" |
al@19735 | 17 SPLIT="libpng16-dev" |
al@19735 | 18 |
al@20443 | 19 compile_rules() { |
al@19776 | 20 LIBS=-lpthread \ |
al@19781 | 21 ./configure $CONFIGURE_ARGS && make && make install && |
al@19776 | 22 |
al@19776 | 23 docdir=$install/usr/share/doc/libpng-$VERSION && |
al@19776 | 24 mkdir -p $docdir && |
al@19776 | 25 cp -v README libpng-manual.txt $docdir |
al@19735 | 26 |
al@19735 | 27 # Misc png tools |
al@19735 | 28 cd contrib/pngminus |
al@19735 | 29 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png |
al@19735 | 30 cp -a png2pnm pnm2png $DESTDIR/usr/bin |
al@19735 | 31 } |
al@19735 | 32 |
al@20443 | 33 genpkg_rules() { |
al@19735 | 34 case $PACKAGE in |
al@19735 | 35 libpng16) |
al@19735 | 36 copy @std |
al@19735 | 37 DEPENDS="zlib" |
al@19735 | 38 ;; |
al@19735 | 39 libpng16-dev) |
al@19735 | 40 copy @dev |
pascal@19746 | 41 DEPENDS="zlib-dev pkg-config" |
al@19735 | 42 ;; |
al@19735 | 43 esac |
al@19735 | 44 } |