From d35a769daf1a24f34fc7debf4b359245710e0b87 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Fri, 22 Jul 2022 21:29:28 -0600
Subject: [PATCH] Add retroarch

---
 recipes/retroarch/recipe.toml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 recipes/retroarch/recipe.toml

diff --git a/recipes/retroarch/recipe.toml b/recipes/retroarch/recipe.toml
new file mode 100644
index 000000000..4b8c0cfb9
--- /dev/null
+++ b/recipes/retroarch/recipe.toml
@@ -0,0 +1,24 @@
+[source]
+git = "https://github.com/jackpot51/retroarch.git"
+
+[build]
+template = "custom"
+dependencies = [
+    "liborbital",
+    "sdl",
+]
+script = """
+pushd "${COOKBOOK_SOURCE}"
+./fetch-submodules.sh
+popd
+
+rsync -av --delete "${COOKBOOK_SOURCE}/" ./
+
+COOKBOOK_CONFIGURE_FLAGS=(
+    --host="${TARGET}"
+    --prefix="/"
+    --disable-networking # missing ifaddrs.h
+    --disable-thread_storage # crash in pthread_setspecific called by sthread_tls_set
+)
+cookbook_configure
+"""
-- 
GitLab