archrelease: copy trunk to extra-x86_64
[arch-packages.git] / gstreamer / repos / extra-x86_64 / 0001-meson-Allow-building-with-system-orc.patch
blob908174a48f802842f75f2ba21b1c3805febac73a
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
3 Date: Mon, 6 Jun 2022 00:29:08 +0200
4 Subject: [PATCH] meson: Allow building with system orc
6 ---
7 meson.build | 8 +++++++-
8 1 file changed, 7 insertions(+), 1 deletion(-)
10 diff --git a/meson.build b/meson.build
11 index 617ba8a41461..509565e90891 100644
12 --- a/meson.build
13 +++ b/meson.build
14 @@ -112,7 +112,13 @@ elif build_system == 'darwin'
15 subproject('macos-bison-binary')
16 endif
18 -orc_subproject = subproject('orc', required: get_option('orc'))
19 +orc_subproject_required = get_option('orc')
20 +if orc_subproject_required.allowed()
21 + # Download if possible, otherwise use system orc
22 + orc_subproject_required = false
23 +endif
25 +orc_subproject = subproject('orc', required: orc_subproject_required)
27 foreach custom_subproj: get_option('custom_subprojects').split(',')
28 if custom_subproj != ''