summaryrefslogtreecommitdiff
path: root/media-video/pipewire/files/pipewire-0.3.25-fix-docdir-path.patch
blob: 9c7a55c95e2615d3b835cb1cc4b36c037e6bfe5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff --git a/doc/meson.build b/doc/meson.build
index 05c7ed35..ce9b52ea 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -24,11 +24,14 @@ doxyfile = configure_file(input: 'Doxyfile.in',
                           output: 'Doxyfile',
                           configuration: doxyfile_conf)
 
-docdir = join_paths(pipewire_datadir, 'doc')
+docdir = get_option('docdir')
+if docdir == ''
+  docdir = join_paths(pipewire_datadir, 'doc', meson.project_name())
+endif
 
 html_target = custom_target('pipewire-docs',
                             input: [ doxyfile ],
                             output: [ 'html' ],
                             command: [ doxygen, doxyfile ],
                             install: true,
-                            install_dir: join_paths(docdir, 'pipewire'))
+                            install_dir: docdir)
diff --git a/meson_options.txt b/meson_options.txt
index 858283f2..d51e693f 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,3 +1,6 @@
+option('docdir',
+	type : 'string',
+	description : 'Directory for installing documentation to (defaults to pipewire_datadir/doc/meson.project_name() )')
 option('docs',
        description: 'Build documentation',
        type: 'feature',