Use the SDK libdrm headers for Xorg glamor
@@ -18,7 +18,7 @@ defpkgbuild(xorg-server,
1818 #:sha256sums, [
1919 "b14a116d2d805debc5b5b2aac505a279e69b217dae2fae2dfcb62400471a9970",
2020 "74929113283893aff082d39edfa4a39f6e4f68134572831ce55ad75ebbc47449",
21- "9ac9cb2e6ae8e24833ba13c8cf6a34bfdf6ca49fa6e9f3bc16f2e876cbcbede5"
21+ "7db6b08c06911f0c59916bda8c5fd61d6c610833f6e461fdaac8333dc06458cb"
2222 ],
2323 #:prepare, fn() {
2424 run("patch", "--batch", "--fuzz=0", "-d", "xorg-server-21.1.16", "-p1", "-i", "../jinx-working-patch.patch")
@@ -27,6 +27,7 @@ defpkgbuild(xorg-server,
2727 run("v", "run", "configure.v", "accelerated", "xorg-server-21.1.16", "accelerated")
2828 run("sed", "-i", "s|^#define DRI_DRIVER_PATH .*|#define DRI_DRIVER_PATH \"/usr/lib/xorg/modules/dri\"|", "accelerated/include/dix-config.h")
2929 run("sed", "-i", "s|^export_dynamic_flag_spec=\"\"$|export_dynamic_flag_spec=\"\\${wl}--export-dynamic\"|", "accelerated/libtool")
30+ run("make", "-C", "accelerated/hw/xfree86/glamor_egl", "glamor_egl.lo")
3031 run("make", "-C", "accelerated")
3132 },
3233 #:check, fn() {
@@ -14,7 +14,12 @@ fn configure(profile string, source string, build string) ! {
1414 script := os.abs_path(os.join_path(source, 'configure'))
1515 os.mkdir_all(build)!
1616 os.chdir(build)!
17- os.setenv('CPPFLAGS', (os.getenv('CPPFLAGS') + ' -D__vinix__').trim_space(), true)
17+ mut cppflags := os.getenv('CPPFLAGS') + ' -D__vinix__'
18+ if profile == 'accelerated' {
19+ // The Xorg-only glamor module includes xf86drm.h outside the DRI3 build.
20+ cppflags += ' -I' + root + '/usr/include/libdrm'
21+ }
22+ os.setenv('CPPFLAGS', cppflags.trim_space(), true)
1823 os.setenv('LDFLAGS', (os.getenv('LDFLAGS') + ' -Wl,-rpath-link,' + root + '/usr/lib -rdynamic').trim_space(), true)
1924 mut args := [script, '--localstatedir=/var', '--with-xkb-bin-directory=/usr/bin',
2025 '--with-xkb-path=/usr/share/X11/xkb', '--with-xkb-output=/var/lib/xkb',