diff --git a/meson.build b/meson.build index 9a68a1c7e..19fef1a77 100644 --- a/meson.build +++ b/meson.build @@ -33,6 +33,11 @@ datadir = join_paths(prefix, get_option('datadir')) localstatedir = join_paths(prefix, get_option('localstatedir')) sysconfdir = join_paths(prefix, get_option('sysconfdir')) +pulsedspdir = get_option('pulsedspdir') +if pulsedspdir == '' + join_paths(prefix, get_option('libdir'), 'pulseaudio') +endif + cc = meson.get_compiler('c') cdata = configuration_data() @@ -238,7 +243,7 @@ cdata.set('DISABLE_ORC', 1) if cc.has_header('sys/soundcard.h') cdata.set('HAVE_OSS_OUTPUT', 1) cdata.set('HAVE_OSS_WRAPPER', 1) - cdata.set_quoted('PULSEDSP_LOCATION', join_paths(prefix, get_option('libdir'), 'pulseaudio')) + cdata.set_quoted('PULSEDSP_LOCATION', pulsedspdir) endif # X11 deps, we don't define any HAVE_XXX for these one diff --git a/meson_options.txt b/meson_options.txt index 233a1846b..f8462dd9c 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -11,3 +11,6 @@ option('database', type : 'combo', value : 'tdb', choices : [ 'gdbm', 'tdb', 'simple' ], description : 'Database backend') +option('pulsedspdir', + type : 'string', + description : 'Specify location where OSS wrapper will be installed') diff --git a/src/utils/meson.build b/src/utils/meson.build index 638d8e2f1..e0ddf8d68 100644 --- a/src/utils/meson.build +++ b/src/utils/meson.build @@ -69,6 +69,7 @@ if cc.has_header('sys/soundcard.h') libpulsedsp = shared_library('pulsedsp', libpulsecommon_sources, install: true, + install_dir : pulsedspdir, include_directories : [configinc, topinc], link_with : [libpulsecommon, libpulse], link_args : ['-ldl'],