From f760143c2238cc6d0efbc76ab64786d7bf481645 Mon Sep 17 00:00:00 2001 From: "Igor V. Kovalenko" Date: Mon, 19 Apr 2021 20:02:19 +0300 Subject: [PATCH] build-sys: meson: do not install manpages for disabled parts Part-of: --- man/meson.build | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/man/meson.build b/man/meson.build index 3f79890f9..31c581a8f 100644 --- a/man/meson.build +++ b/man/meson.build @@ -17,11 +17,21 @@ endif manpages += [ ['pacat', '1', ['paplay', 'parec', 'parecord', 'pamon']], ['pactl', '1'], - ['padsp', '1'], - ['pax11publish', '1'], ['pulse-client.conf', '5'], ] +if cdata.has('HAVE_OSS_WRAPPER') + manpages += [ + ['padsp', '1'], + ] +endif + +if x11_dep.found() + manpages += [ + ['pax11publish', '1'], + ] +endif + # FIXME: Add esdcompat if HAVE_ESOUND #manpages += ['esdcompat', '1'],