Ticket #36890: Portfile.ffmpeg_1.0_1.diff

File Portfile.ffmpeg_1.0_1.diff, 2.7 KB (added by ccarey@…, 12 years ago)

patch to the Portfile to allow ffmpeg @1.0_1 +gpl2 to build successfully on PPC Tiger

  • Portfile

    old new  
    2828                        file format to another. It also supports grabbing and \
    2929                        encoding in real time from a TV card. \
    3030                        \
    31                         ffserver is an HTTP (RTSP is being developped) \
     31                        ffserver is an HTTP (RTSP is being developed) \
    3232                        multimedia streaming server for live broadcasts. Time \
    3333                        shifting of live broadcast is also supported. \
    3434                        \
     
    4040                        \
    4141                        libavcodec is a library containing all the ffmpeg \
    4242                        audio/video encoders and decoders. Most codecs were \
    43                         developped from scratch to ensure best performances \
     43                        developed from scratch to ensure best performance \
    4444                        and high code reusability. \
    4545                        \
    4646                        libavformat is a library containing parsers and \
     
    6666                port:libtheora \
    6767                port:libmodplug \
    6868                port:jack \
    69                 port:dirac \
    7069                port:schroedinger \
    7170                port:openjpeg \
     71                port:freetype \
    7272                path:lib/libspeex.dylib:speex \
    7373                port:libvpx \
    7474                path:lib/pkgconfig/sdl.pc:libsdl \
     
    109109        --enable-libmodplug \
    110110        --enable-libvpx \
    111111        --enable-libspeex \
     112        --enable-libfreetype \
    112113        --disable-mmx \
    113         --disable-mmx2 \
     114        --disable-mmxext \
    114115        --disable-sse \
    115116        --disable-ssse3 \
    116117        --disable-amd3dnow \
     
    138139    # absence of altivec is not automatically detected
    139140    if {[catch {sysctl hw.vectorunit} result] || $result == 0} {
    140141        configure.args-append --disable-altivec
     142    } else {
     143        # the compile-time presence of Altivec can be automatically detected if the --cpu option is provided
     144        if {[catch {machine} machine] == 1} {
     145            if {$machine eq "ppc7450"} {
     146                configure.args-append --cpu=ppc7450
     147            }
     148        }
    141149    }
    142150}
    143151
     
    170178}
    171179
    172180variant mmx description {enable all supported x86 asm optimizations} {
    173     configure.args-delete --disable-mmx --disable-mmx2 --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext
     181    configure.args-delete --disable-mmx --disable-mmxext --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext
    174182}
    175183
    176184variant gpl2 description {Enable GPL code, license will be GPL-2+} {