wok-next view pngquant/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | f5bfda4cdfe9 |
children | d5aab818505e |
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/"
10 HOST_ARCH="i486 x86_64"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$GITHUB/pornel/pngquant/tarball/$VERSION"
15 EXTRA_TARBALL="libimagequant-$VERSION"
16 EXTRA_WGET_URL="$GITHUB/ImageOptim/libimagequant/tarball/$VERSION"
18 BUILD_DEPENDS="lcms2-dev libpng16-dev zlib-dev"
19 SPLIT="pngquant pngquant-static:static"
21 compile_rules() {
22 if [ ! -e "$SRC/$EXTRA_TARBALL" ]; then
23 wget -O $SRC/$EXTRA_TARBALL $EXTRA_WGET_URL
24 fi
25 tar -xf $SRC/$EXTRA_TARBALL -C $src
26 mv $src/ImageOptim-*/* $src/lib/
28 case $SET in
29 static)
30 ./configure \
31 --prefix=/usr \
32 LDFLAGS='-static -pthread' \
33 --with-openmp=static
34 ;;
35 *)
36 ./configure \
37 --prefix=/usr
38 ;;
39 esac &&
41 make && 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 }