Ticket #36942: Portfile.ffmpeg_1.0_2.diff

File Portfile.ffmpeg_1.0_2.diff, 852 bytes (added by ccarey@…, 11 years ago)

patch to the Portfile to allow ffmpeg @1.0_2 +gpl2 to run efficiently on PPC Tiger

  • Portfile

    old new  
    6666                port:libtheora \
    6767                port:libmodplug \
    6868                port:jack \
    69                 port:dirac \
    7069                port:schroedinger \
    7170                port:openjpeg \
    7271                port:freetype \
     
    132131    # absence of altivec is not automatically detected
    133132    if {[catch {sysctl hw.vectorunit} result] || $result == 0} {
    134133        configure.args-append --disable-altivec
     134    } else {
     135        # the compile-time presence of Altivec can be automatically detected if the --cpu option is provided
     136        if {[catch {machine} machine] == 1} {
     137            if {$machine eq "ppc7450"} {
     138                configure.args-append --cpu=ppc7450
     139            }
     140        }
    135141    }
    136142}
    137143