From b62ddf4f5a640ad0286863977752a6de2ab0afdf Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Mon, 1 Aug 2022 18:29:09 -0600
Subject: [PATCH] Add sm64ex recipe

---
 recipes/sm64ex/.gitignore  |  1 +
 recipes/sm64ex/recipe.toml | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)
 create mode 100644 recipes/sm64ex/.gitignore
 create mode 100644 recipes/sm64ex/recipe.toml

diff --git a/recipes/sm64ex/.gitignore b/recipes/sm64ex/.gitignore
new file mode 100644
index 000000000..09b26b184
--- /dev/null
+++ b/recipes/sm64ex/.gitignore
@@ -0,0 +1 @@
+/baserom.us.z64
diff --git a/recipes/sm64ex/recipe.toml b/recipes/sm64ex/recipe.toml
new file mode 100644
index 000000000..f7db24b52
--- /dev/null
+++ b/recipes/sm64ex/recipe.toml
@@ -0,0 +1,22 @@
+[source]
+git = "https://github.com/jackpot51/sm64ex.git"
+
+[build]
+template = "custom"
+dependencies = [
+    "liborbital",
+    "llvm",
+    "mesa",
+    "sdl2",
+    "zlib",
+]
+script = """
+rsync -av --delete "${COOKBOOK_SOURCE}/" ./
+# You must find your own ROM
+cp -v "${COOKBOOK_RECIPE}/baserom.us.z64" baserom.us.z64
+
+export CROSS="${TARGET}-"
+"${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}"
+mkdir -p "${COOKBOOK_STAGE}/bin"
+cp -v build/us_pc/sm64.us.f3dex2e "${COOKBOOK_STAGE}/bin/sm64"
+"""
-- 
GitLab