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

vinc17 at macports.org vinc17 at macports.org
Fri May 1 05:41:02 PDT 2009


Revision: 50467
          http://trac.macports.org/changeset/50467
Author:   vinc17 at macports.org
Date:     2009-05-01 05:41:00 -0700 (Fri, 01 May 2009)
Log Message:
-----------
optipng: use OptiPNG's configure script as suggested by #19498 (it is
experimental, but it works in case of gcc and is a cleaner method).

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

Modified: trunk/dports/graphics/optipng/Portfile
===================================================================
--- trunk/dports/graphics/optipng/Portfile	2009-05-01 10:53:29 UTC (rev 50466)
+++ trunk/dports/graphics/optipng/Portfile	2009-05-01 12:41:00 UTC (rev 50467)
@@ -26,25 +26,23 @@
 
 # Doesn't depend on libpng or zlib since it uses its own, modified versions
 
-worksrcdir      ${name}-${version}/src
-
-use_configure   no
-
 # Make sure gmake 3.81+ is used, as scripts/gcc.mak needs POSIX
 # backslash-newline sequence compatibility.
 depends_build   port:gmake
 
-build.cmd       gmake -f scripts/gcc.mak
-build.target    ""
+# Avoid --prefix option (not supported by OptiPNG's configure file).
+configure.pre_args
 
+build.cmd       ${prefix}/bin/gmake
+
 destroot {
         xinstall -m 755 -d ${destroot}${prefix}/bin \
           ${destroot}${prefix}/share/doc/${name} \
           ${destroot}${prefix}/share/man/man1
-        xinstall -m 755 -W ${worksrcpath} 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 \
+        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
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090501/a35e0c50/attachment.html>


More information about the macports-changes mailing list