# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
github.setup pornel pngquant 2.1.0
description command-line utility and library for lossy compression of PNG images.
long_description pngquant is a ${description}. \
The conversion reduces file sizes significantly (often as \
much as 70%) and preserves full alpha transparency. \
Generated images are compatible with all modern web \
browsers, and have better fallback in IE6 than 24-bit PNGs.
homepage http://pngquant.org/
distfiles ${name}-${version}-src${extract.suffix}
checksums rmd160 f76bf91ed33b00eb5f5daf1e3b03ffe1170d5707 \
sha256 ef41138ff320495c785155eb9f774ae6e1d41978b3e490854e6a8c46c0b032e2
depends_lib port:libpng \
patchfiles patch-Makefile.diff
build.env-append PREFIX=${prefix} \
CFLAGSADD="[get_canonical_archflags cc]" \
LDFLAGSADD="[get_canonical_archflags ld]" \
destroot.env-append {*}${build.env}
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} \
livecheck.url ${homepage}releases.html
livecheck.regex ${name}-(\[0-9.\]+)-src${extract.suffix}