source: trunk/dports/graphics/optipng/Portfile

Last change on this file was 147499, checked in by ryandesign@…, 20 months ago

optipng: update to 0.7.6

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
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: Portfile 147499 2016-04-06 06:01:10Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name            optipng
7version         0.7.6
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  0f0ad8e31ab4a75f7fa599e4e8036e04b39a9b84 \
26                sha256  4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80
27
28# Doesn't depend on libpng or zlib since it uses its own, modified versions.
29# Clear cppflags and ldflags to ensure an already-installed libpng is not used.
30configure.cppflags
31configure.ldflags
32
33configure.args-append  --mandir=${prefix}/share/man
34
35configure.universal_args-delete --disable-dependency-tracking
36
37variant universal {}
38
39build.args-append   CC="${configure.cc} ${configure.cflags} [get_canonical_archflags cc]"
40
41post-destroot {
42    set docdir ${prefix}/share/doc/${subport}
43    xinstall -d ${destroot}${docdir}
44    xinstall -m 644 -W ${worksrcpath} \
45        AUTHORS.txt \
46        LICENSE.txt \
47        README.txt \
48        doc/history.txt \
49        doc/todo.txt \
50        ${destroot}${docdir}
51}
52
53# The default SourceForge livecheck rule doesn't work with OptiPNG.
54livecheck.type  regex
55livecheck.url   ${homepage}
56livecheck.regex "<b>OptiPNG&nbsp;(\\d+\\.\\d+\\.\\d+)</b></font> \\(stable\\)"
Note: See TracBrowser for help on using the repository browser.