source: trunk/dports/graphics/optipng/Portfile @ 64948

Last change on this file since 64948 was 64948, checked in by vinc17@…, 11 years ago

optipng: bump to version 0.6.4.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 64948 2010-03-18 11:52:53Z vinc17@macports.org $
2
3PortSystem 1.0
4
5name            optipng
6version         0.6.4
7categories      graphics
8maintainers     vinc17
9description     PNG file optimizer
10long_description \
11        OptiPNG is a PNG optimizer that recompresses the image files to a \
12        smaller size, without losing any information.  The idea has been \
13        inspired from pngcrush (http://pmt.sourceforge.net/pngcrush), and \
14        is explained in detail in the PNG-Tech article 'A guide to PNG \
15        optimization'.  The implementation is carried forward in OptiPNG, \
16        which offers a faster execution per trial, and a wider search space.
17
18platforms       darwin
19
20homepage        http://optipng.sourceforge.net/
21master_sites    sourceforge
22
23checksums       md5     d6c10dd8d8f1d5b579221bc9cfbfbcb6 \
24                sha1    ebb8d623c7f79c5c6942803bb96789103780bce9 \
25                rmd160  6b5248c3c6b744315e70e86b49d998fe66759879
26
27# Doesn't depend on libpng or zlib since it uses its own, modified versions
28
29# Make sure gmake 3.81+ is used, as scripts/gcc.mak needs POSIX
30# backslash-newline sequence compatibility.
31depends_build   port:gmake
32
33# Avoid --prefix option (not supported by OptiPNG's configure script).
34configure.pre_args
35
36# Workaround for problem with MacPorts 1.8.0, which adds the
37# --disable-dependency-tracking configure option with the
38# universal variant, even though this option is not standard:
39#   http://www.gnu.org/prep/standards/standards.html#Configuration
40configure.universal_args
41
42build.cmd       ${prefix}/bin/gmake
43
44destroot {
45        xinstall -m 755 -d ${destroot}${prefix}/bin \
46          ${destroot}${prefix}/share/doc/${name} \
47          ${destroot}${prefix}/share/man/man1
48        xinstall -m 755 -W ${worksrcpath}/src optipng ${destroot}${prefix}/bin
49        eval xinstall -m 644 [glob ${worksrcpath}/doc/*] \
50          ${worksrcpath}/README.txt ${destroot}${prefix}/share/doc/${name}
51        xinstall -m 644 ${worksrcpath}/man/optipng.1 \
52          ${destroot}${prefix}/share/man/man1
53}
54
55# The default SourceForge livecheck rule doesn't with OptiPNG.
56livecheck.type  regex
57livecheck.url   ${homepage}
58livecheck.regex "Latest version:.*<b>OptiPNG&nbsp;(\\d+\\.\\d+\\.\\d+)</b>"
Note: See TracBrowser for help on using the repository browser.