mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-28 06:46:38 -04:00
FreeBSD does not have utempter helper but instead have a ulog-helper which provides the same set of functionnality, but the call and arguments are slightly different.
44 lines
1.2 KiB
Meson
44 lines
1.2 KiB
Meson
sh = find_program('sh', native: true)
|
|
|
|
scdoc_prog = find_program(scdoc.get_variable('scdoc'), native: true)
|
|
|
|
if utempter_path == ''
|
|
default_utempter_value = 'not set'
|
|
utempter_name = 'none'
|
|
else
|
|
default_utempter_value = utempter_path
|
|
endif
|
|
|
|
conf_data = configuration_data(
|
|
{
|
|
'default_terminfo': get_option('default-terminfo'),
|
|
'utempter': default_utempter_value,
|
|
'utempter_name': utempter_name,
|
|
'utempter_add': utempter_add,
|
|
'utempter_del': utempter_del,
|
|
}
|
|
)
|
|
|
|
foreach man_src : [{'name': 'foot', 'section' : 1},
|
|
{'name': 'foot.ini', 'section': 5},
|
|
{'name': 'footclient', 'section': 1},
|
|
{'name': 'foot-ctlseqs', 'section': 7}]
|
|
name = man_src['name']
|
|
section = man_src['section']
|
|
out = '@0@.@1@'.format(name, section)
|
|
|
|
preprocessed = configure_file(
|
|
input: '@0@.@1@.scd'.format(name, section),
|
|
output: '@0@.preprocessed'.format(out),
|
|
configuration: conf_data,
|
|
)
|
|
|
|
custom_target(
|
|
out,
|
|
output: out,
|
|
input: preprocessed,
|
|
command: [sh, '-c', '@0@ < @INPUT@'.format(scdoc_prog.full_path())],
|
|
capture: true,
|
|
install: true,
|
|
install_dir: join_paths(get_option('mandir'), 'man@0@'.format(section)))
|
|
endforeach
|