diff options
author | Sam James <sam@gentoo.org> | 2023-11-26 23:33:31 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-11-26 23:33:31 +0000 |
commit | 740f2103f4637da2421ff3a5bafe0c5085a36678 (patch) | |
tree | a7180a1703c7f63eb28c75be11aee13b57d55253 /media-video/pipewire | |
parent | dev-lang/perl: perl-cross-1.5 -> perl-cross-1.5.1 for 5.38.1 (diff) | |
download | gentoo-740f2103f4637da2421ff3a5bafe0c5085a36678.tar.gz gentoo-740f2103f4637da2421ff3a5bafe0c5085a36678.tar.bz2 gentoo-740f2103f4637da2421ff3a5bafe0c5085a36678.zip |
media-video/pipewire: fix build w/ USE=-examples
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-video/pipewire')
-rw-r--r-- | media-video/pipewire/files/1.0.0/0001-fix-compile-with-no-examples.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/media-video/pipewire/files/1.0.0/0001-fix-compile-with-no-examples.patch b/media-video/pipewire/files/1.0.0/0001-fix-compile-with-no-examples.patch new file mode 100644 index 000000000000..fee0ac1bc328 --- /dev/null +++ b/media-video/pipewire/files/1.0.0/0001-fix-compile-with-no-examples.patch @@ -0,0 +1,59 @@ +https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3675 +https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/1790 + +From 6b4cdab57a0678e88992fb4e5b216e481b051808 Mon Sep 17 00:00:00 2001 +From: Pauli Virtanen <pav@iki.fi> +Date: Sun, 26 Nov 2023 18:31:43 +0200 +Subject: [PATCH] meson.build: fix compile with -Dexamples=disabled + +--- a/spa/examples/meson.build ++++ b/spa/examples/meson.build +@@ -6,6 +6,10 @@ spa_examples = [ + 'local-v4l2', + ] + ++if not get_option('examples').allowed() ++ subdir_done() ++endif ++ + spa_examples_extra_deps = { + 'local-v4l2': [sdl_dep], + 'local-libcamera': [sdl_dep, libcamera_dep], +--- a/spa/meson.build ++++ b/spa/meson.build +@@ -113,6 +113,4 @@ endif + + subdir('tools') + subdir('tests') +-if get_option('examples').allowed() +- subdir('examples') +-endif ++subdir('examples') +--- a/src/examples/meson.build ++++ b/src/examples/meson.build +@@ -22,6 +22,10 @@ examples = [ + 'local-v4l2', + ] + ++if not get_option('examples').allowed() ++ subdir_done() ++endif ++ + examples_extra_deps = { + 'video-src-fixate': [drm_dep], + 'video-play': [sdl_dep], +--- a/src/meson.build ++++ b/src/meson.build +@@ -3,9 +3,7 @@ subdir('pipewire') + subdir('daemon') + subdir('tools') + subdir('modules') +-if get_option('examples').allowed() +- subdir('examples') +-endif ++subdir('examples') + if get_option('tests').allowed() + subdir('tests') + endif +-- +GitLab |