wok-next view pngquant/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 0e7893ac206d
children adb36dd69239
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="$PACKAGE-static:static"
20 compile_rules() {
21 if [ ! -e "$SRC/$EXTRA_TARBALL" ]; then
22 wget -O $SRC/$EXTRA_TARBALL $EXTRA_WGET_URL
23 fi
24 tar -xf $SRC/$EXTRA_TARBALL -C $src
25 mv $src/ImageOptim-*/* $src/lib/
27 case $SET in
28 static)
29 ./configure \
30 --prefix=/usr \
31 LDFLAGS='-static -pthread' \
32 --with-openmp=static
33 ;;
34 *)
35 ./configure \
36 --prefix=/usr
37 ;;
38 esac &&
40 make &&
41 make install
42 }
44 genpkg_rules() {
45 case $PACKAGE in
46 pngquant)
47 copy pngquant
48 DEPENDS="lcms2 libpng16 zlib"
49 ;;
50 pngquant-static)
51 copy pngquant
52 CAT="graphics|static binary"
53 PROVIDE="pngquant"
54 DEPENDS=" "
55 ;;
56 esac
57 }