summaryrefslogtreecommitdiff
path: root/x11-drivers/xlibre-xf86-video-intel/files/patch-meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'x11-drivers/xlibre-xf86-video-intel/files/patch-meson.build')
-rw-r--r--x11-drivers/xlibre-xf86-video-intel/files/patch-meson.build35
1 files changed, 35 insertions, 0 deletions
diff --git a/x11-drivers/xlibre-xf86-video-intel/files/patch-meson.build b/x11-drivers/xlibre-xf86-video-intel/files/patch-meson.build
new file mode 100644
index 000000000000..05b017ccad5f
--- /dev/null
+++ b/x11-drivers/xlibre-xf86-video-intel/files/patch-meson.build
@@ -0,0 +1,35 @@
+--- meson.build.orig 2025-08-15 11:23:59 UTC
++++ meson.build
+@@ -91,9 +91,19 @@ endif
+ error('xf86-video-intel depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package.')
+ endif
+
+-libudev = dependency('libudev', required : false)
++libudev = dependency('libudev', required : get_option('udev') == 'true')
+-if libudev.found()
+- config.set('HAVE_UDEV', 1)
+-endif
++with_udev = false
++if get_option('udev') == 'auto'
++ if libudev.found()
++ with_udev = true
++ else
++ with_udev = false
++ endif
++else
++ with_udev = get_option('udev') == 'true'
++endif
++if with_udev
++ config.set('HAVE_UDEV', 1)
++endif
+
+ cpuid_code = '''
+@@ -183,7 +183,7 @@ man_config.set('filemansuffix', '5')
+ man_config = configuration_data()
+ man_config.set('appmansuffix', '1')
+ man_config.set('filemansuffix', '5')
+-man_config.set('drivermansuffix', '4')
++man_config.set('drivermansuffix', '4x')
+ man_config.set('miscmansuffix', '7')
+ man_config.set('xservername',
+ cc.get_define('__XSERVERNAME__',