diff options
-rw-r--r-- | meta-oe/recipes-multimedia/mplayer/libplacebo/0001-Fix-compiling-demos-without-nuklear.patch | 40 | ||||
-rw-r--r-- | meta-oe/recipes-multimedia/mplayer/libplacebo/0001-meson-add-glslang-lib-for-15.0.0-linking.patch | 34 | ||||
-rw-r--r-- | meta-oe/recipes-multimedia/mplayer/libplacebo_7.351.0.bb (renamed from meta-oe/recipes-multimedia/mplayer/libplacebo_7.349.0.bb) | 6 |
3 files changed, 2 insertions, 78 deletions
diff --git a/meta-oe/recipes-multimedia/mplayer/libplacebo/0001-Fix-compiling-demos-without-nuklear.patch b/meta-oe/recipes-multimedia/mplayer/libplacebo/0001-Fix-compiling-demos-without-nuklear.patch deleted file mode 100644 index bd849a75dd..0000000000 --- a/meta-oe/recipes-multimedia/mplayer/libplacebo/0001-Fix-compiling-demos-without-nuklear.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From ad0bbc5099d99bbb0c914b39cb5ab4920fd6eeda Mon Sep 17 00:00:00 2001 | ||
2 | From: Gyorgy Sarvari <skandigraun@gmail.com> | ||
3 | Date: Sun, 16 Feb 2025 14:23:40 +0100 | ||
4 | Subject: [PATCH] Fix compiling demos without nuklear | ||
5 | |||
6 | Demos can't be compiled if nuklear headers are not present, because | ||
7 | the implementation of parse_args function is guarded by HAVE_NUKLEAR macro. | ||
8 | |||
9 | To allow compiling demos without the Nuklear headers, move the implementation | ||
10 | outside of this ifdef. | ||
11 | |||
12 | Upstream-Status: Submitted [https://github.com/haasn/libplacebo/pull/315] | ||
13 | --- | ||
14 | demos/settings.c | 6 +++--- | ||
15 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
16 | |||
17 | diff --git a/demos/settings.c b/demos/settings.c | ||
18 | index 197e8b7e..73f0e5b9 100644 | ||
19 | --- a/demos/settings.c | ||
20 | +++ b/demos/settings.c | ||
21 | @@ -14,9 +14,6 @@ | ||
22 | #define PL_BASENAME basename | ||
23 | #endif | ||
24 | |||
25 | -#ifdef HAVE_NUKLEAR | ||
26 | -#include "ui.h" | ||
27 | - | ||
28 | bool parse_args(struct plplay_args *args, int argc, char *argv[]) | ||
29 | { | ||
30 | static struct option long_options[] = { | ||
31 | @@ -89,6 +86,9 @@ error: | ||
32 | return false; | ||
33 | } | ||
34 | |||
35 | +#ifdef HAVE_NUKLEAR | ||
36 | +#include "ui.h" | ||
37 | + | ||
38 | static void add_hook(struct plplay *p, const struct pl_hook *hook, const char *path) | ||
39 | { | ||
40 | if (!hook) | ||
diff --git a/meta-oe/recipes-multimedia/mplayer/libplacebo/0001-meson-add-glslang-lib-for-15.0.0-linking.patch b/meta-oe/recipes-multimedia/mplayer/libplacebo/0001-meson-add-glslang-lib-for-15.0.0-linking.patch deleted file mode 100644 index 8d784da0cc..0000000000 --- a/meta-oe/recipes-multimedia/mplayer/libplacebo/0001-meson-add-glslang-lib-for-15.0.0-linking.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From d18a23cc275576bcefbdcc179d08ae643eeb3f3e Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <kasper93@gmail.com> | ||
3 | Date: Mon, 2 Dec 2024 17:10:00 +0100 | ||
4 | Subject: [PATCH] meson: add glslang lib for 15.0.0 linking | ||
5 | |||
6 | Glslang 15.0.0 moved some code around, add also linking to glslang, | ||
7 | while this is not needed for older versions, it will still work. | ||
8 | |||
9 | Unfortunately CMake config embedded in distributions is not usable | ||
10 | without installing additional package like glslang-tools, because at | ||
11 | least Ubuntu splits it. On Arch it would work, but generally the CMake | ||
12 | config require cmake binary to work also, so let's keep it as-is for | ||
13 | now. | ||
14 | |||
15 | Upstream-Status: Backport [https://github.com/haasn/libplacebo/commit/056b852018db04aa2ebc0982e27713afcea8106b] | ||
16 | --- | ||
17 | src/glsl/meson.build | 4 ++++ | ||
18 | 1 file changed, 4 insertions(+) | ||
19 | |||
20 | diff --git a/src/glsl/meson.build b/src/glsl/meson.build | ||
21 | index 5a881960..8fb5e699 100644 | ||
22 | --- a/src/glsl/meson.build | ||
23 | +++ b/src/glsl/meson.build | ||
24 | @@ -39,6 +39,10 @@ elif not glslang_req.disabled() | ||
25 | |||
26 | glslang_deps += spirv | ||
27 | |||
28 | + # Glslang 15.0.0 moved some code around, add also linking to glslang, while | ||
29 | + # this is not needed for older versions, it will still work. | ||
30 | + glslang_deps += cxx.find_library('glslang', required: required, static: static) | ||
31 | + | ||
32 | if static | ||
33 | glslang_deps += [ | ||
34 | # Always required for static linking | ||
diff --git a/meta-oe/recipes-multimedia/mplayer/libplacebo_7.349.0.bb b/meta-oe/recipes-multimedia/mplayer/libplacebo_7.351.0.bb index 6431ab3dcf..272e293fd4 100644 --- a/meta-oe/recipes-multimedia/mplayer/libplacebo_7.349.0.bb +++ b/meta-oe/recipes-multimedia/mplayer/libplacebo_7.351.0.bb | |||
@@ -4,10 +4,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=435ed639f84d4585d93824e7da3d85da" | |||
4 | 4 | ||
5 | DEPENDS += "fastfloat glad-native python3-mako-native python3-jinja2-native vulkan-headers" | 5 | DEPENDS += "fastfloat glad-native python3-mako-native python3-jinja2-native vulkan-headers" |
6 | 6 | ||
7 | SRC_URI = "git://code.videolan.org/videolan/libplacebo.git;protocol=https;branch=v7.349 \ | 7 | SRC_URI = "git://code.videolan.org/videolan/libplacebo.git;protocol=https;branch=v7.351" |
8 | file://0001-meson-add-glslang-lib-for-15.0.0-linking.patch \ | 8 | SRCREV = "3188549fba13bbdf3a5a98de2a38c2e71f04e21e" |
9 | file://0001-Fix-compiling-demos-without-nuklear.patch" | ||
10 | SRCREV = "1fd3c7bde7b943fe8985c893310b5269a09b46c5" | ||
11 | 9 | ||
12 | inherit meson pkgconfig | 10 | inherit meson pkgconfig |
13 | 11 | ||