xfree86: Create a symlink X -> Xorg when installing using meson

This brings the behavior closer than what we currently have with
autotools-based build system.

Meson does not currently have native support for symlinks.
See https://github.com/mesonbuild/meson/issues/1602.

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
This commit is contained in:
Povilas Kanapickas 2021-03-25 22:46:33 +02:00
parent 09cd65233e
commit a3931ec6f4
1 changed files with 6 additions and 0 deletions

View File

@ -138,6 +138,12 @@ if get_option('xf86-input-inputtest')
subdir('drivers/inputtest')
endif
meson.add_install_script(
'sh', '-c',
'ln -fs Xorg @0@@1@'.format(
'${DESTDIR}',
join_paths(get_option('prefix'), get_option('bindir'), 'X')))
if get_option('suid_wrapper')
executable('Xorg.wrap',
'xorg-wrapper.c',