# -*- 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 # $Id$ PortSystem 1.0 PortGroup github 1.0 github.setup pornel pngquant 2.1.0 categories graphics platforms darwin maintainers gmail.com:lpancescu license BSD 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/ master_sites ${homepage} use_bzip2 yes distfiles ${name}-${version}-src${extract.suffix} checksums rmd160 f76bf91ed33b00eb5f5daf1e3b03ffe1170d5707 \ sha256 ef41138ff320495c785155eb9f774ae6e1d41978b3e490854e6a8c46c0b032e2 depends_lib port:libpng \ port:zlib patchfiles patch-Makefile.diff use_configure no variant universal {} build.env-append PREFIX=${prefix} \ CC=${configure.cc} \ CFLAGSADD="[get_canonical_archflags cc]" \ LDFLAGSADD="[get_canonical_archflags ld]" \ ARFLAGS=rsv eval destroot.env-append ${build.env} post-destroot { set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} \ CHANGELOG \ COPYRIGHT \ README.md \ ${destroot}${docdir} } livecheck.type regex livecheck.url ${homepage}releases.html livecheck.regex ${name}-(\[0-9.\]+)-src${extract.suffix}