summaryrefslogtreecommitdiff
path: root/meson.build
blob: 5b38853748c12d757266332a1378944bcf418987 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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)