NAME = "mesa";
VER = "26.2.7";
REPO = "extra";
DESC = "Open-source OpenGL drivers";
MAINT = "liamwaldron7009@protonmail.com";
COPYRIGHT = "MIT";
# Signed by Eric Engestrom (57551DE15B968F6341C248F68D8E31AFC32428A6); the
# sha256 is also the one in the 26.2.7 release notes. Wayland only (no
# GLX, no Vulkan). Drivers: llvmpipe/softpipe (software, any machine),
# virgl (QEMU), radeonsi (AMD), nouveau. NOT Intel: iris and crocus need
# clang, libclc and SPIRV-LLVM-Translator at build time.
SOURCES = (
	{ URL = "https://archive.mesa3d.org/mesa-26.2.7.tar.xz";
	  SHA256 = "sha256:04294f75d22e9f61cd1e050206bc48b3d39366e788f1803a3368e3d5a872ce18"; }
);
BUILD = "meson";
CONFIGURE = [ "-Dplatforms=wayland", "-Dgallium-drivers=llvmpipe,softpipe,virgl,radeonsi,nouveau",
	"-Dvulkan-drivers=", "-Dglx=disabled", "-Degl=enabled", "-Dgbm=enabled", "-Dgles1=disabled",
	"-Dgles2=enabled", "-Dopengl=true", "-Dglvnd=disabled", "-Dllvm=enabled",
	"-Dshared-llvm=enabled", "-Dvalgrind=disabled", "-Dlibunwind=disabled",
	"-Dlmsensors=disabled", "-Dbuild-tests=false", "-Dgallium-va=disabled", "-Dvideo-codecs=",
	"-Dxmlconfig=enabled", "-Dexpat=enabled", "-Dzstd=enabled", "-Dshader-cache=enabled",
	"-Dstrip=true", "-Db_ndebug=true" ];
DEPS = ( { NAME = "libelf"; VER = "0.197.0"; }, { NAME = "libdrm"; VER = "2.4.134"; }, { NAME = "wayland"; VER = "1.26.0"; }, { NAME = "llvm"; VER = "23.1.5"; }, { NAME = "expat"; VER = "2.9.0"; }, { NAME = "zlib"; VER = "1.3.2"; }, { NAME = "zstd"; VER = "1.5.7"; } );
BUILD_DEPS = ( { NAME = "meson"; VER = "1.12.1"; }, { NAME = "pkgconf"; VER = "3.0.10"; }, { NAME = "python-mako"; VER = "1.4.3"; }, { NAME = "python-pyyaml"; VER = "6.0.3"; }, { NAME = "python-packaging"; VER = "26.3.0"; }, { NAME = "bison"; VER = "3.8.2"; }, { NAME = "flex"; VER = "2.6.4"; }, { NAME = "wayland-protocols"; VER = "1.50.0"; } );
