Ticket #48938: ffmpeg.diff

File ffmpeg.diff, 1.2 KB (added by Ionic (Mihai Moldovan), 9 years ago)

Fix compile error with Apple GCC on 10.6 and below. Disables -Werror=missing-prototypes compiler flag.

  • dports/multimedia/ffmpeg/Portfile

    old new  
    151151        configure.args-append --enable-vda
    152152    }
    153153
     154    # Apple GCC has problems with SIMD intrinsics and -Werror=no-missing-prototypes.
     155    if {${os.major} < 11} {
     156        patchfiles-append patch-configure-no-error-on-missing-prototypes.diff
     157    }
     158
    154159    # kCVPixelFormatType_OneComponent8 used in avfoundation indev is only available on 10.8+
    155160    if {${os.major} < 12} {
    156161        configure.args-append --disable-indev=avfoundation
  • new file dports/multimedia/ffmpeg/files/patch-configure-no-error-on-missing-prototypes.diff

    - +  
     1--- configure.old       2015-09-27 18:43:30.000000000 +0200
     2+++ configure   2015-09-27 18:44:18.000000000 +0200
     3@@ -5672,7 +5672,6 @@
     4     check_optflags -fno-tree-vectorize
     5     check_cflags -Werror=format-security
     6     check_cflags -Werror=implicit-function-declaration
     7-    check_cflags -Werror=missing-prototypes
     8     check_cflags -Werror=return-type
     9     check_cflags -Werror=vla
     10     check_cflags -Wformat