void-packages/srcpkgs/pipewire/patches/remove-dependency-on-system...

41 lines
1.4 KiB
Diff

From 005e518af7e6bc116a78187d4221d6fd70621c41 Mon Sep 17 00:00:00 2001
From: maxice8 <thinkabit.ukim@gmail.com>
Date: Thu, 22 Nov 2018 18:07:53 -0200
Subject: [PATCH] meson: don't add systemd_dep to dependencies if systemd
option is false.
---
src/modules/meson.build | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/modules/meson.build b/src/modules/meson.build
index 4dcb6e59..619ca2ec 100644
--- src/modules/meson.build
+++ src/modules/meson.build
@@ -71,6 +71,12 @@ pipewire_module_link_factory = shared_library('pipewire-module-link-factory',
# dependencies : [glib_dep, gio_dep, mathlib, dl_lib, pipewire_dep],
#)
+pipewire_module_protocol_native_deps = [mathlib, dl_lib, pipewire_dep]
+
+if get_option('systemd')
+ pipewire_module_protocol_native_deps += systemd_dep
+endif
+
pipewire_module_protocol_native = shared_library('pipewire-module-protocol-native',
[ 'module-protocol-native.c',
'module-protocol-native/local-socket.c',
@@ -81,7 +87,7 @@ pipewire_module_protocol_native = shared_library('pipewire-module-protocol-nativ
include_directories : [configinc, spa_inc],
install : true,
install_dir : modules_install_dir,
- dependencies : [mathlib, dl_lib, pipewire_dep, systemd_dep],
+ dependencies : pipewire_module_protocol_native_deps,
)
pipewire_module_audio_dsp = shared_library('pipewire-module-audio-dsp',
--
2.19.2