wok-next annotate pngquant/receipt @ rev 21627

updated enet (1.2.1 -> 1.3.15)
author Hans-G?nter Theisgen
date Thu Jun 25 16:07:08 2020 +0100 (2020-06-25)
parents 7f6d8049fcec
children
rev   line source
al@19781 1 # SliTaz package receipt v2.
al@19128 2
al@19128 3 PACKAGE="pngquant"
al@21053 4 VERSION="2.12.2"
al@19128 5 CATEGORY="graphics"
al@21053 6 SHORT_DESC="Lossy PNG compressor"
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@21053 11 # libimagequant added as git submodule, so better to use git instead of
al@21053 12 # getting 2 tarballs and putting one to another...
al@21053 13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@21053 14 WGET_URL="git|https://github.com/kornelski/pngquant.git"
al@19128 15
al@21132 16 BUILD_DEPENDS="git lcms2-dev libpng-dev zlib-dev zlib-static"
al@21020 17 SPLIT="$PACKAGE-static:static"
al@19128 18
al@21143 19 DEPENDS_std="liblcms2 libpng"
al@21053 20 DEPENDS_static=" "
al@21053 21
al@21053 22 COPY_static="@std"
al@21053 23 CAT_static="graphics|static binary"
al@21053 24 PROVIDE_static="pngquant"
al@21053 25
al@20443 26 compile_rules() {
al@21053 27 git checkout tags/$VERSION
al@19607 28
al@20443 29 case $SET in
al@20443 30 static)
al@20443 31 ./configure \
al@20443 32 --prefix=/usr \
al@20443 33 LDFLAGS='-static -pthread' \
al@20443 34 --with-openmp=static
al@20443 35 ;;
al@20443 36 *)
al@20443 37 ./configure \
al@20443 38 --prefix=/usr
al@20443 39 ;;
al@20443 40 esac &&
al@19781 41
al@21020 42 make &&
al@21020 43 make install
al@19128 44 }