1 diff --git a/meson.build b/meson.build
2 index b6b4553b..f21c29d8 100644
5 @@ -37,7 +37,10 @@ pipewire_localedir = prefix / get_option('localedir')
6 pipewire_sysconfdir = prefix / get_option('sysconfdir')
8 pipewire_configdir = pipewire_sysconfdir / 'pipewire'
9 -pipewire_confdatadir = pipewire_datadir / 'pipewire'
10 +pipewire_confdatadir = get_option('pipewire_confdata_dir')
11 +if pipewire_confdatadir == ''
12 + pipewire_confdatadir = pipewire_datadir / 'pipewire'
14 modules_install_dir = pipewire_libdir / pipewire_name
16 if host_machine.system() == 'linux'
17 diff --git a/meson_options.txt b/meson_options.txt
18 index 9bc33fcd..e4bd2dc1 100644
19 --- a/meson_options.txt
20 +++ b/meson_options.txt
21 @@ -61,6 +61,9 @@ option('jack-devel',
22 option('libjack-path',
23 description: 'Where to install the libjack.so library',
25 +option('pipewire_confdata_dir',
27 + description: 'Directory for pipewire default configuration (defaults to /usr/share/pipewire)')
29 description: 'Enable spa plugins integration',