diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2022-01-25 09:34:56 +1000 |
---|---|---|
committer | Ping Cheng <pinglinux@gmail.com> | 2022-01-24 22:10:20 -0800 |
commit | 0e10636573a56e4eabe7ccc0d9616faa7bf86896 (patch) | |
tree | 6f3d272899f136aef8d9e1fbf44efe5c435bd391 | |
parent | 93b7ff5d0f57916ff28d56795f0cca9c21557528 (diff) | |
download | xf86-input-wacom-0e10636573a56e4eabe7ccc0d9616faa7bf86896.tar.gz |
meson: default to the module dir from xorg-server.pc
On Ubuntu 20.04 at least, libdir is /usr/lib/x86_64-linux-gnu/ but the
xorg modules are in /usr/lib/xorg/modules/. A default install with
prefix /usr thus puts the modules into the wrong directory.
Fix this by defaulting to the xorg module path from the xserver
pkgconfig file. That has been exported since 2005, so it's save to rely
on.
Fixes #217
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | meson.build | 3 | ||||
-rw-r--r-- | meson_options.txt | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/meson.build b/meson.build index 791be6d..e597de8 100644 --- a/meson.build +++ b/meson.build @@ -9,7 +9,6 @@ wacom_version = meson.project_version().split('.') dir_man1 = get_option('prefix') / get_option('mandir') / 'man1' dir_man4 = get_option('prefix') / get_option('mandir') / 'man4' dir_bin = get_option('prefix') / get_option('bindir') -dir_lib_xorg = get_option('prefix') / get_option('libdir') / 'xorg' / 'modules' / 'input' dir_x11_config = get_option('prefix') / get_option('sysconfdir') / 'X11' / 'xorg.conf.d' dir_pkgconf = get_option('prefix') / get_option('libdir') / 'pkgconfig' dir_udev = get_option('prefix') / 'lib' / 'udev' @@ -68,7 +67,7 @@ endif dir_xorg_modules = get_option('xorg-module-dir') if dir_xorg_modules == '' - dir_xorg_modules = dir_lib_xorg + dir_xorg_modules = dep_xserver.get_pkgconfig_variable('moduledir') / 'input' endif dir_xorg_conf = get_option('xorg-conf-dir') diff --git a/meson_options.txt b/meson_options.txt index c552b45..f58af9d 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -6,7 +6,7 @@ option('sdkdir', option('xorg-module-dir', type: 'string', value: '', - description: 'Directory to install the driver in [default=$libdir/xorg/modules/]' + description: 'Directory to install the driver in [default=from xorg-server pkgconf]' ) option('xorg-conf-dir', type: 'string', |