summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2018-03-26 18:42:57 -0400
committerAdam Jackson <ajax@redhat.com>2018-03-27 10:28:33 -0400
commita1e8dc05163956de9ab73e567f86b91cb8790c0f (patch)
tree11d6ba6453043e662d1ebc5fa792ee688f55f333
parent1e0df64738d6924151adbbd4b040df80178cfa6b (diff)
meson: Install man pages
Signed-off-by: Adam Jackson <ajax@redhat.com> Acked-by: Keith Packard <keithp@keithp.com>
-rw-r--r--hw/dmx/meson.build25
-rw-r--r--hw/kdrive/ephyr/meson.build7
-rw-r--r--hw/vfb/meson.build6
-rw-r--r--hw/xfree86/drivers/modesetting/meson.build6
-rw-r--r--hw/xfree86/exa/meson.build6
-rw-r--r--hw/xfree86/fbdevhw/meson.build6
-rw-r--r--hw/xfree86/meson.build42
-rw-r--r--hw/xnest/meson.build6
-rw-r--r--hw/xwin/meson.build7
-rw-r--r--meson.build37
10 files changed, 147 insertions, 1 deletions
diff --git a/hw/dmx/meson.build b/hw/dmx/meson.build
index f2da0c27b..877466eaf 100644
--- a/hw/dmx/meson.build
+++ b/hw/dmx/meson.build
@@ -28,7 +28,30 @@ subdir('input')
subdir('examples')
# XXX: subdir('doc')
# XXX: subdir('doxygen')
-# XXX: subdir('man')
+
+install_man(configure_file(
+ input: 'man/Xdmx.man',
+ output: 'Xdmx.1',
+ configuration: manpage_config,
+))
+
+install_man(configure_file(
+ input: 'config/man/dmxtodmx.man',
+ output: 'dmxtodmx.1',
+ configuration: manpage_config,
+))
+
+install_man(configure_file(
+ input: 'config/man/vdltodmx.man',
+ output: 'vdltodmx.1',
+ configuration: manpage_config,
+))
+
+install_man(configure_file(
+ input: 'config/man/xdmxconfig.man',
+ output: 'xdmxconfig.1',
+ configuration: manpage_config,
+))
dmx_dep = [
common_dep,
diff --git a/hw/kdrive/ephyr/meson.build b/hw/kdrive/ephyr/meson.build
index b48afd612..f8135e914 100644
--- a/hw/kdrive/ephyr/meson.build
+++ b/hw/kdrive/ephyr/meson.build
@@ -61,3 +61,10 @@ executable(
],
install: true,
)
+
+xephyr_man = configure_file(
+ input: 'man/Xephyr.man',
+ output: 'Xephyr.1',
+ configuration: manpage_config,
+)
+install_man(xephyr_man)
diff --git a/hw/vfb/meson.build b/hw/vfb/meson.build
index a0771c3a6..537e96a72 100644
--- a/hw/vfb/meson.build
+++ b/hw/vfb/meson.build
@@ -20,3 +20,9 @@ xvfb_server = executable(
],
install: true,
)
+
+install_man(configure_file(
+ input: 'man/Xvfb.man',
+ output: 'Xvfb.1',
+ configuration: manpage_config,
+))
diff --git a/hw/xfree86/drivers/modesetting/meson.build b/hw/xfree86/drivers/modesetting/meson.build
index c1546f62d..37fd8939f 100644
--- a/hw/xfree86/drivers/modesetting/meson.build
+++ b/hw/xfree86/drivers/modesetting/meson.build
@@ -36,6 +36,12 @@ if gbm_dep.found()
endif
symbol_test_args += join_paths(xorg_build_root, 'drivers', 'modesetting', 'modesetting_drv.so')
+install_man(configure_file(
+ input: 'modesetting.man',
+ output: 'modesetting.4',
+ configuration: manpage_config,
+))
+
test('modesetting symbol test',
xorg_symbol_test,
args: symbol_test_args,
diff --git a/hw/xfree86/exa/meson.build b/hw/xfree86/exa/meson.build
index 5f5cf08a7..75a5d429e 100644
--- a/hw/xfree86/exa/meson.build
+++ b/hw/xfree86/exa/meson.build
@@ -7,3 +7,9 @@ xorg_exa = shared_module('exa',
install: true,
install_dir: module_dir,
)
+
+install_man(configure_file(
+ input: 'man/exa.man',
+ output: 'exa.4',
+ configuration: manpage_config,
+))
diff --git a/hw/xfree86/fbdevhw/meson.build b/hw/xfree86/fbdevhw/meson.build
index 35d66ef2c..f3146f3c9 100644
--- a/hw/xfree86/fbdevhw/meson.build
+++ b/hw/xfree86/fbdevhw/meson.build
@@ -15,3 +15,9 @@ shared_module('fbdevhw',
)
install_data('fbdevhw.h', install_dir: xorgsdkdir)
+
+install_man(configure_file(
+ input: 'man/fbdevhw.man',
+ output: 'fbdevhw.4',
+ configuration: manpage_config,
+))
diff --git a/hw/xfree86/meson.build b/hw/xfree86/meson.build
index c2a26d6a7..4c03aab84 100644
--- a/hw/xfree86/meson.build
+++ b/hw/xfree86/meson.build
@@ -166,3 +166,45 @@ xorgserver_lib = shared_library(
)
xorgserver_dep = declare_dependency(link_with: xorgserver_lib)
+
+install_man(configure_file(
+ input: 'man/Xorg.man',
+ output: 'Xorg.1',
+ configuration: manpage_config,
+))
+
+install_man(configure_file(
+ input: 'man/Xorg.wrap.man',
+ output: 'Xorg.wrap.1',
+ configuration: manpage_config,
+))
+
+install_man(configure_file(
+ input: 'man/Xwrapper.config.man',
+ output: 'Xwrapper.config.5',
+ configuration: manpage_config,
+))
+
+install_man(configure_file(
+ input: 'man/xorg.conf.man',
+ output: 'xorg.conf.5',
+ configuration: manpage_config,
+))
+
+install_man(configure_file(
+ input: 'man/xorg.conf.d.man',
+ output: 'xorg.conf.d.5',
+ configuration: manpage_config,
+))
+
+install_man(configure_file(
+ input: 'utils/man/cvt.man',
+ output: 'cvt.1',
+ configuration: manpage_config,
+))
+
+install_man(configure_file(
+ input: 'utils/man/gtf.man',
+ output: 'gtf.1',
+ configuration: manpage_config,
+))
diff --git a/hw/xnest/meson.build b/hw/xnest/meson.build
index adcf5e59c..f143aff71 100644
--- a/hw/xnest/meson.build
+++ b/hw/xnest/meson.build
@@ -35,3 +35,9 @@ executable(
c_args: '-DHAVE_XNEST_CONFIG_H',
install: true,
)
+
+install_man(configure_file(
+ input: 'man/Xnest.man',
+ output: 'Xnest.1',
+ configuration: manpage_config,
+))
diff --git a/hw/xwin/meson.build b/hw/xwin/meson.build
index bee4a46a4..1bf9891ed 100644
--- a/hw/xwin/meson.build
+++ b/hw/xwin/meson.build
@@ -165,3 +165,10 @@ install_data(
'system.XWinrc',
install_dir: join_paths(get_option('sysconfdir'), 'X11')
)
+
+xwin_man = configure_file(
+ input: 'man/XWin.man',
+ output: 'XWin.1',
+ configuration: manpage_config,
+)
+install_man(xwin_man)
diff --git a/meson.build b/meson.build
index 216086ef2..cd4f6fc63 100644
--- a/meson.build
+++ b/meson.build
@@ -464,6 +464,37 @@ top_srcdir_inc = include_directories('.')
serverconfigdir = join_paths(get_option('libdir'), 'xorg')
+manpage_config = configuration_data()
+manpage_config.set('vendorversion', 'PACKAGE_STRING XORG_MAN_PAGE')
+manpage_config.set('xorgversion', 'PACKAGE_STRING XORG_MAN_PAGE')
+manpage_config.set('xservername', 'Xorg')
+manpage_config.set('xconfigfile', 'xorg.conf')
+manpage_config.set('projectroot', get_option('prefix'))
+manpage_config.set('apploaddir', '$(appdefaultdir)')
+manpage_config.set('appmansuffix', '1')
+manpage_config.set('drivermansuffix', '4')
+manpage_config.set('adminmansuffix', '8')
+manpage_config.set('libmansuffix', '3')
+manpage_config.set('miscmansuffix', '7')
+manpage_config.set('filemansuffix', '5')
+manpage_config.set('logdir', log_dir)
+manpage_config.set('datadir', get_option('datadir'))
+manpage_config.set('mandir', get_option('mandir'))
+manpage_config.set('sysconfdir', get_option('sysconfdir'))
+manpage_config.set('xconfigdir', 'xorg.conf.d')
+manpage_config.set('xkbdir', xkb_dir)
+manpage_config.set('XKB_DFLT_RULES', get_option('xkb_default_rules'))
+manpage_config.set('XKB_DFLT_MODEL', get_option('xkb_default_model'))
+manpage_config.set('XKB_DFLT_LAYOUT', get_option('xkb_default_layout'))
+manpage_config.set('XKB_DFLT_VARIANT', get_option('xkb_default_variant'))
+manpage_config.set('XKB_DFLT_OPTIONS', get_option('xkb_default_options'))
+manpage_config.set('bundle_id_prefix', '...')
+manpage_config.set('modulepath', join_paths(get_option('prefix'), module_dir))
+# wtf doesn't this work
+# manpage_config.set('suid_wrapper_dir', join_paths(get_option('prefix'), libexecdir))
+manpage_config.set('suid_wrapper_dir', join_paths(get_option('prefix'), 'libexec'))
+manpage_config.set('default_font_path', 'catalogue:/etc/X11/fontpath.d:built-ins')
+
# Include must come first, as it sets up dix-config.h
subdir('include')
@@ -527,3 +558,9 @@ libxserver += libxserver_dri3
subdir('hw')
subdir('test')
+
+install_man(configure_file(
+ input: 'man/Xserver.man',
+ output: 'Xserver.1',
+ configuration: manpage_config,
+))