Revision
140825
Author
ionic@macports.org
Date
2015-10-04 10:06:56 -0700 (Sun, 04 Oct 2015)

Log Message

ffmpeg: drop -Werror=missing-prototypes for GCC on 10.6 and below. Apple GCC handles this badly. Part of #48938.

Modified Paths

Added Paths

Diff

Modified: trunk/dports/multimedia/ffmpeg/Portfile (140824 => 140825)


--- trunk/dports/multimedia/ffmpeg/Portfile	2015-10-04 16:26:29 UTC (rev 140824)
+++ trunk/dports/multimedia/ffmpeg/Portfile	2015-10-04 17:06:56 UTC (rev 140825)
@@ -151,6 +151,11 @@
         configure.args-append --enable-vda
     }
 
+    # Apple GCC has problems with SIMD intrinsics and -Werror=no-missing-prototypes.
+    if {${os.major} < 11} {
+        patchfiles-append patch-configure-no-error-on-missing-prototypes.diff
+    }
+
     # kCVPixelFormatType_OneComponent8 used in avfoundation indev is only available on 10.8+
     if {${os.major} < 12} {
         configure.args-append --disable-indev=avfoundation

Added: trunk/dports/multimedia/ffmpeg/files/patch-configure-no-error-on-missing-prototypes.diff (0 => 140825)


--- trunk/dports/multimedia/ffmpeg/files/patch-configure-no-error-on-missing-prototypes.diff	                        (rev 0)
+++ trunk/dports/multimedia/ffmpeg/files/patch-configure-no-error-on-missing-prototypes.diff	2015-10-04 17:06:56 UTC (rev 140825)
@@ -0,0 +1,10 @@
+--- configure.old	2015-09-27 18:43:30.000000000 +0200
++++ configure	2015-09-27 18:44:18.000000000 +0200
+@@ -5672,7 +5672,6 @@
+     check_optflags -fno-tree-vectorize
+     check_cflags -Werror=format-security
+     check_cflags -Werror=implicit-function-declaration
+-    check_cflags -Werror=missing-prototypes
+     check_cflags -Werror=return-type
+     check_cflags -Werror=vla
+     check_cflags -Wformat