| 1 | # -*- 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 |
|---|
| 2 | # $Id$ |
|---|
| 3 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | |
|---|
| 6 | name optipng |
|---|
| 7 | version 0.7.5 |
|---|
| 8 | categories graphics |
|---|
| 9 | license zlib |
|---|
| 10 | maintainers ryandesign openmaintainer |
|---|
| 11 | description PNG file optimizer |
|---|
| 12 | long_description \ |
|---|
| 13 | OptiPNG is a PNG optimizer that recompresses the image files to a \ |
|---|
| 14 | smaller size, without losing any information. The idea has been \ |
|---|
| 15 | inspired from pngcrush (http://pmt.sourceforge.net/pngcrush), and \ |
|---|
| 16 | is explained in detail in the PNG-Tech article 'A guide to PNG \ |
|---|
| 17 | optimization'. The implementation is carried forward in OptiPNG, \ |
|---|
| 18 | which offers a faster execution per trial, and a wider search space. |
|---|
| 19 | |
|---|
| 20 | platforms darwin |
|---|
| 21 | |
|---|
| 22 | homepage http://optipng.sourceforge.net/ |
|---|
| 23 | master_sites sourceforge:project/${name}/OptiPNG/${name}-${version} |
|---|
| 24 | |
|---|
| 25 | checksums rmd160 96ffdd9628d03939bb52c98d63c6d1b2cac42313 \ |
|---|
| 26 | sha256 74e54b798b012dff8993fb8d90185ca83f18cfa4935f4a93b0bcfc33c849619d |
|---|
| 27 | |
|---|
| 28 | patchfiles patch-src-optipng-osys.c.diff |
|---|
| 29 | |
|---|
| 30 | # Doesn't depend on libpng or zlib since it uses its own, modified versions. |
|---|
| 31 | # Clear cppflags and ldflags to ensure an already-installed libpng is not used. |
|---|
| 32 | configure.cppflags |
|---|
| 33 | configure.ldflags |
|---|
| 34 | |
|---|
| 35 | configure.args-append --mandir=${prefix}/share/man |
|---|
| 36 | |
|---|
| 37 | configure.universal_args-delete --disable-dependency-tracking |
|---|
| 38 | |
|---|
| 39 | variant universal {} |
|---|
| 40 | |
|---|
| 41 | build.args-append CC="${configure.cc} ${configure.cflags} [get_canonical_archflags cc]" |
|---|
| 42 | |
|---|
| 43 | post-destroot { |
|---|
| 44 | set docdir ${prefix}/share/doc/${subport} |
|---|
| 45 | xinstall -d ${destroot}${docdir} |
|---|
| 46 | xinstall -m 644 -W ${worksrcpath} \ |
|---|
| 47 | AUTHORS.txt \ |
|---|
| 48 | LICENSE.txt \ |
|---|
| 49 | README.txt \ |
|---|
| 50 | doc/history.txt \ |
|---|
| 51 | doc/todo.txt \ |
|---|
| 52 | ${destroot}${docdir} |
|---|
| 53 | } |
|---|
| 54 | |
|---|
| 55 | # The default SourceForge livecheck rule doesn't work with OptiPNG. |
|---|
| 56 | livecheck.type regex |
|---|
| 57 | livecheck.url ${homepage} |
|---|
| 58 | livecheck.regex "<b>OptiPNG (\\d+\\.\\d+\\.\\d+)</b></font> \\(stable\\)" |
|---|