Ticket #52875: Portfile-ffmpeg-3.2_2.diff

File Portfile-ffmpeg-3.2_2.diff, 1.1 KB (added by arboz, 7 years ago)

patch for leopard to compile ffmpeg 3.2.x

  • ffmpeg/Portfile

    old new  
    99
    1010name                ffmpeg
    1111conflicts           ffmpeg-devel
    12 epoch               1
     12epoch               2
    1313version             3.2
    1414license             LGPL-2.1+
    1515categories          multimedia
     
    8787                    port:freetype \
    8888                    port:fribidi \
    8989                    path:lib/libspeex.dylib:speex \
    90                     port:libsdl2 \
     90                    port:libsdl \
    9191                    port:soxr \
    9292                    port:bzip2 \
    9393                    port:xz \
     
    154154        configure.args-append --disable-libbluray
    155155        configure.args-append --disable-asm
    156156    }
    157 
     157   
     158    # libsdl2 requires 10.7 to build for now this gets it off 10.5/9.8.0
     159    if {${os.major} > 9} {
     160        depends_lib-append    port:libsdl2
     161        depends_lib-delete    port:libsdl
     162    }
    158163    # filters coreimage and coreimagesrc don't build on 10.6
    159164    # and earlier due to use of bridged casts in Objective C (#51823)
    160165    if {${os.major} < 11} {