<pre style='margin:0'>
Chih-Hsuan Yen (yan12125) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/716348fb76b1f6df5ff56c1830478c8d6240c8ce">https://github.com/macports/macports-ports/commit/716348fb76b1f6df5ff56c1830478c8d6240c8ce</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 716348f gpac: fix building on 10.10 or older
</span>716348f is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 716348fb76b1f6df5ff56c1830478c8d6240c8ce
</span>Author: Chih-Hsuan Yen <yan12125@gmail.com>
AuthorDate: Sat Sep 14 18:02:17 2019 +0800
<span style='display:block; white-space:pre;color:#404040;'> gpac: fix building on 10.10 or older
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Ref: https://trac.macports.org/ticket/58979
</span>---
multimedia/gpac/Portfile | 7 ++++-
multimedia/gpac/files/patch-no-hevc-yosemite.diff | 31 +++++++++++++++++++++++
2 files changed, 37 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/gpac/Portfile b/multimedia/gpac/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 076f73d..dbb3d5c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/multimedia/gpac/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/gpac/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,7 +46,12 @@ depends_lib port:a52dec \
</span> port:mesa \
port:xorg-libXv
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-configure.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Though HEVC is officially supported only in 10.13+, the symbol
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# kCMVideoCodecType_HEVC is available in 10.11+ [1][2]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# [1] https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/94933/steps/install-port/logs/stdio
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# [2] https://build.macports.org/builders/ports-10.11_x86_64-builder/builds/94369/steps/install-port/logs/stdio
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-configure.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-no-hevc-yosemite.diff
</span>
post-patch {
reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" ${worksrcpath}/configure
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/gpac/files/patch-no-hevc-yosemite.diff b/multimedia/gpac/files/patch-no-hevc-yosemite.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..f7e4f41
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/gpac/files/patch-no-hevc-yosemite.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,31 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git modules/vtb_decode/vtb_decode.c modules/vtb_decode/vtb_decode.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index af0e9be78..176ce0e2e 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- modules/vtb_decode/vtb_decode.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ modules/vtb_decode/vtb_decode.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -275,6 +275,7 @@ static GF_Err VTBDec_InitDecoder(VTBDec *ctx)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ break;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef AVAILABLE_MAC_OS_X_VERSION_10_11_AND_LATER
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case GPAC_OTI_VIDEO_HEVC:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (gf_list_count(ctx->SPSs) && gf_list_count(ctx->PPSs) && gf_list_count(ctx->VPSs)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ s32 idx;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -426,6 +427,7 @@ static GF_Err VTBDec_InitDecoder(VTBDec *ctx)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gf_free(dsi_data);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ break;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case GPAC_OTI_VIDEO_MPEG2_SIMPLE:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case GPAC_OTI_VIDEO_MPEG2_MAIN:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1548,8 +1550,10 @@ static const char *VTBDec_GetCodecName(GF_BaseDecoder *dec)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ switch (ctx->vtb_type) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case kCMVideoCodecType_H264:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ctx->is_hardware ? "VTB hardware AVC|H264" : "VTB software AVC|H264";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef AVAILABLE_MAC_OS_X_VERSION_10_11_AND_LATER
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case kCMVideoCodecType_HEVC:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ctx->is_hardware ? "VTB hardware HEVC" : "VTB software HEVC";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case kCMVideoCodecType_MPEG2Video:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ctx->is_hardware ? "VTB hardware MPEG-2" : "VTB software MPEG-2";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case kCMVideoCodecType_MPEG4Video:
</span></pre><pre style='margin:0'>
</pre>