Ticket #32750: Portfile-apple-gcc42.diff

File Portfile-apple-gcc42.diff, 779 bytes (added by jlmuir@…, 13 years ago)
  • Portfile

    old new  
    162162
    163163set build_targets {i386}
    164164
    165 if {[file exists ${developer_dir}/SDKs/MacOSX10.3.9.sdk] ||
    166     [file exists ${developer_dir}/SDKs/MacOSX10.4u.sdk] ||
    167     [file exists ${developer_dir}/SDKs/MacOSX10.5.sdk] ||
    168     ${build_arch} == "ppc"} {
    169         lappend build_targets ppc
     165# Support for PPC was dropped in Darwin 11 (Mac OS X 10.7)
     166if {${os.major} < 11} {
     167    if {[file exists ${developer_dir}/SDKs/MacOSX10.3.9.sdk] ||
     168            [file exists ${developer_dir}/SDKs/MacOSX10.4u.sdk] ||
     169            [file exists ${developer_dir}/SDKs/MacOSX10.5.sdk] ||
     170            ${build_arch} == "ppc"} {
     171        lappend build_targets ppc
     172    }
    170173}
    171174
    172175# TODO: arm?