# -*- 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 name optipng version 0.7.6 categories graphics license zlib maintainers ryandesign openmaintainer description PNG file optimizer long_description \ OptiPNG is a PNG optimizer that recompresses the image files to a \ smaller size, without losing any information. The idea has been \ inspired from pngcrush (http://pmt.sourceforge.net/pngcrush), and \ is explained in detail in the PNG-Tech article 'A guide to PNG \ optimization'. The implementation is carried forward in OptiPNG, \ which offers a faster execution per trial, and a wider search space. platforms darwin homepage http://optipng.sourceforge.net/ master_sites sourceforge:project/${name}/OptiPNG/${name}-${version} checksums rmd160 0f0ad8e31ab4a75f7fa599e4e8036e04b39a9b84 \ sha256 4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80 # Doesn't depend on libpng or zlib since it uses its own, modified versions. # Clear cppflags and ldflags to ensure an already-installed libpng is not used. configure.cppflags configure.ldflags configure.args-append --mandir=${prefix}/share/man configure.universal_args-delete --disable-dependency-tracking variant universal {} build.args-append CC="${configure.cc} ${configure.cflags} [get_canonical_archflags cc]" post-destroot { set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} \ AUTHORS.txt \ LICENSE.txt \ README.txt \ doc/history.txt \ doc/todo.txt \ ${destroot}${docdir} } # The default SourceForge livecheck rule doesn't work with OptiPNG. livecheck.type regex livecheck.url ${homepage} livecheck.regex "OptiPNG (\\d+\\.\\d+\\.\\d+) \\(stable\\)"