From a38b5749d745eb04b0fa1414e03abca778e7caa1 Mon Sep 17 00:00:00 2001
From: Ribbon <ribbon_45@proton.me>
Date: Sat, 13 Jul 2024 17:19:40 +0000
Subject: [PATCH] Add recipes

---
 .../wip/demos/contrast-renderer/recipe.toml   |  8 +++++++
 recipes/wip/demos/fonterator/recipe.toml      |  8 +++++++
 recipes/wip/demos/pix-engine/recipe.toml      | 15 ++++++++++++
 recipes/wip/demos/renderling/recipe.toml      |  8 +++++++
 recipes/wip/demos/rsille/recipe.toml          |  8 +++++++
 .../wip/dev/graphics/bonzomatic/recipe.toml   | 24 +++++++++++++++++++
 recipes/wip/games/space/rust-belt/recipe.toml |  9 +++++++
 .../graphics/converters/inkdrop/recipe.toml   |  8 +++++++
 .../graphics/shaders/shadertoy-rs/recipe.toml |  5 ++++
 .../terminal/3d-terminal-renderer/recipe.toml |  5 ++++
 10 files changed, 98 insertions(+)
 create mode 100644 recipes/wip/demos/contrast-renderer/recipe.toml
 create mode 100644 recipes/wip/demos/fonterator/recipe.toml
 create mode 100644 recipes/wip/demos/pix-engine/recipe.toml
 create mode 100644 recipes/wip/demos/renderling/recipe.toml
 create mode 100644 recipes/wip/demos/rsille/recipe.toml
 create mode 100644 recipes/wip/dev/graphics/bonzomatic/recipe.toml
 create mode 100644 recipes/wip/games/space/rust-belt/recipe.toml
 create mode 100644 recipes/wip/graphics/converters/inkdrop/recipe.toml
 create mode 100644 recipes/wip/graphics/shaders/shadertoy-rs/recipe.toml
 create mode 100644 recipes/wip/graphics/terminal/3d-terminal-renderer/recipe.toml

diff --git a/recipes/wip/demos/contrast-renderer/recipe.toml b/recipes/wip/demos/contrast-renderer/recipe.toml
new file mode 100644
index 000000000..b61584376
--- /dev/null
+++ b/recipes/wip/demos/contrast-renderer/recipe.toml
@@ -0,0 +1,8 @@
+#TODO not compiled or tested
+[source]
+git = "https://github.com/Lichtso/contrast_renderer"
+[build]
+template = "custom"
+script = """
+cookbook_cargo_examples showcase
+"""
diff --git a/recipes/wip/demos/fonterator/recipe.toml b/recipes/wip/demos/fonterator/recipe.toml
new file mode 100644
index 000000000..93d3ec714
--- /dev/null
+++ b/recipes/wip/demos/fonterator/recipe.toml
@@ -0,0 +1,8 @@
+#TODO not compiled or tested
+[source]
+git = "https://github.com/ardaku/fonterator"
+[build]
+template = "custom"
+script = """
+cookbook_cargo_examples main directions image raster
+"""
diff --git a/recipes/wip/demos/pix-engine/recipe.toml b/recipes/wip/demos/pix-engine/recipe.toml
new file mode 100644
index 000000000..481118943
--- /dev/null
+++ b/recipes/wip/demos/pix-engine/recipe.toml
@@ -0,0 +1,15 @@
+#TODO not compiled or tested
+[source]
+git = "https://github.com/lukexor/pix-engine"
+[build]
+template = "custom"
+dependencies = [
+    "sdl2",
+    "sdl2-image",
+    "sdl2-mixer",
+    "sdl2-ttf",
+    "sdl-gfx",
+]
+script = """
+cookbook_cargo_examples maze 2d_raycasting 3d_raycasting asteroids colors fluid_simulation gui hello_world image light matrix shapes textures tree windows
+"""
diff --git a/recipes/wip/demos/renderling/recipe.toml b/recipes/wip/demos/renderling/recipe.toml
new file mode 100644
index 000000000..e1dd7f86b
--- /dev/null
+++ b/recipes/wip/demos/renderling/recipe.toml
@@ -0,0 +1,8 @@
+#TODO not compiled or tested
+[source]
+git = "https://github.com/schell/renderling"
+[build]
+template = "custom"
+script = """
+cookbook_cargo_packages example
+"""
diff --git a/recipes/wip/demos/rsille/recipe.toml b/recipes/wip/demos/rsille/recipe.toml
new file mode 100644
index 000000000..bed9f8eb5
--- /dev/null
+++ b/recipes/wip/demos/rsille/recipe.toml
@@ -0,0 +1,8 @@
+#TODO not compiled or tested
+[source]
+git = "https://github.com/nidhoggfgg/rsille"
+[build]
+template = "custom"
+script = """
+cookbook_cargo_examples anime-mix obj-mix cube cube-colorful imgille
+"""
diff --git a/recipes/wip/dev/graphics/bonzomatic/recipe.toml b/recipes/wip/dev/graphics/bonzomatic/recipe.toml
new file mode 100644
index 000000000..1af4e27a9
--- /dev/null
+++ b/recipes/wip/dev/graphics/bonzomatic/recipe.toml
@@ -0,0 +1,24 @@
+#TODO port to orbital
+# build instructions - https://github.com/Gargaj/Bonzomatic#linux
+[source]
+git = "https://github.com/Gargaj/Bonzomatic"
+[build]
+template = "custom"
+dependencies = [
+    "mesa",
+]
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/games/space/rust-belt/recipe.toml b/recipes/wip/games/space/rust-belt/recipe.toml
new file mode 100644
index 000000000..37a10b5be
--- /dev/null
+++ b/recipes/wip/games/space/rust-belt/recipe.toml
@@ -0,0 +1,9 @@
+#TODO not compiled or tested
+[source]
+git = "https://github.com/johnthagen/rust-belt"
+[build]
+template = "cargo"
+dependencies = [
+    "sdl2",
+    "sdl2-mixer",
+]
diff --git a/recipes/wip/graphics/converters/inkdrop/recipe.toml b/recipes/wip/graphics/converters/inkdrop/recipe.toml
new file mode 100644
index 000000000..c215f7713
--- /dev/null
+++ b/recipes/wip/graphics/converters/inkdrop/recipe.toml
@@ -0,0 +1,8 @@
+#TODO not compiled or tested
+[source]
+git = "https://github.com/matze/inkdrop"
+[build]
+template = "custom"
+script = """
+cookbook_cargo_packages inkdrop-cli gcode-converter
+"""
diff --git a/recipes/wip/graphics/shaders/shadertoy-rs/recipe.toml b/recipes/wip/graphics/shaders/shadertoy-rs/recipe.toml
new file mode 100644
index 000000000..e13d31b25
--- /dev/null
+++ b/recipes/wip/graphics/shaders/shadertoy-rs/recipe.toml
@@ -0,0 +1,5 @@
+#TODO not compiled or tested
+[source]
+git = "https://github.com/fmenozzi/shadertoy-rs"
+[build]
+template = "cargo"
diff --git a/recipes/wip/graphics/terminal/3d-terminal-renderer/recipe.toml b/recipes/wip/graphics/terminal/3d-terminal-renderer/recipe.toml
new file mode 100644
index 000000000..d576e43de
--- /dev/null
+++ b/recipes/wip/graphics/terminal/3d-terminal-renderer/recipe.toml
@@ -0,0 +1,5 @@
+#TODO not compiled or tested
+[source]
+git = "https://github.com/ryanweideman/3d-terminal-renderer"
+[build]
+template = "cargo"
-- 
GitLab