<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1414084014a22bff509ac1d84145f171fdef323f">https://github.com/macports/macports-ports/commit/1414084014a22bff509ac1d84145f171fdef323f</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 1414084 VLC, libVLC: fix build against new libx264
</span>1414084 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 1414084014a22bff509ac1d84145f171fdef323f
</span>Author: kencu <ken.cunningham.webuse@gmail.com>
AuthorDate: Sun Feb 17 13:26:23 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> VLC, libVLC: fix build against new libx264
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> minor API change
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/58073
</span>---
multimedia/VLC/Portfile | 4 ++++
multimedia/VLC/files/patch-modules-codec-x264-new-api.diff | 13 +++++++++++++
2 files changed, 17 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/VLC/Portfile b/multimedia/VLC/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e94f960..5065591 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/multimedia/VLC/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/VLC/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -163,6 +163,10 @@ if {(${subport} eq ${name}) || (${subport} eq "lib${name}")} {
</span> patchfiles-append \
patch-ffmpeg4-compat.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # libx264 api changed slightly
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-modules-codec-x264-new-api.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-patch {
if {[string match *clang* ${configure.cxx}] && ${configure.cxx_stdlib} == "libc++"} {
reinplace "s:-lstdc\+\+:-lc++:" \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/VLC/files/patch-modules-codec-x264-new-api.diff b/multimedia/VLC/files/patch-modules-codec-x264-new-api.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..876ef64
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/VLC/files/patch-modules-codec-x264-new-api.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git modules/codec/x264.c modules/codec/x264.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 872269a..3d220c5 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- modules/codec/x264.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ modules/codec/x264.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -847,7 +847,7 @@ static int Open ( vlc_object_t *p_this )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char *psz_profile = var_GetString( p_enc, SOUT_CFG_PREFIX "profile" );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if( psz_profile )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- const int mask = x264_bit_depth > 8 ? X264_CSP_HIGH_DEPTH : 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ const int mask = X264_BIT_DEPTH > 8 ? X264_CSP_HIGH_DEPTH : 0;
</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;'>+ # ifdef MODULE_NAME_IS_x26410b
</span></pre><pre style='margin:0'>
</pre>