Changeset 30089 for trunk/base


Ignore:
Timestamp:
Oct 19, 2007, 12:32:13 PM (12 years ago)
Author:
nox@…
Message:

portmain: Whitespace changes, added modeline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portmain.tcl

    r30034 r30089  
    9999if {[info exists os.platform] && (${os.platform} == "darwin") && [file isdirectory /System/Library/Frameworks/Carbon.framework] && ![info exists variations(macosx)]} { variant_set macosx }
    100100if {[info exists variations(macosx)] && $variations(macosx) == "+"} {
    101         # Declare default universal variant, on >10.3
    102         variant universal {
    103                 if {[tbool use_xmkmf] || ![tbool use_configure]} {
    104                         return -code error "Default universal variant only works with ports based on configure"
    105                 }
    106                 configure.args-append ${configure.universal_args}
    107                 if {![file exists /Developer/SDKs/MacOSX10.4u.sdk/]} {
    108                         return -code error "MacOS X 10.4 universal SDK is not installed (are we running on 10.3? did you forget to install it?) and building with +universal will very likely fail"
    109                 }
    110                 configure.cflags-append ${configure.universal_cflags}
    111                 configure.cppflags-append ${configure.universal_cppflags}
    112                 configure.cxxflags-append ${configure.universal_cxxflags}
    113                 configure.ldflags-append ${configure.universal_ldflags}
    114         }
     101    # Declare default universal variant, on >10.3
     102    variant universal {
     103        if {[tbool use_xmkmf] || ![tbool use_configure]} {
     104            return -code error "Default universal variant only works with ports based on configure"
     105        }
     106        configure.args-append ${configure.universal_args}
     107        if {![file exists /Developer/SDKs/MacOSX10.4u.sdk/]} {
     108            return -code error "MacOS X 10.4 universal SDK is not installed (are we running on 10.3? did you forget to install it?) and building with +universal will very likely fail"
     109        }
     110        configure.cflags-append ${configure.universal_cflags}
     111        configure.cppflags-append ${configure.universal_cppflags}
     112        configure.cxxflags-append ${configure.universal_cxxflags}
     113        configure.ldflags-append ${configure.universal_ldflags}
     114    }
    115115
    116         # This is not a standard option, because we need to take an action when it's
    117         # set, in order to alter the PortInfo structure in time.
    118         proc universal_variant {state} {
    119                 if {${state} == "no"} {
    120                         variant_undef universal
    121                 }
    122         }
     116    # This is not a standard option, because we need to take an action when it's
     117    # set, in order to alter the PortInfo structure in time.
     118    proc universal_variant {state} {
     119        if {${state} == "no"} {
     120            variant_undef universal
     121        }
     122    }
    123123}
    124124
Note: See TracChangeset for help on using the changeset viewer.