Add drm_info

This commit is contained in:
Jeremy Soller 2025-12-11 15:34:05 -07:00
parent 5a5c95a63d
commit 70821d875f
No known key found for this signature in database
GPG Key ID: 670FDFB5428E05CA
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,11 @@
[source]
tar = "https://gitlab.freedesktop.org/emersion/drm_info/-/archive/v2.9.0/drm_info-v2.9.0.tar.gz"
blake3 = "48ff592b206a85c1d946abfe2f8a4e7ef40f9f1ee7d3d5ee454a33390f86d8cb"
patches = ["redox.patch"]
[build]
dependencies = [
"json-c",
"libdrm",
]
template = "meson"

View File

@ -0,0 +1,12 @@
diff -ruwN source-old/meson.build source/meson.build
--- source-old/meson.build 2025-11-16 10:35:59.000000000 -0700
+++ source/meson.build 2025-12-11 15:29:28.845861423 -0700
@@ -68,7 +68,7 @@
elif libdrm.type_name() == 'internal'
fourcc_h = meson.current_source_dir() / 'subprojects/libdrm/include/drm/drm_fourcc.h'
else
- fourcc_h = libdrm.get_variable(pkgconfig: 'pc_sysrootdir') + libdrm.get_variable(pkgconfig: 'includedir') / 'libdrm/drm_fourcc.h'
+ fourcc_h = libdrm.get_variable(pkgconfig: 'includedir') / 'libdrm/drm_fourcc.h'
endif
# The DRM_BUS_FAUX bus and its information is included in libdrm v2.4.127