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

afb at macports.org afb at macports.org
Sun Jan 27 12:40:11 PST 2008


Revision: 33483
          http://trac.macosforge.org/projects/macports/changeset/33483
Author:   afb at macports.org
Date:     2008-01-27 12:40:10 -0800 (Sun, 27 Jan 2008)

Log Message:
-----------
set canonical system name, for universal configure

Modified Paths:
--------------
    trunk/base/src/port1.0/portconfigure.tcl

Modified: trunk/base/src/port1.0/portconfigure.tcl
===================================================================
--- trunk/base/src/port1.0/portconfigure.tcl	2008-01-27 20:32:06 UTC (rev 33482)
+++ trunk/base/src/port1.0/portconfigure.tcl	2008-01-27 20:40:10 UTC (rev 33483)
@@ -116,9 +116,23 @@
     ui_msg "$UI_PREFIX [format [msgcat::mc "Configuring %s"] [option portname]]"
 }
 
+# internal function to determine canonical system name for configure
+proc configure_get_universal_system_name {args} {
+    global configure.universal_target
+    switch -- ${configure.universal_target} {
+        "10.4"  { return "i686-apple-darwin8" }
+        "10.5"  { return "i686-apple-darwin9" }
+    }
+    return ""
+}
+
 # internal function to determine the universal args for configure.cmd
 proc configure_get_universal_args {args} {
+    set system [configure_get_universal_system_name]
     set params "--disable-dependency-tracking"
+    if {[info exists system] && $system != ""} {
+        set params "$params --host=${system} --target=${system}"
+    }
     return $params
 }
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080127/1327ac38/attachment.html


More information about the macports-changes mailing list