wok-next annotate libpng16/receipt @ rev 19776
Up libpng16 for -lpthread (to fix message in gdk-pixbuf's gdk-pixbuf-query-loaders), pygobject, perl-gtk2, perl-gtk2-trayicon, imagemagick, imagemagick6.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jun 16 03:38:59 2017 +0300 (2017-06-16) |
parents | e3681453b45c |
children | 028634d82da8 |
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 HOST_ARCH="i486 arm" |
al@19735 | 11 |
al@19735 | 12 TARBALL="libpng-$VERSION.tar.xz" |
al@19735 | 13 WGET_URL="$SF_MIRROR/libpng/$TARBALL" |
al@19735 | 14 |
al@19735 | 15 BUILD_DEPENDS="gawk zlib-dev" |
al@19735 | 16 SPLIT="libpng16-dev" |
al@19735 | 17 |
al@19735 | 18 # Rules to configure and make the package. |
al@19735 | 19 compile_rules() |
al@19735 | 20 { |
al@19776 | 21 LIBS=-lpthread \ |
al@19735 | 22 ./configure \ |
al@19735 | 23 --disable-static \ |
al@19735 | 24 $CONFIGURE_ARGS && |
al@19776 | 25 make && make install && |
al@19776 | 26 |
al@19776 | 27 docdir=$install/usr/share/doc/libpng-$VERSION && |
al@19776 | 28 mkdir -p $docdir && |
al@19776 | 29 cp -v README libpng-manual.txt $docdir |
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@19735 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19735 | 38 genpkg_rules() |
al@19735 | 39 { |
al@19735 | 40 case $PACKAGE in |
al@19735 | 41 libpng16) |
al@19735 | 42 copy @std |
al@19735 | 43 DEPENDS="zlib" |
al@19735 | 44 PROVIDE="libpng" |
al@19735 | 45 ;; |
al@19735 | 46 libpng16-dev) |
al@19735 | 47 copy @dev |
pascal@19746 | 48 DEPENDS="zlib-dev pkg-config" |
al@19735 | 49 PROVIDE="libpng-dev" |
al@19735 | 50 ;; |
al@19735 | 51 esac |
al@19735 | 52 } |