Revision: 140826 https://trac.macports.org/changeset/140826 Author: ionic@macports.org Date: 2015-10-04 10:07:09 -0700 (Sun, 04 Oct 2015) Log Message: ----------- ffmpeg-devel: drop -Werror=missing-prototypes for GCC on 10.6 and below. Apple GCC handles this badly. Fixes #48938. Modified Paths: -------------- trunk/dports/multimedia/ffmpeg-devel/Portfile Added Paths: ----------- trunk/dports/multimedia/ffmpeg-devel/files/ trunk/dports/multimedia/ffmpeg-devel/files/patch-configure-no-error-on-missing-prototypes.diff Modified: trunk/dports/multimedia/ffmpeg-devel/Portfile =================================================================== --- trunk/dports/multimedia/ffmpeg-devel/Portfile 2015-10-04 17:06:56 UTC (rev 140825) +++ trunk/dports/multimedia/ffmpeg-devel/Portfile 2015-10-04 17:07:09 UTC (rev 140826) @@ -146,6 +146,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-devel/files/patch-configure-no-error-on-missing-prototypes.diff =================================================================== --- trunk/dports/multimedia/ffmpeg-devel/files/patch-configure-no-error-on-missing-prototypes.diff (rev 0) +++ trunk/dports/multimedia/ffmpeg-devel/files/patch-configure-no-error-on-missing-prototypes.diff 2015-10-04 17:07:09 UTC (rev 140826) @@ -0,0 +1,10 @@ +--- configure.old 2015-09-27 18:43:30.000000000 +0200 ++++ configure 2015-09-27 18:44:18.000000000 +0200 +@@ -5683,7 +5683,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