[go: up one dir, main page]

File: meson.build

package info (click to toggle)
libgxps 0.3.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 916 kB
  • sloc: ansic: 10,868; xml: 999; sh: 18; makefile: 9
file content (43 lines) | stat: -rw-r--r-- 999 bytes parent folder | download | duplicates (4)
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
xsltproc = find_program('xsltproc', required: false)
if xsltproc.found()
  xlstproc_flags = [
    '--nonet',
  ]

  man_files = []

  if jpeg_dep.found()
    man_files += [ 'xpstojpeg' ]
  endif

  if cairo_pdf_dep.found()
    man_files += [ 'xpstopdf' ]
  endif

  if png_found
    man_files += [ 'xpstopng' ]
  endif

  if cairo_ps_dep.found()
    man_files += [ 'xpstops' ]
  endif

  if cairo_svg_dep.found()
    man_files += [ 'xpstosvg' ]
  endif

  foreach m: man_files
    custom_target(m + ' man page',
                  input: '@0@.xml'.format(m),
                  output: '@0@.1'.format(m),
                  command: [
                    xsltproc,
                    xlstproc_flags,
                    '-o', '@OUTPUT@',
                    'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl',
                    '@INPUT@',
                  ],
                  install: true,
                  install_dir: join_paths(gxps_mandir, 'man1'))
  endforeach
endif