From 1c296913903b90daa52b8d0ec90e60ff504bc470 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Thu, 12 Jan 2023 21:18:15 -0700
Subject: [PATCH] Require osmesa in sdl2 pkg-config

---
 recipes/sdl2/recipe.toml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/recipes/sdl2/recipe.toml b/recipes/sdl2/recipe.toml
index aa74d9268..c17201452 100644
--- a/recipes/sdl2/recipe.toml
+++ b/recipes/sdl2/recipe.toml
@@ -25,4 +25,7 @@ COOKBOOK_CONFIGURE_FLAGS=(
     --enable-cdrom
 )
 cookbook_configure
+
+# Hack to add OSMesa
+sed -i "s/Requires:/Requires: osmesa >= 8.0.0/" "${COOKBOOK_STAGE}/lib/pkgconfig/sdl2.pc"
 """
-- 
GitLab