New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

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

Revision 126278, 2.0 KB checked in by ryandesign@…, 5 weeks ago (diff)

optipng: fix build on Yosemite and later

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
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
4PortSystem 1.0
5
6name            optipng
7version         0.7.5
8categories      graphics
9license         zlib
10maintainers     ryandesign openmaintainer
11description     PNG file optimizer
12long_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
20platforms       darwin
21
22homepage        http://optipng.sourceforge.net/
23master_sites    sourceforge:project/${name}/OptiPNG/${name}-${version}
24
25checksums       rmd160  96ffdd9628d03939bb52c98d63c6d1b2cac42313 \
26                sha256  74e54b798b012dff8993fb8d90185ca83f18cfa4935f4a93b0bcfc33c849619d
27
28patchfiles      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.
32configure.cppflags
33configure.ldflags
34
35configure.args-append  --mandir=${prefix}/share/man
36
37configure.universal_args-delete --disable-dependency-tracking
38
39variant universal {}
40
41build.args-append   CC="${configure.cc} ${configure.cflags} [get_canonical_archflags cc]"
42
43post-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.
56livecheck.type  regex
57livecheck.url   ${homepage}
58livecheck.regex "<b>OptiPNG&nbsp;(\\d+\\.\\d+\\.\\d+)</b></font> \\(stable\\)"
Note: See TracBrowser for help on using the repository browser.