Ticket #50032: libsdl-darwin8ppc-fix.diff

File libsdl-darwin8ppc-fix.diff, 777 bytes (added by kenneth.f.cunningham@…, 8 years ago)
  • /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/libsdl/Portfile

    old new  
    4646    }
    4747}
    4848
     49platform darwin 8 powerpc {
     50    # test for vector unit
     51    if {![catch {sysctl hw.vectorunit} result]} {
     52        if {$result > 0} {
     53            # powerpc with vectorunit found, must be altivec
     54            configure.cflags-append -faltivec
     55        }
     56    } else {
     57        ui_warn "Check for Altivec unit with sysctl failed. $result"
     58    }
     59}
     60
     61
    4962variant x11 {
    5063    configure.args-delete --without-x
    5164    configure.args-append --x-includes=${prefix}/include \