wok-next diff pngquant/receipt @ rev 20861
gnutls: up (3.5.18); add libpsl and publicsuffix-list; sed: up (4.5); tar: up (1.30); tcpdump: up (4.9.2); wget: up (1.19.5); xz: up (5.2.4)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jun 28 00:30:02 2018 +0300 (2018-06-28) |
parents | f5bfda4cdfe9 |
children | d5aab818505e |
line diff
1.1 --- a/pngquant/receipt Mon Jun 19 04:02:32 2017 +0300 1.2 +++ b/pngquant/receipt Thu Jun 28 00:30:02 2018 +0300 1.3 @@ -7,6 +7,7 @@ 1.4 MAINTAINER="al.bobylev@gmail.com" 1.5 LICENSE="GPL3" 1.6 WEB_SITE="https://pngquant.org/" 1.7 +HOST_ARCH="i486 x86_64" 1.8 1.9 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.10 WGET_URL="$GITHUB/pornel/pngquant/tarball/$VERSION" 1.11 @@ -15,40 +16,39 @@ 1.12 EXTRA_WGET_URL="$GITHUB/ImageOptim/libimagequant/tarball/$VERSION" 1.13 1.14 BUILD_DEPENDS="lcms2-dev libpng16-dev zlib-dev" 1.15 -SPLIT="pngquant-static" 1.16 +SPLIT="pngquant pngquant-static:static" 1.17 1.18 -# Rules to configure and make the package. 1.19 -compile_rules() 1.20 -{ 1.21 +compile_rules() { 1.22 if [ ! -e "$SRC/$EXTRA_TARBALL" ]; then 1.23 wget -O $SRC/$EXTRA_TARBALL $EXTRA_WGET_URL 1.24 fi 1.25 tar -xf $SRC/$EXTRA_TARBALL -C $src 1.26 mv $src/ImageOptim-*/* $src/lib/ 1.27 1.28 - # make statically linked binary 1.29 - ./configure \ 1.30 - LDFLAGS='-static -pthread' \ 1.31 - --prefix=/usr \ 1.32 - --with-openmp=static && 1.33 - make && make BINPREFIX=$install/usr/sbin install && 1.34 + case $SET in 1.35 + static) 1.36 + ./configure \ 1.37 + --prefix=/usr \ 1.38 + LDFLAGS='-static -pthread' \ 1.39 + --with-openmp=static 1.40 + ;; 1.41 + *) 1.42 + ./configure \ 1.43 + --prefix=/usr 1.44 + ;; 1.45 + esac && 1.46 1.47 - # make dynamically linked binary 1.48 - ./configure \ 1.49 - --prefix=/usr && 1.50 make && make install 1.51 } 1.52 1.53 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.54 -genpkg_rules() 1.55 -{ 1.56 +genpkg_rules() { 1.57 case $PACKAGE in 1.58 pngquant) 1.59 - copy bin/pngquant 1.60 + copy pngquant 1.61 DEPENDS="lcms2 libpng16 zlib" 1.62 ;; 1.63 pngquant-static) 1.64 - copy sbin/pngquant 1.65 + copy pngquant 1.66 CAT="graphics|static binary" 1.67 PROVIDE="pngquant" 1.68 DEPENDS=" "