<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/0f6d11daecb8e8c6bd6673703a3417cd1f660a1d">https://github.com/macports/macports-ports/commit/0f6d11daecb8e8c6bd6673703a3417cd1f660a1d</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 0f6d11daecb ffmpeg-devel: patch for __builtin_available failures See: https://trac.macports.org/ticket/64469
</span>0f6d11daecb is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 0f6d11daecb8e8c6bd6673703a3417cd1f660a1d
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Sun Mar 27 12:42:35 2022 -0400
<span style='display:block; white-space:pre;color:#404040;'> ffmpeg-devel: patch for __builtin_available failures
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/64469
</span>---
multimedia/ffmpeg-devel/Portfile | 3 +-
.../files/patch-avutil-builtin-available.diff | 135 +++++++++++++++++++++
2 files changed, 137 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/ffmpeg-devel/Portfile b/multimedia/ffmpeg-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d812b144fbe..d156a7745e8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/multimedia/ffmpeg-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/ffmpeg-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -19,7 +19,7 @@ conflicts ffmpeg
</span> # Please increase the revision of mpv whenever ffmpeg's version is updated.
epoch 0
version 5.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> license LGPL-2.1+
categories multimedia
maintainers {devans @dbevans} {jeremyhu @jeremyhu} {mascguy @mascguy} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -95,6 +95,7 @@ depends_lib port:lame \
</span> port:zlib
patchfiles-append patch-libavcodec-audiotoolboxenc.c.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-avutil-builtin-available.diff
</span>
# enable auto configure of asm optimizations
# requires Xcode 3.1 or better on Leopard
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/ffmpeg-devel/files/patch-avutil-builtin-available.diff b/multimedia/ffmpeg-devel/files/patch-avutil-builtin-available.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..864972edffd
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/ffmpeg-devel/files/patch-avutil-builtin-available.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,135 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# =============================================================================
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Source: https://www.mail-archive.com/ffmpeg-devel@ffmpeg.org/msg127034.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -----------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# From: Limin Wang <lance.lmw...@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# OSX version: 10.11.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Apple LLVM version 8.0.0 (clang-800.0.42.1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Target: x86_64-apple-darwin15.6.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# =============================================================================
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libavutil/hwcontext_videotoolbox.c.old 2022-01-14 13:45:40.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libavutil/hwcontext_videotoolbox.c 2022-03-27 12:26:48.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -415,12 +415,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ switch (space) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_SPC_BT2020_CL:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_SPC_BT2020_NCL:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (__builtin_available(macOS 10.11, iOS 9, *))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return kCVImageBufferYCbCrMatrix_ITU_R_2020;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return kCVImageBufferYCbCrMatrix_ITU_R_2020;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return CFSTR("ITU_R_2020");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return CFSTR("ITU_R_2020");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_SPC_BT470BG:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_SPC_SMPTE170M:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return kCVImageBufferYCbCrMatrix_ITU_R_601_4;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -428,12 +429,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return kCVImageBufferYCbCrMatrix_ITU_R_709_2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_SPC_SMPTE240M:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return kCVImageBufferYCbCrMatrix_SMPTE_240M_1995;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (__builtin_available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return CVYCbCrMatrixGetStringForIntegerCodePoint(space);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return kCVImageBufferTransferFunction_ITU_R_2100_HLG;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return CFSTR("ITU_R_2100_HLG");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_SPC_UNSPECIFIED:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return NULL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -441,24 +443,25 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CFStringRef av_map_videotoolbox_color_primaries_from_av(enum AVColorPrimaries pri)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ switch (pri) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_PRI_BT2020:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if HAVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (__builtin_available(macOS 10.11, iOS 9, *))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return kCVImageBufferColorPrimaries_ITU_R_2020;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return kCVImageBufferColorPrimaries_ITU_R_2020;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return CFSTR("ITU_R_2020");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_PRI_BT709:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return kCVImageBufferColorPrimaries_ITU_R_709_2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_PRI_SMPTE170M:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return kCVImageBufferColorPrimaries_SMPTE_C;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_PRI_BT470BG:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return kCVImageBufferColorPrimaries_EBU_3213;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (__builtin_available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return CVColorPrimariesGetStringForIntegerCodePoint(pri);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return kCVImageBufferTransferFunction_ITU_R_2100_HLG;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return CFSTR("ITU_R_2100_HLG");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_PRI_UNSPECIFIED:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return NULL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -467,45 +470,46 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ switch (trc) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_TRC_SMPTE2084:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (__builtin_available(macOS 10.13, iOS 11, *))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return CFSTR("SMPTE_ST_2084_PQ");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_TRC_BT2020_10:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_TRC_BT2020_12:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (__builtin_available(macOS 10.11, iOS 9, *))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return kCVImageBufferTransferFunction_ITU_R_2020;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return kCVImageBufferTransferFunction_ITU_R_2020;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return CFSTR("ITU_R_2020");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_TRC_BT709:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return kCVImageBufferTransferFunction_ITU_R_709_2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_TRC_SMPTE240M:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return kCVImageBufferTransferFunction_SMPTE_240M_1995;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_TRC_SMPTE428:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (__builtin_available(macOS 10.12, iOS 10, *))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return kCVImageBufferTransferFunction_SMPTE_ST_428_1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return kCVImageBufferTransferFunction_SMPTE_ST_428_1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return CFSTR("SMPTE_ST_428_1");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_TRC_ARIB_STD_B67:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (__builtin_available(macOS 10.13, iOS 11, *))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return kCVImageBufferTransferFunction_ITU_R_2100_HLG;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return kCVImageBufferTransferFunction_ITU_R_2100_HLG;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return CFSTR("ITU_R_2100_HLG");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_TRC_GAMMA22:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return kCVImageBufferTransferFunction_UseGamma;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_TRC_GAMMA28:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return kCVImageBufferTransferFunction_UseGamma;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (__builtin_available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return CVTransferFunctionGetStringForIntegerCodePoint(trc);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return kCVImageBufferTransferFunction_ITU_R_2100_HLG;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return CFSTR("ITU_R_2100_HLG");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case AVCOL_TRC_UNSPECIFIED:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return NULL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span></pre><pre style='margin:0'>
</pre>