2021-11-11 15:00:57 +01:00
|
|
|
From: Antonio Larrosa <alarrosa@suse.com>
|
|
|
|
Subject: Reduce the minimum required meson version
|
|
|
|
|
|
|
|
With this, we can build wireplumber in SLE 15 SP3/Leap 15.3
|
|
|
|
which only have meson 0.54
|
|
|
|
|
2022-07-06 17:36:55 +02:00
|
|
|
Index: wireplumber-0.4.11/meson.build
|
2021-11-03 14:04:02 +01:00
|
|
|
===================================================================
|
2022-07-06 17:36:55 +02:00
|
|
|
--- wireplumber-0.4.11.orig/meson.build
|
|
|
|
+++ wireplumber-0.4.11/meson.build
|
2022-05-13 09:47:14 +02:00
|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
project('wireplumber', ['c'],
|
2022-07-06 17:36:55 +02:00
|
|
|
version : '0.4.11',
|
2021-11-03 14:04:02 +01:00
|
|
|
license : 'MIT',
|
2022-05-13 09:47:14 +02:00
|
|
|
- meson_version : '>= 0.59.0',
|
2021-11-03 14:04:02 +01:00
|
|
|
+ meson_version : '>= 0.54.0',
|
|
|
|
default_options : [
|
2022-05-13 09:47:14 +02:00
|
|
|
'warning_level=1',
|
|
|
|
'buildtype=debugoptimized',
|
|
|
|
@@ -42,7 +42,11 @@ spa_dep = dependency('libspa-0.2', versi
|
2022-07-06 17:36:55 +02:00
|
|
|
pipewire_dep = dependency('libpipewire-0.3', version: '>= 0.3.52')
|
2022-05-13 09:47:14 +02:00
|
|
|
mathlib = cc.find_library('m')
|
|
|
|
threads_dep = dependency('threads')
|
|
|
|
-libintl_dep = dependency('intl')
|
|
|
|
+libintl_dep = dependency('', required: false)
|
|
|
|
+
|
|
|
|
+if not cc.has_function('ngettext')
|
|
|
|
+ libintl_dep = cc.find_library('intl')
|
|
|
|
+endif
|
|
|
|
|
|
|
|
system_lua = get_option('system-lua')
|
|
|
|
if system_lua
|
|
|
|
@@ -131,8 +135,8 @@ endif
|
2021-11-03 14:04:02 +01:00
|
|
|
|
|
|
|
conf_uninstalled = configuration_data()
|
|
|
|
conf_uninstalled.set('MESON', '')
|
|
|
|
-conf_uninstalled.set('MESON_SOURCE_ROOT', meson.project_source_root())
|
|
|
|
-conf_uninstalled.set('MESON_BUILD_ROOT', meson.project_build_root())
|
|
|
|
+conf_uninstalled.set('MESON_SOURCE_ROOT', meson.source_root())
|
|
|
|
+conf_uninstalled.set('MESON_BUILD_ROOT', meson.build_root())
|
|
|
|
|
|
|
|
wp_uninstalled = configure_file(
|
|
|
|
input : 'wp-uninstalled.sh',
|