From 328b8b89b9ef111c4011a0209de29f665717c3ef Mon Sep 17 00:00:00 2001 From: OscarL Date: Sun, 14 May 2023 13:58:14 -0300 Subject: [PATCH] mpv: update to 0.35.1, minor fixups. (#8630) * mpv: update to 0.35.1, minor fixups. - Added an .hvif file. Converted from "etc/mpv-gradient.svg". - Added application resources (signature, icon, etc). - Build/install man pages. Prompted by #8626. Still not working with Tracker's "Open with", as our mpv needs further patching to handle that usage. Thus, the "resource file_types message" in the ".rdef.in" file has been left commented out for now (to avoid misleading users into thinking it will work). * mpv: move binary to $commandBinDir So we have /bin/mpv instead of /bin/mpv-x86 symlinking to /bin/x86/mpv Also: remove an unneeded "metainfo" data folder. --- media-video/mpv/additional-files/mpv.hvif | Bin 0 -> 484 bytes media-video/mpv/additional-files/mpv.rdef.in | 40 +++++++++++++++++ .../{mpv-0.34.0.recipe => mpv-0.35.1.recipe} | 41 +++++++++++++++--- ...pv-0.34.0.patchset => mpv-0.35.1.patchset} | 25 ++++++----- 4 files changed, 87 insertions(+), 19 deletions(-) create mode 100644 media-video/mpv/additional-files/mpv.hvif create mode 100644 media-video/mpv/additional-files/mpv.rdef.in rename media-video/mpv/{mpv-0.34.0.recipe => mpv-0.35.1.recipe} (77%) rename media-video/mpv/patches/{mpv-0.34.0.patchset => mpv-0.35.1.patchset} (66%) diff --git a/media-video/mpv/additional-files/mpv.hvif b/media-video/mpv/additional-files/mpv.hvif new file mode 100644 index 0000000000000000000000000000000000000000..6bdc6f79ec7904252d4797ca118464ef95c1e57c GIT binary patch literal 484 zcmXAhzf0>-6vuC3n}=DXB04;^f-d4FXr+yqNo)NvXcu)7QL921b?Tr9MIOAx!J&mB z=%R%#X;YhP%(=$iU`ug!aF7l~`WJ`}F*kwp<@-5&zvm>k_ICU{>gAO(f6s?|9#YIe%kq)0!t@$E0bqq<+Cvd=1+SaXV8>gUwQ|1*;>0gk=1>M30Gl>gc zSN~!T4c=!gKc093hs`cynf!zEr@5zZ& mpv.rdef + + addResourcesToBinaries mpv.rdef $commandBinDir/mpv + mimeset -f $commandBinDir/mpv prepareInstalledDevelLibs libmpv diff --git a/media-video/mpv/patches/mpv-0.34.0.patchset b/media-video/mpv/patches/mpv-0.35.1.patchset similarity index 66% rename from media-video/mpv/patches/mpv-0.34.0.patchset rename to media-video/mpv/patches/mpv-0.35.1.patchset index 0f4241d5f..e77581422 100644 --- a/media-video/mpv/patches/mpv-0.34.0.patchset +++ b/media-video/mpv/patches/mpv-0.35.1.patchset @@ -1,11 +1,11 @@ -From 010c0d38a54c7da2deeeb9efdfaf7239172caf7d Mon Sep 17 00:00:00 2001 +From 2151433a8dd46a2be590b1c94eb4b8b9b4b94caf Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Thu, 2 Jan 2020 21:16:37 +0300 Subject: disable setlocale for haiku diff --git a/player/main.c b/player/main.c -index e039f61..b4e941c 100644 +index 1c1cdf9..c10288d 100644 --- a/player/main.c +++ b/player/main.c @@ -235,6 +235,7 @@ static bool check_locale(void) @@ -26,28 +26,29 @@ index e039f61..b4e941c 100644 if (!enable_talloc) enable_talloc = HAVE_TA_LEAK_REPORT ? "1" : "0"; -- -2.30.2 +2.37.3 -From 4b9b3b1d07674b92d371ee3c784571ad82459f5f Mon Sep 17 00:00:00 2001 -From: Sergei Reznikov -Date: Tue, 2 Nov 2021 12:19:55 +0300 +From 7f6dee804e9571b35f72431b8da3e77f6cc04224 Mon Sep 17 00:00:00 2001 +From: Oscar Lesta +Date: Thu, 11 May 2023 21:00:50 -0300 Subject: Fix build on Haiku +Just adapting previous patch from Sergei Reznikov. diff --git a/common/stats.c b/common/stats.c -index ce50bdc..79f1343 100644 +index 4b40938..4f80aba 100644 --- a/common/stats.c +++ b/common/stats.c -@@ -69,7 +69,7 @@ struct stat_entry { - // Overflows only after I'm dead. +@@ -70,7 +70,7 @@ struct stat_entry { static int64_t get_thread_cpu_time_ns(pthread_t thread) { --#if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0 && defined(_POSIX_THREAD_CPUTIME) -+#if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0 && defined(_POSIX_THREAD_CPUTIME) && !defined(__HAIKU__) + #if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0 && defined(_POSIX_THREAD_CPUTIME) && \ +- !HAVE_WIN32_INTERNAL_PTHREADS ++ !HAVE_WIN32_INTERNAL_PTHREADS && !defined(__HAIKU__) clockid_t id; struct timespec tv; if (pthread_getcpuclockid(thread, &id) == 0 && -- -2.30.2 +2.37.3