From 1b5befed6dbbb140630ad84702d900fb3942250f Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 01:17:20 +0100 Subject: [PATCH] Split the EGL platform headers needed before Mesa builds --- mesa-platform-headers/PKGBUILD.vile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 mesa-platform-headers/PKGBUILD.vile diff --git a/mesa-platform-headers/PKGBUILD.vile b/mesa-platform-headers/PKGBUILD.vile new file mode 100644 index 0000000..532846a --- /dev/null +++ b/mesa-platform-headers/PKGBUILD.vile @@ -0,0 +1,15 @@ +defpkgbuild(mesa-platform-headers, + #:pkgname, "mesa-platform-headers", + #:pkgver, "24.2.8", + #:pkgrel, 1, + #:pkgdesc, "Khronos platform declarations for EGL providers and consumers", + #:arch, [#:any], + #:license, "MIT", + #:url, "https://www.mesa3d.org/", + #:source, ["https://archive.mesa3d.org/mesa-24.2.8.tar.xz"], + #:sha256sums, ["999d0a854f43864fc098266aaf25600ce7961318a1e2e358bff94a7f53580e30"], + #:package, fn() { + ; libepoxy's public EGL header includes these before Mesa itself is built. + run("install", "-Dm644", "mesa-24.2.8/include/EGL/eglplatform.h", string-append(pkgdir(), "/usr/include/EGL/eglplatform.h")) + run("install", "-Dm644", "mesa-24.2.8/include/KHR/khrplatform.h", string-append(pkgdir(), "/usr/include/KHR/khrplatform.h")) + }) -- 2.56.1