From 9a93aab9d1a5ab1d78c55d37b0bf851a32daba73 Mon Sep 17 00:00:00 2001
From: Ribbon <ribbon_45@proton.me>
Date: Sat, 26 Oct 2024 10:48:38 +0000
Subject: [PATCH] Add recipes

---
 recipes/wip/games/music/composer/recipe.toml  | 25 +++++++++++
 .../wip/games/music/performous/recipe.toml    | 41 +++++++++++++++++++
 recipes/wip/games/music/stepmania/recipe.toml | 40 ++++++++++++++++++
 .../upscaling/jdpixelupscaler/recipe.toml     | 10 +++++
 4 files changed, 116 insertions(+)
 create mode 100644 recipes/wip/games/music/composer/recipe.toml
 create mode 100644 recipes/wip/games/music/performous/recipe.toml
 create mode 100644 recipes/wip/games/music/stepmania/recipe.toml
 create mode 100644 recipes/wip/image/upscaling/jdpixelupscaler/recipe.toml

diff --git a/recipes/wip/games/music/composer/recipe.toml b/recipes/wip/games/music/composer/recipe.toml
new file mode 100644
index 000000000..c44ceeb3a
--- /dev/null
+++ b/recipes/wip/games/music/composer/recipe.toml
@@ -0,0 +1,25 @@
+#TODO maybe incomplete script
+# build instructions - https://github.com/performous/performous/wiki/Composer
+[source]
+git = "https://github.com/performous/composer"
+[build]
+template = "custom"
+dependencies = [
+    "qt5-base",
+    "ffmpeg6",
+]
+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/music/performous/recipe.toml b/recipes/wip/games/music/performous/recipe.toml
new file mode 100644
index 000000000..98d113723
--- /dev/null
+++ b/recipes/wip/games/music/performous/recipe.toml
@@ -0,0 +1,41 @@
+#TODO maybe incomplete script
+# build instructions - https://github.com/performous/performous/wiki/Building-and-installing-from-source#build-and-install
+# dependencies - https://github.com/performous/performous/wiki/Building-and-installing-from-source#installing-build-dependencies
+[source]
+git = "https://github.com/performous/performous"
+branch = "1.3.1"
+[build]
+template = "custom"
+dependencies = [
+    "openblas",
+    "fftw",
+    "libicu",
+    "libepoxy",
+    "sdl2",
+    "freetype2",
+    "pango",
+    "librsvg",
+    "libxml2",
+    "ffmpeg6",
+    "libjpeg",
+    "portaudio",
+    "boost",
+    "nlohmann-json",
+    "aubio",
+    "libfmt",
+]
+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/music/stepmania/recipe.toml b/recipes/wip/games/music/stepmania/recipe.toml
new file mode 100644
index 000000000..c36e5dd49
--- /dev/null
+++ b/recipes/wip/games/music/stepmania/recipe.toml
@@ -0,0 +1,40 @@
+#TODO maybe incomplete script
+# build instructions - https://github.com/stepmania/stepmania/wiki/Compiling-StepMania-Linux
+# dependencies - https://github.com/stepmania/stepmania/wiki/Linux-Dependencies
+[source]
+git = "https://github.com/stepmania/stepmania"
+[build]
+template = "custom"
+dependencies = [
+    "mesa",
+    "mesa-glu",
+    "glew",
+    "libx11",
+    "libxtst",
+    "libxrandr",
+    "libpng",
+    "libjpeg",
+    "zlib",
+    "bzip2",
+    "libogg",
+    "libvorbis",
+    "pulseaudio",
+    "libiberty",
+    "gtk3",
+    "libmad",
+]
+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/image/upscaling/jdpixelupscaler/recipe.toml b/recipes/wip/image/upscaling/jdpixelupscaler/recipe.toml
new file mode 100644
index 000000000..7399f8724
--- /dev/null
+++ b/recipes/wip/image/upscaling/jdpixelupscaler/recipe.toml
@@ -0,0 +1,10 @@
+#TODO maybe incomplete script
+#TODO determine the dependencies
+[source]
+git = "https://codeberg.org/JakobDev/jdPixelUpscaler"
+rev = "05eb4f3a4a9d24b6d818522483d88caa6b201e2e"
+[build]
+template = "custom"
+dependencies = [
+    "qt6-base",
+]
-- 
GitLab