wok-next view pngquant/receipt @ rev 20395

e4rat: update patch (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 02 12:33:04 2017 +0100 (2017-12-02)
parents 028634d82da8
children 0e7893ac206d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="pngquant"
4 VERSION="2.9.1"
5 CATEGORY="graphics"
6 SHORT_DESC="Lossy compression of PNG images"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://pngquant.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GITHUB/pornel/pngquant/tarball/$VERSION"
14 EXTRA_TARBALL="libimagequant-$VERSION"
15 EXTRA_WGET_URL="$GITHUB/ImageOptim/libimagequant/tarball/$VERSION"
17 BUILD_DEPENDS="lcms2-dev libpng16-dev zlib-dev"
18 SPLIT="pngquant-static"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 if [ ! -e "$SRC/$EXTRA_TARBALL" ]; then
24 wget -O $SRC/$EXTRA_TARBALL $EXTRA_WGET_URL
25 fi
26 tar -xf $SRC/$EXTRA_TARBALL -C $src
27 mv $src/ImageOptim-*/* $src/lib/
29 # make statically linked binary
30 ./configure \
31 LDFLAGS='-static -pthread' \
32 --prefix=/usr \
33 --with-openmp=static &&
34 make && make BINPREFIX=$install/usr/sbin install &&
36 # make dynamically linked binary
37 ./configure \
38 --prefix=/usr &&
39 make && make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 case $PACKAGE in
46 pngquant)
47 copy bin/pngquant
48 DEPENDS="lcms2 libpng16 zlib"
49 ;;
50 pngquant-static)
51 copy sbin/pngquant
52 CAT="graphics|static binary"
53 PROVIDE="pngquant"
54 DEPENDS=" "
55 ;;
56 esac
57 }