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)