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

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

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