<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/9a9cf053afafe23577801bcecfb02b36922f426f">https://github.com/macports/macports-ports/commit/9a9cf053afafe23577801bcecfb02b36922f426f</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 9a9cf053afa xine-lib: Fix build failure with dav1d 1.0.0
</span>9a9cf053afa is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 9a9cf053afafe23577801bcecfb02b36922f426f
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Wed Jan 11 23:42:27 2023 -0600
<span style='display:block; white-space:pre;color:#404040;'> xine-lib: Fix build failure with dav1d 1.0.0
</span>---
multimedia/xine-lib/Portfile | 1 +
multimedia/xine-lib/files/dav1d-1.0.0.patch | 23 +++++++++++++++++++++++
2 files changed, 24 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/xine-lib/Portfile b/multimedia/xine-lib/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index abf2ab8c669..0f73478ec8e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/multimedia/xine-lib/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/xine-lib/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -65,6 +65,7 @@ depends_lib port:a52dec \
</span> port:xorg-xcb-util
patchfiles-append dynamic_lookup-11.patch \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ dav1d-1.0.0.patch \
</span> implicit.patch
post-patch {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/xine-lib/files/dav1d-1.0.0.patch b/multimedia/xine-lib/files/dav1d-1.0.0.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..8be05fe5d6e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/xine-lib/files/dav1d-1.0.0.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,23 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix compatibility with dav1d 1.0.0.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://sourceforge.net/p/xine/tickets/11/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://sourceforge.net/p/xine/xine-lib-1.2/ci/97248a71021428baa49e2b2af34f566a3257452a/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/video_dec/dav1d.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/video_dec/dav1d.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -544,11 +544,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* multithreading */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ncpu = xine_cpu_count();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if DAV1D_API_VERSION_MAJOR > 5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ settings.n_threads = ncpu + 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ xprintf(stream->xine, XINE_VERBOSITY_DEBUG, LOG_MODULE ": "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "Using %d threads\n", settings.n_threads);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ settings.n_frame_threads = (ncpu > 8) ? 4 : (ncpu < 2) ? 1 : ncpu/2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ settings.n_tile_threads = MAX(1, ncpu - settings.n_frame_threads + 1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xprintf(stream->xine, XINE_VERBOSITY_DEBUG, LOG_MODULE ": "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "Using %d frame threads, %d tile threads\n",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ settings.n_frame_threads, settings.n_tile_threads);
</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;'>+ /* dri frame allocator */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ settings.allocator.cookie = this;
</span></pre><pre style='margin:0'>
</pre>