wok-next annotate libpng16/receipt @ rev 20443
The rest of my "home work" for update many packages (up to Xorg, GTK and Openbox) for Next and mainly for Next64. Since this point this repository is open for commits. Many errors are expected due to harfbuzz-freetype dependency loop...
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Feb 24 16:17:33 2018 +0200 (2018-02-24) |
parents | 028634d82da8 |
children | dd145c435e4b |
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 PROVIDE="libpng" |
al@19735 | 39 ;; |
al@19735 | 40 libpng16-dev) |
al@19735 | 41 copy @dev |
pascal@19746 | 42 DEPENDS="zlib-dev pkg-config" |
al@19735 | 43 PROVIDE="libpng-dev" |
al@19735 | 44 ;; |
al@19735 | 45 esac |
al@19735 | 46 } |