Ticket #52537: patch-fix-SL-Xcode326.diff

File patch-fix-SL-Xcode326.diff, 1.2 KB (added by ken-cunningham-webuse, 8 years ago)
  • hatari/Portfile

    old new  
    4848# default to install macOS GUI application, and then adjust for OS variations
    4949platform darwin {
    5050    if { ${os.major} <= 9 } {
    51         # 10.4 and 10.5 cannot build the macOS GUI at present
     51        # 10.4 and 10.5 cannot build the macOS GUI
    5252        default_variants       +commandlineapp
    5353    }
    54    
    55     if { ${os.major} >= 10 } {
     54
     55# Snow Leopard can build the MacOSX GUI with Xcode 4.2
     56    if { ${os.major} eq 10 } {
     57        if { ${xcodeversion} eq "4.2" } {
     58            # can build GUI
     59            # *gcc* does not build the macOS GUI
     60            compiler.blacklist     *gcc*
     61        } else {
     62            # cannot build gui
     63            default_variants       +commandlineapp
     64            ui_msg "Buiding command-line version of hatari. Could build GUI version if you installed and selected Xcode 4.2"
     65        }
     66    }
     67
     68    if { ${os.major} >= 11 } {
    5669        # *gcc* does not appear to build the macOS GUI, so blacklist it on 10.6+
    5770        compiler.blacklist     *gcc*
    5871    }