diff --git a/recipes/sdl2/recipe.toml b/recipes/sdl2/recipe.toml
index aa74d92680de797e01c429323115fbdcb640a503..c172014523ce0d4433f52af9366990e8c76269b9 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"
 """