[97188] trunk/dports/graphics/optipng/Portfile

ciserlohn at macports.org ciserlohn at macports.org
Wed Aug 29 07:07:53 PDT 2012


Revision: 97188
          https://trac.macports.org/changeset/97188
Author:   ciserlohn at macports.org
Date:     2012-08-29 07:07:51 -0700 (Wed, 29 Aug 2012)
Log Message:
-----------
optipng: update to version 0.7.2 (see #35884)

* ensure we are UsingTheRightCompiler
* fix universal variant
* fix livecheck
* fix manpath handling
* fix comment

Modified Paths:
--------------
    trunk/dports/graphics/optipng/Portfile

Modified: trunk/dports/graphics/optipng/Portfile
===================================================================
--- trunk/dports/graphics/optipng/Portfile	2012-08-29 13:35:27 UTC (rev 97187)
+++ trunk/dports/graphics/optipng/Portfile	2012-08-29 14:07:51 UTC (rev 97188)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name            optipng
-version         0.6.5
+version         0.7.2
 categories      graphics
 license         zlib
 maintainers     nomaintainer
@@ -21,9 +21,8 @@
 homepage        http://optipng.sourceforge.net/
 master_sites    sourceforge:project/${name}/OptiPNG/${name}-${version}
 
-checksums       md5     9df5fa7bb45ae096ed6c6e0d8dc43dc7 \
-                sha1    91525748a0bbd9bbfa8355529da7c17a408173e5 \
-                rmd160  2b67ce48cba37e5c77ef13bdc285b37e919e2b01
+checksums       rmd160  7b578c8339cae5d5f5d687965aa33022c6dc5910 \
+                sha256  5bfd5cfd4880e325011e5b09ff915fe64ce791c5aa8103068831dd8e52d521a1
 
 # Doesn't depend on libpng or zlib since it uses its own, modified versions
 
@@ -31,29 +30,22 @@
 # backslash-newline sequence compatibility.
 depends_build   port:gmake
 
-# Avoid --prefix option (not supported by OptiPNG's configure script).
-configure.pre_args
+configure.args-append  --mandir=${prefix}/share/man
 
 # Workaround for problem with MacPorts 1.8.0, which adds the
 # --disable-dependency-tracking configure option with the
 # universal variant, even though this option is not standard:
 #   http://www.gnu.org/prep/standards/standards.html#Configuration
-configure.universal_args
+configure.universal_args-delete --disable-dependency-tracking
 
-build.cmd       ${prefix}/bin/gmake
+variant universal {}
 
-destroot {
-        xinstall -m 755 -d ${destroot}${prefix}/bin \
-          ${destroot}${prefix}/share/doc/${name} \
-          ${destroot}${prefix}/share/man/man1
-        xinstall -m 755 -W ${worksrcpath}/src optipng ${destroot}${prefix}/bin
-        eval xinstall -m 644 [glob ${worksrcpath}/doc/*] \
-          ${worksrcpath}/README.txt ${destroot}${prefix}/share/doc/${name}
-        xinstall -m 644 ${worksrcpath}/man/optipng.1 \
-          ${destroot}${prefix}/share/man/man1
-}
+build.args-append   CC="${configure.cc} ${configure.cflags} [get_canonical_archflags]" \
+                    LDFLAGS=${configure.ldflags}
 
-# The default SourceForge livecheck rule doesn't with OptiPNG.
+build.cmd       ${prefix}/bin/gmake
+
+# The default SourceForge livecheck rule doesn't work with OptiPNG.
 livecheck.type  regex
 livecheck.url   ${homepage}
-livecheck.regex "Latest version:.*<b>OptiPNG&nbsp;(\\d+\\.\\d+\\.\\d+)</b>"
+livecheck.regex "<b>OptiPNG&nbsp;(\\d+\\.\\d+\\.\\d+)</b></font> \\(stable\\)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120829/a524270f/attachment.html>


More information about the macports-changes mailing list