summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build47
1 files changed, 47 insertions, 0 deletions
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..5b38853
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,47 @@
+project('xorg-sgml-doctools',
+ version: '1.12',
+ meson_version: '>= 0.49.0',
+ license: 'MIT'
+)
+
+datarootdir = get_option('prefix') / get_option('datadir')
+sgmlrootdir = datarootdir / 'sgml'
+sgmlx11dir = sgmlrootdir / 'X11'
+sgmldbsdir = sgmlx11dir / 'dbs'
+
+pc_conf = configuration_data({
+ 'prefix': get_option('prefix'),
+ 'datarootdir': '${prefix}/share',
+ 'sgmlrootdir': '${datarootdir}/sgml',
+ 'PACKAGE_VERSION': meson.project_version()
+})
+configure_file(input: 'xorg-sgml-doctools.pc.in',
+ output: 'xorg-sgml-doctools.pc',
+ install_dir: get_option('datadir') / 'pkgconfig',
+ configuration: pc_conf)
+
+sgmlx11_files = [
+ 'defs.ent',
+ 'xorg.css',
+ 'xorg.xsl',
+ 'xorg-xhtml.xsl',
+ 'xorg-chunk.xsl',
+ 'xorg-fo.xsl'
+]
+install_data(sgmlx11_files, install_dir: sgmlx11dir)
+
+configure_file(output: 'masterdb.html.xml',
+ input: 'masterdb/masterdb.xml',
+ configuration: {
+ 'datarootdir': datarootdir,
+ 'db': 'html'
+ },
+ install_dir: sgmldbsdir)
+
+configure_file(output: 'masterdb.pdf.xml',
+ input: 'masterdb/masterdb.xml',
+ configuration: {
+ 'datarootdir': datarootdir,
+ 'db': 'pdf'
+ },
+ install_dir: sgmldbsdir)