wok-next annotate 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 |
rev | line source |
---|---|
al@19781 | 1 # SliTaz package receipt v2. |
al@19128 | 2 |
al@19128 | 3 PACKAGE="pngquant" |
al@19781 | 4 VERSION="2.9.1" |
al@19128 | 5 CATEGORY="graphics" |
al@19781 | 6 SHORT_DESC="Lossy compression of PNG images" |
al@19128 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@19128 | 8 LICENSE="GPL3" |
al@19128 | 9 WEB_SITE="https://pngquant.org/" |
al@20443 | 10 HOST_ARCH="i486 x86_64" |
al@19607 | 11 |
al@19128 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19607 | 13 WGET_URL="$GITHUB/pornel/pngquant/tarball/$VERSION" |
al@19128 | 14 |
al@19607 | 15 EXTRA_TARBALL="libimagequant-$VERSION" |
al@19607 | 16 EXTRA_WGET_URL="$GITHUB/ImageOptim/libimagequant/tarball/$VERSION" |
al@19607 | 17 |
al@19781 | 18 BUILD_DEPENDS="lcms2-dev libpng16-dev zlib-dev" |
al@20443 | 19 SPLIT="pngquant pngquant-static:static" |
al@19128 | 20 |
al@20443 | 21 compile_rules() { |
al@19607 | 22 if [ ! -e "$SRC/$EXTRA_TARBALL" ]; then |
al@19607 | 23 wget -O $SRC/$EXTRA_TARBALL $EXTRA_WGET_URL |
al@19607 | 24 fi |
al@19607 | 25 tar -xf $SRC/$EXTRA_TARBALL -C $src |
al@19607 | 26 mv $src/ImageOptim-*/* $src/lib/ |
al@19607 | 27 |
al@20443 | 28 case $SET in |
al@20443 | 29 static) |
al@20443 | 30 ./configure \ |
al@20443 | 31 --prefix=/usr \ |
al@20443 | 32 LDFLAGS='-static -pthread' \ |
al@20443 | 33 --with-openmp=static |
al@20443 | 34 ;; |
al@20443 | 35 *) |
al@20443 | 36 ./configure \ |
al@20443 | 37 --prefix=/usr |
al@20443 | 38 ;; |
al@20443 | 39 esac && |
al@19781 | 40 |
al@19128 | 41 make && make install |
al@19128 | 42 } |
al@19128 | 43 |
al@20443 | 44 genpkg_rules() { |
al@19781 | 45 case $PACKAGE in |
al@19781 | 46 pngquant) |
al@20443 | 47 copy pngquant |
al@19781 | 48 DEPENDS="lcms2 libpng16 zlib" |
al@19781 | 49 ;; |
al@19781 | 50 pngquant-static) |
al@20443 | 51 copy pngquant |
al@19784 | 52 CAT="graphics|static binary" |
al@19781 | 53 PROVIDE="pngquant" |
al@19781 | 54 DEPENDS=" " |
al@19781 | 55 ;; |
al@19781 | 56 esac |
al@19128 | 57 } |