wok-next rev 21132

zlib: separate zlib-static from zlib-dev and use it where it required: in optipng (up 0.7.7) and pngquant
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jan 20 14:42:46 2019 +0200 (2019-01-20)
parents 0872dcbd1d74
children eefc4c716fd9
files optipng/receipt pngquant/receipt zlib/receipt
line diff
     1.1 --- a/optipng/receipt	Sat Jan 19 14:59:09 2019 +0200
     1.2 +++ b/optipng/receipt	Sun Jan 20 14:42:46 2019 +0200
     1.3 @@ -1,20 +1,30 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="optipng"
     1.7 -VERSION="0.7.6"
     1.8 +VERSION="0.7.7"
     1.9  CATEGORY="utilities"
    1.10  SHORT_DESC="Compress and optimize PNG images"
    1.11  MAINTAINER="devel@slitaz.org"
    1.12  LICENSE="zlib/libpng"
    1.13  WEB_SITE="http://optipng.sourceforge.net/"
    1.14 -TAGS="image compression"
    1.15  
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.18 +TARBALL_SHA1="68aa89fbde642b104aeefa9efbc4dfbb936fa630"
    1.19  
    1.20 -BUILD_DEPENDS="libpng-dev zlib-dev"
    1.21 +BUILD_DEPENDS="libpng-dev zlib-dev zlib-static"
    1.22  SPLIT="$PACKAGE-static:static"
    1.23  
    1.24 +COPY_static="@std"
    1.25 +
    1.26 +CAT_static="graphics|static binary"
    1.27 +PROVIDE_static="optipng"
    1.28 +
    1.29 +DEPENDS_std="libpng zlib"
    1.30 +DEPENDS_static=" "
    1.31 +
    1.32 +TAGS="image compression"
    1.33 +
    1.34  compile_rules() {
    1.35  	sed -i 's|prefix)/man|prefix)/share/man|' configure
    1.36  
    1.37 @@ -35,18 +45,3 @@
    1.38  	make &&
    1.39  	make install
    1.40  }
    1.41 -
    1.42 -genpkg_rules() {
    1.43 -	case $PACKAGE in
    1.44 -		optipng)
    1.45 -			copy @std
    1.46 -			DEPENDS="libpng zlib"
    1.47 -			;;
    1.48 -		optipng-static)
    1.49 -			copy @std
    1.50 -			CAT="graphics|static binary"
    1.51 -			PROVIDE="optipng"
    1.52 -			DEPENDS=" "
    1.53 -			;;
    1.54 -	esac
    1.55 -}
     2.1 --- a/pngquant/receipt	Sat Jan 19 14:59:09 2019 +0200
     2.2 +++ b/pngquant/receipt	Sun Jan 20 14:42:46 2019 +0200
     2.3 @@ -12,11 +12,12 @@
     2.4  # getting 2 tarballs and putting one to another...
     2.5  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     2.6  WGET_URL="git|https://github.com/kornelski/pngquant.git"
     2.7 +TARBALL_SHA1="7963d940c5d5ca62cd033ed897e4cc4b1f00f2ee"
     2.8  
     2.9 -BUILD_DEPENDS="git lcms2-dev libpng-dev zlib-dev"
    2.10 +BUILD_DEPENDS="git lcms2-dev libpng-dev zlib-dev zlib-static"
    2.11  SPLIT="$PACKAGE-static:static"
    2.12  
    2.13 -DEPENDS_std="lcms2 libpng zlib"
    2.14 +DEPENDS_std="lcms2 libpng"
    2.15  DEPENDS_static=" "
    2.16  
    2.17  COPY_static="@std"
     3.1 --- a/zlib/receipt	Sat Jan 19 14:59:09 2019 +0200
     3.2 +++ b/zlib/receipt	Sun Jan 20 14:42:46 2019 +0200
     3.3 @@ -15,9 +15,14 @@
     3.4  
     3.5  SPLIT="$PACKAGE-static $PACKAGE-dev"
     3.6  
     3.7 +COPY_std="*.so.*"
     3.8  COPY_static="*.a"
     3.9 +COPY_dev="@dev @rm *.so"
    3.10 +
    3.11  CAT_static="development|static library"
    3.12  
    3.13 +DEPENDS_dev="$PACKAGE" # skip zlib-static
    3.14 +
    3.15  TAGS_std="LFS"
    3.16  
    3.17  compile_rules() {