[132953] trunk/dports/net/mtr/Portfile

cal at macports.org cal at macports.org
Sun Feb 15 15:08:29 PST 2015


Revision: 132953
          https://trac.macports.org/changeset/132953
Author:   cal at macports.org
Date:     2015-02-15 15:08:29 -0800 (Sun, 15 Feb 2015)
Log Message:
-----------
mtr: Fix build in absence of autoconf (or in trace mode)

Modified Paths:
--------------
    trunk/dports/net/mtr/Portfile

Modified: trunk/dports/net/mtr/Portfile
===================================================================
--- trunk/dports/net/mtr/Portfile	2015-02-15 22:47:29 UTC (rev 132952)
+++ trunk/dports/net/mtr/Portfile	2015-02-15 23:08:29 UTC (rev 132953)
@@ -32,6 +32,13 @@
                     sha256  c5d948920b641cc35f8b380fc356ddfe07cce6a9c6474afe242fc58113f28c06
 
 configure.args      --without-gtk
+pre-configure {
+    # For some reason, config.h.in is older than aclocal.m4 and configure.ac,
+    # which causes the mtr build system to attempt to re-generate it.
+    # Re-generating requires an autoconf dependency, so let's avoid it,
+    # especially since the file does not change.
+    file mtime ${worksrcpath}/config.h.in [file mtime ${worksrcpath}/aclocal.m4]
+}
 
 if {${os.platform} eq "darwin" && ${os.major} >= 10} {
     configure.env-append    LIBS=-lresolv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150215/d95596a9/attachment.html>


More information about the macports-changes mailing list