[33483] trunk/base/src/port1.0/portconfigure.tcl
Ryan Schmidt
ryandesign at macports.org
Mon Jan 28 01:17:38 PST 2008
On Jan 27, 2008, at 14:40, afb at macports.org wrote:
> 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
> }
This works on PowerPC Macs too?
What problem does this solve? Just curious.
More information about the macports-dev
mailing list