[49109] trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl

mcalhoun at macports.org mcalhoun at macports.org
Fri Apr 3 20:58:08 PDT 2009


Revision: 49109
          http://trac.macports.org/changeset/49109
Author:   mcalhoun at macports.org
Date:     2009-04-03 20:58:07 -0700 (Fri, 03 Apr 2009)
Log Message:
-----------
muniversal: Allow for autoreconf.

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl	2009-04-04 03:35:40 UTC (rev 49108)
+++ trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl	2009-04-04 03:58:07 UTC (rev 49109)
@@ -246,9 +246,22 @@
                 }
             }
 
+            set autoreconf_dir_save  ${autoreconf.dir}
+            if { [string match "${worksrcpath}/*" ${autoreconf.dir}] } {
+                # The autoreconf directory is inside the source directory, so put in the new source directory name.
+                eval autoreconf.dir  [string map "${worksrcpath} ${worksrcpath}-${arch}" ${autoreconf.dir}]
+            } else {
+                # The autoreconf directory is outside the source directory, so give it a new name by appending ${arch}.
+                autoreconf.dir  ${autoreconf.dir}-${arch}
+                if { ![file exists ${autoreconf.dir}] } {
+                    file mkdir ${autoreconf.dir}
+                }
+            }
+
             configure_main
 
             # Undo changes to the configure related variables
+            eval autoreconf.dir ${autoreconf_dir_save}
             eval configure.dir  ${configure_dir_save}
             eval configure.f90  ${configure_f90_save}
             eval configure.f77  ${configure_f77_save}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090403/8dd26196/attachment.html>


More information about the macports-changes mailing list