wok-next annotate pngquant/receipt @ rev 20095
Update/add packages needed for building MATE desktop:
Add: gnome-keyring3, gtkmm3, libappindicator-gtk[23], libfakekey, libgnome-keyring3, libindicator-gtk[23], libpeas.
Update: atkmm, cairomm, gcr, glibmm, gssdp, gupnp, icon-naming-utils, libcap-ng, libspectre, libwnck3, libxklavier, pangomm, perl-xml-sax.
Add: gnome-keyring3, gtkmm3, libappindicator-gtk[23], libfakekey, libgnome-keyring3, libindicator-gtk[23], libpeas.
Update: atkmm, cairomm, gcr, glibmm, gssdp, gupnp, icon-naming-utils, libcap-ng, libspectre, libwnck3, libxklavier, pangomm, perl-xml-sax.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Oct 28 16:45:22 2017 +0300 (2017-10-28) |
parents | 028634d82da8 |
children | 0e7893ac206d |
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@19607 | 10 |
al@19128 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19607 | 12 WGET_URL="$GITHUB/pornel/pngquant/tarball/$VERSION" |
al@19128 | 13 |
al@19607 | 14 EXTRA_TARBALL="libimagequant-$VERSION" |
al@19607 | 15 EXTRA_WGET_URL="$GITHUB/ImageOptim/libimagequant/tarball/$VERSION" |
al@19607 | 16 |
al@19781 | 17 BUILD_DEPENDS="lcms2-dev libpng16-dev zlib-dev" |
al@19781 | 18 SPLIT="pngquant-static" |
al@19128 | 19 |
al@19128 | 20 # Rules to configure and make the package. |
al@19128 | 21 compile_rules() |
al@19128 | 22 { |
al@19607 | 23 if [ ! -e "$SRC/$EXTRA_TARBALL" ]; then |
al@19607 | 24 wget -O $SRC/$EXTRA_TARBALL $EXTRA_WGET_URL |
al@19607 | 25 fi |
al@19607 | 26 tar -xf $SRC/$EXTRA_TARBALL -C $src |
al@19607 | 27 mv $src/ImageOptim-*/* $src/lib/ |
al@19607 | 28 |
al@19781 | 29 # make statically linked binary |
al@19781 | 30 ./configure \ |
al@19784 | 31 LDFLAGS='-static -pthread' \ |
al@19784 | 32 --prefix=/usr \ |
al@19784 | 33 --with-openmp=static && |
al@19784 | 34 make && make BINPREFIX=$install/usr/sbin install && |
al@19781 | 35 |
al@19781 | 36 # make dynamically linked binary |
al@19128 | 37 ./configure \ |
al@19607 | 38 --prefix=/usr && |
al@19128 | 39 make && make install |
al@19128 | 40 } |
al@19128 | 41 |
al@19128 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19128 | 43 genpkg_rules() |
al@19128 | 44 { |
al@19781 | 45 case $PACKAGE in |
al@19781 | 46 pngquant) |
al@19784 | 47 copy bin/pngquant |
al@19781 | 48 DEPENDS="lcms2 libpng16 zlib" |
al@19781 | 49 ;; |
al@19781 | 50 pngquant-static) |
al@19784 | 51 copy sbin/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 } |