[38304] trunk/base/src/port1.0/portconfigure.tcl

raimue at macports.org raimue at macports.org
Mon Jul 14 22:33:22 PDT 2008

Revision: 38304
Author:   raimue at macports.org
Date:     2008-07-14 22:33:22 -0700 (Mon, 14 Jul 2008)
Log Message:
Add a new command 'use_autoreconf'
This can replace instances of 'system' in our Portfiles, especially when a port
runs any combination of aclocal/autoconf/automake/, as autoreconf automatically
figures out what needs to be run.

Modified Paths:

Modified: trunk/base/src/port1.0/portconfigure.tcl
--- trunk/base/src/port1.0/portconfigure.tcl	2008-07-15 04:49:52 UTC (rev 38303)
+++ trunk/base/src/port1.0/portconfigure.tcl	2008-07-15 05:33:22 UTC (rev 38304)
@@ -40,12 +40,14 @@
 target_prerun ${org.macports.configure} configure_start
 # define options
-commands configure automake autoconf xmkmf libtool
+commands configure autoreconf automake autoconf xmkmf libtool
 # defaults
 default configure.env       ""
 default configure.pre_args  {--prefix=${prefix}}
 default configure.cmd       ./configure
 default configure.dir       {${worksrcpath}}
+default autoreconf.dir      {${worksrcpath}}
+default autoreconf.pre_args {--install}
 default autoconf.dir        {${worksrcpath}}
 default automake.dir        {${worksrcpath}}
 default xmkmf.cmd           xmkmf
@@ -259,12 +261,19 @@
 proc configure_main {args} {
     global [info globals]
-    global worksrcpath use_configure use_autoconf use_automake use_xmkmf
+    global worksrcpath use_configure use_autoreconf use_autoconf use_automake use_xmkmf
     global configure.env configure.pipe configure.cflags configure.cppflags configure.cxxflags configure.objcflags configure.ldflags configure.libs configure.fflags configure.f90flags configure.fcflags configure.classpath
     global configure.perl configure.python configure.ruby configure.install configure.awk configure.bison configure.pkg_config configure.pkg_config_path
     global configure.ccache configure.distcc configure.cc configure.cxx configure.cpp configure.objc configure.f77 configure.f90 configure.fc configure.javac configure.compiler prefix
     global os.platform os.major
+    if {[tbool use_autoreconf]} {
+        # XXX depend on autoreconf
+        if {[catch {command_exec autoreconf} result]} {
+            return -code error "[format [msgcat::mc "%s failure: %s"] autoreconf $result]"
+        }
+    }
     if {[tbool use_automake]} {
         # XXX depend on automake
         if {[catch {command_exec automake} result]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080714/1bde9817/attachment.html 

More information about the macports-changes mailing list