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

ryandesign at macports.org ryandesign at macports.org
Thu Sep 20 03:19:08 PDT 2012


Revision: 97931
          http://trac.macports.org//changeset/97931
Author:   ryandesign at macports.org
Date:     2012-09-20 03:19:08 -0700 (Thu, 20 Sep 2012)
Log Message:
-----------
optipng: update to 0.7.3; fix opportunistic use of libpng's headers which causes the program to crash at runtime (#36240); use gmake port dependency only on Tiger since newer OS X already includes gmake 3.81 or newer; add modeline

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

Modified: trunk/dports/graphics/optipng/Portfile
===================================================================
--- trunk/dports/graphics/optipng/Portfile	2012-09-20 10:02:46 UTC (rev 97930)
+++ trunk/dports/graphics/optipng/Portfile	2012-09-20 10:19:08 UTC (rev 97931)
@@ -1,3 +1,4 @@
+# -*- 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
 # $Id$
 
 PortSystem 1.0
@@ -3,5 +4,5 @@
 
 name            optipng
-version         0.7.2
+version         0.7.3
 categories      graphics
 license         zlib
@@ -21,29 +22,28 @@
 homepage        http://optipng.sourceforge.net/
 master_sites    sourceforge:project/${name}/OptiPNG/${name}-${version}
 
-checksums       rmd160  7b578c8339cae5d5f5d687965aa33022c6dc5910 \
-                sha256  5bfd5cfd4880e325011e5b09ff915fe64ce791c5aa8103068831dd8e52d521a1
+checksums       rmd160  2329a8cc310e191adaf9c944ca92b9890e93b505 \
+                sha256  e07079fbf4cd7f11e756ca042f5285dd7a1f1784bb398fe6bbb63e5324368491
 
-# Doesn't depend on libpng or zlib since it uses its own, modified versions
+# Doesn't depend on libpng or zlib since it uses its own, modified versions.
+# Clear cppflags and ldflags to ensure an already-installed libpng is not used.
+configure.cppflags
+configure.ldflags
 
-# Make sure gmake 3.81+ is used, as scripts/gcc.mak needs POSIX
-# backslash-newline sequence compatibility.
-depends_build   port:gmake
-
 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-delete --disable-dependency-tracking
 
 variant universal {}
 
-build.args-append   CC="${configure.cc} ${configure.cflags} [get_canonical_archflags]" \
-                    LDFLAGS=${configure.ldflags}
+build.args-append   CC="${configure.cc} ${configure.cflags} [get_canonical_archflags cc]"
 
-build.cmd       ${prefix}/bin/gmake
+platform darwin 8 {
+    # Make sure gmake 3.81+ is used, as scripts/gcc.mak needs POSIX
+    # backslash-newline sequence compatibility.
+    depends_build-append    port:gmake
+    build.cmd               ${prefix}/bin/gmake
+}
 
 # The default SourceForge livecheck rule doesn't work with OptiPNG.
 livecheck.type  regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120920/3462540e/attachment.html>


More information about the macports-changes mailing list