Date: Sun, 13 Nov 2022 23:12:29 GMT From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: ac9b20c88deb - main - multimedia/minitube: Fix build with mpv-0.35 Message-ID: <202211132312.2ADNCTfJ002568@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=ac9b20c88deb90ca6604c7a07f4e36f826bffd6c commit ac9b20c88deb90ca6604c7a07f4e36f826bffd6c Author: VVD <vvd@unislabs.com> AuthorDate: 2022-11-13 21:05:53 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-11-13 23:12:27 +0000 multimedia/minitube: Fix build with mpv-0.35 PR: 267115 --- multimedia/minitube/Makefile | 4 ++-- .../files/patch-lib_media_src_mpv_mpvwidget.cpp | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/multimedia/minitube/Makefile b/multimedia/minitube/Makefile index b1c2ff2f3740..9bdb42e834de 100644 --- a/multimedia/minitube/Makefile +++ b/multimedia/minitube/Makefile @@ -1,6 +1,6 @@ PORTNAME= minitube DISTVERSION= 3.9.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= multimedia www MAINTAINER= yuri@FreeBSD.org @@ -10,7 +10,7 @@ WWW= https://flavio.tordini.org/minitube LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= libmpv.so.1:multimedia/mpv034 # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267115 +LIB_DEPENDS= libmpv.so.2:multimedia/mpv USES= compiler:c++11-lang gl qmake qt:5 USE_GITHUB= yes diff --git a/multimedia/minitube/files/patch-lib_media_src_mpv_mpvwidget.cpp b/multimedia/minitube/files/patch-lib_media_src_mpv_mpvwidget.cpp new file mode 100644 index 000000000000..a6a48f27fadb --- /dev/null +++ b/multimedia/minitube/files/patch-lib_media_src_mpv_mpvwidget.cpp @@ -0,0 +1,18 @@ +- workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267115 to allow to build with mpv-0.35 + +diff -Nur lib/media/src/mpv/mpvwidget.cpp.orig lib/media/src/mpv/mpvwidget.cpp +--- lib/media/src/mpv/mpvwidget.cpp.orig ++++ lib/media/src/mpv/mpvwidget.cpp +@@ -30,7 +30,11 @@ + qDebug() << "initializeGL" << nativeParent; + if (nativeParent == nullptr) qFatal("No native parent"); + +- mpv_opengl_init_params gl_init_params{get_proc_address, this, nullptr}; ++ #if MPV_CLIENT_API_VERSION < MPV_MAKE_VERSION(2,0) ++ mpv_opengl_init_params gl_init_params{get_proc_address, this, nullptr}; ++ #else ++ mpv_opengl_init_params gl_init_params{get_proc_address, this}; ++ #endif + mpv_render_param params[]{{MPV_RENDER_PARAM_API_TYPE, (void *)MPV_RENDER_API_TYPE_OPENGL}, + {MPV_RENDER_PARAM_OPENGL_INIT_PARAMS, &gl_init_params}, + {MPV_RENDER_PARAM_INVALID, nullptr},
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211132312.2ADNCTfJ002568>