From 70821d875f78a17f25102183ed23c0edb8045044 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 11 Dec 2025 15:34:05 -0700 Subject: [PATCH] Add drm_info --- recipes/wip/x11/drm-info/recipe.toml | 11 +++++++++++ recipes/wip/x11/drm-info/redox.patch | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 recipes/wip/x11/drm-info/recipe.toml create mode 100644 recipes/wip/x11/drm-info/redox.patch diff --git a/recipes/wip/x11/drm-info/recipe.toml b/recipes/wip/x11/drm-info/recipe.toml new file mode 100644 index 000000000..d1885e8c5 --- /dev/null +++ b/recipes/wip/x11/drm-info/recipe.toml @@ -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" diff --git a/recipes/wip/x11/drm-info/redox.patch b/recipes/wip/x11/drm-info/redox.patch new file mode 100644 index 000000000..06d916480 --- /dev/null +++ b/recipes/wip/x11/drm-info/redox.patch @@ -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