From 589db8a4e4e8b500e67a65c66c4f2bd8cf4b33ea Mon Sep 17 00:00:00 2001
From: Ribbon <ribbon_45@proton.me>
Date: Sun, 30 Jun 2024 08:12:12 +0000
Subject: [PATCH] Add the CMake script on many recipes

---
 recipes/wip/dev/other/zeal/recipe.toml          | 17 ++++++++++++++++-
 recipes/wip/emulators/cpu/unicorn/recipe.toml   | 17 ++++++++++++++++-
 .../game-console/nds/melonds/recipe.toml        | 17 ++++++++++++++++-
 .../game-console/ps4/obliteration/recipe.toml   | 17 ++++++++++++++++-
 .../game-console/sega/uoyabause/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/fuse/cvmfs/recipe.toml              | 17 ++++++++++++++++-
 recipes/wip/games/fps/et-legacy/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/games/fps/gzdoom/recipe.toml        | 17 ++++++++++++++++-
 recipes/wip/games/fps/rbdoom3-bfg/recipe.toml   | 17 ++++++++++++++++-
 recipes/wip/games/fps/unvanquished/recipe.toml  | 17 ++++++++++++++++-
 recipes/wip/games/space/endless-sky/recipe.toml | 17 ++++++++++++++++-
 .../strategy/ship-of-harkinian/recipe.toml      | 17 ++++++++++++++++-
 recipes/wip/games/strategy/warsow/recipe.toml   | 17 ++++++++++++++++-
 recipes/wip/icons/breeze-icons/recipe.toml      | 17 ++++++++++++++++-
 .../libs/audio/libopenshot-audio/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/other/dcmtk/recipe.toml        | 17 ++++++++++++++++-
 recipes/wip/libs/other/gflags/recipe.toml       | 17 ++++++++++++++++-
 recipes/wip/libs/other/lammps/recipe.toml       | 17 ++++++++++++++++-
 recipes/wip/libs/other/lib2geom/recipe.toml     | 17 ++++++++++++++++-
 .../libs/video/libopenshot-video/recipe.toml    | 17 ++++++++++++++++-
 20 files changed, 320 insertions(+), 20 deletions(-)

diff --git a/recipes/wip/dev/other/zeal/recipe.toml b/recipes/wip/dev/other/zeal/recipe.toml
index 39fa5a2e1..35484489d 100644
--- a/recipes/wip/dev/other/zeal/recipe.toml
+++ b/recipes/wip/dev/other/zeal/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/zealdocs/zeal#build-instructions
+#TODO maybe incomplete script, see https://github.com/zealdocs/zeal#build-instructions
 [source]
 tar = "https://github.com/zealdocs/zeal/releases/download/v0.7.0/zeal-0.7.0.tar.xz"
 [build]
@@ -10,3 +10,18 @@ dependencies = [
     "sqlite3",
     "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/emulators/cpu/unicorn/recipe.toml b/recipes/wip/emulators/cpu/unicorn/recipe.toml
index 826e4001a..c5f877728 100644
--- a/recipes/wip/emulators/cpu/unicorn/recipe.toml
+++ b/recipes/wip/emulators/cpu/unicorn/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, read https://github.com/unicorn-engine/unicorn/blob/master/docs/COMPILE.md
+#TODO maybe incomplete script, read https://github.com/unicorn-engine/unicorn/blob/master/docs/COMPILE.md
 [source]
 git = "https://github.com/unicorn-engine/unicorn"
 rev = "e9c1c17f6df8f8f5da85ee80ad527452db5870ce"
 [build]
 template = "custom"
+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/emulators/game-console/nds/melonds/recipe.toml b/recipes/wip/emulators/game-console/nds/melonds/recipe.toml
index fc8f4b45f..46b747eaf 100644
--- a/recipes/wip/emulators/game-console/nds/melonds/recipe.toml
+++ b/recipes/wip/emulators/game-console/nds/melonds/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/melonDS-emu/melonDS#linux
+#TODO maybe incomplete script, see https://github.com/melonDS-emu/melonDS#linux
 #TODO make all dependencies work
 [source]
 git = "https://github.com/melonDS-emu/melonDS"
@@ -15,3 +15,18 @@ dependencies = [
     "libarchive",
     "zstd",
 ]
+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/emulators/game-console/ps4/obliteration/recipe.toml b/recipes/wip/emulators/game-console/ps4/obliteration/recipe.toml
index dd51b9df2..e8b69d709 100644
--- a/recipes/wip/emulators/game-console/ps4/obliteration/recipe.toml
+++ b/recipes/wip/emulators/game-console/ps4/obliteration/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/obhq/obliteration#configure-build-system
+#TODO maybe incomplete script, see https://github.com/obhq/obliteration#configure-build-system
 #TODO probably missing dependencies
 #TODO make qt6 work
 [source]
@@ -8,3 +8,18 @@ template = "custom"
 dependencies = [
     "qt6-base",
 ]
+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/emulators/game-console/sega/uoyabause/recipe.toml b/recipes/wip/emulators/game-console/sega/uoyabause/recipe.toml
index 364d6e976..2eb3b900a 100644
--- a/recipes/wip/emulators/game-console/sega/uoyabause/recipe.toml
+++ b/recipes/wip/emulators/game-console/sega/uoyabause/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/devmiyax/yabause/blob/master/yabause/README.LIN#L77
+#TODO maybe incomplete script, see https://github.com/devmiyax/yabause/blob/master/yabause/README.LIN#L77
 #TODO make gtk2 work
 [source]
 git = "https://github.com/devmiyax/yabause"
@@ -10,3 +10,18 @@ dependencies = [
     "mesa",
     "gtkglext",
 ]
+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/fuse/cvmfs/recipe.toml b/recipes/wip/fuse/cvmfs/recipe.toml
index a69cc76dc..4c35fa3b3 100644
--- a/recipes/wip/fuse/cvmfs/recipe.toml
+++ b/recipes/wip/fuse/cvmfs/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://cvmfs.readthedocs.io/en/stable/cpt-quickstart.html#building-from-source
+#TODO maybe incomplete script, see https://cvmfs.readthedocs.io/en/stable/cpt-quickstart.html#building-from-source
 [source]
 tar = "https://ecsft.cern.ch/dist/cvmfs/cvmfs-2.11.2/source.tar.gz"
 [build]
@@ -6,3 +6,18 @@ template = "custom"
 dependencies = [
     "libfuse3",
 ]
+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/fps/et-legacy/recipe.toml b/recipes/wip/games/fps/et-legacy/recipe.toml
index 5dec0452d..8b2bd132a 100644
--- a/recipes/wip/games/fps/et-legacy/recipe.toml
+++ b/recipes/wip/games/fps/et-legacy/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/etlegacy/etlegacy#compile-and-install
+#TODO maybe incomplete script, see https://github.com/etlegacy/etlegacy#compile-and-install
 [source]
 git = "https://github.com/etlegacy/etlegacy"
 rev = "956269f4c13ebe31ba2a0f0b805588383209bd5b"
@@ -9,3 +9,18 @@ dependencies = [
     "openssl1",
     "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/fps/gzdoom/recipe.toml b/recipes/wip/games/fps/gzdoom/recipe.toml
index dcbbcec2b..b7660e32f 100644
--- a/recipes/wip/games/fps/gzdoom/recipe.toml
+++ b/recipes/wip/games/fps/gzdoom/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://zdoom.org/wiki/Compile_GZDoom_on_Linux
+#TODO maybe incomplete script, see https://zdoom.org/wiki/Compile_GZDoom_on_Linux
 [source]
 git = "https://github.com/ZDoom/gzdoom"
 rev = "6ce809efe2902e43ceaa7031b875225d3a0367de"
@@ -11,3 +11,18 @@ dependencies = [
     "openal",
     "zmusic",
 ]
+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/fps/rbdoom3-bfg/recipe.toml b/recipes/wip/games/fps/rbdoom3-bfg/recipe.toml
index 620794db6..692427e45 100644
--- a/recipes/wip/games/fps/rbdoom3-bfg/recipe.toml
+++ b/recipes/wip/games/fps/rbdoom3-bfg/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/RobertBeckebans/RBDOOM-3-BFG#compiling-on-linux-
+#TODO maybe incomplete script, see https://github.com/RobertBeckebans/RBDOOM-3-BFG#compiling-on-linux-
 #TODO require the Vulkan SDK, see https://vulkan.lunarg.com/
 [source]
 git = "https://github.com/RobertBeckebans/RBDOOM-3-BFG"
@@ -11,3 +11,18 @@ dependencies = [
     "ffmpeg6",
     "libvulkan",
 ]
+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/fps/unvanquished/recipe.toml b/recipes/wip/games/fps/unvanquished/recipe.toml
index 792ca436d..cd12c6eca 100644
--- a/recipes/wip/games/fps/unvanquished/recipe.toml
+++ b/recipes/wip/games/fps/unvanquished/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/DaemonEngine/Daemon#build-instructions
+#TODO maybe incomplete script, see https://github.com/DaemonEngine/Daemon#build-instructions
 # data files - https://github.com/Unvanquished/Unvanquished#downloading-the-games-assets
 [source]
 git = "https://github.com/DaemonEngine/Daemon"
@@ -21,3 +21,18 @@ dependencies = [
     "opus",
     "opusfile",
 ]
+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/endless-sky/recipe.toml b/recipes/wip/games/space/endless-sky/recipe.toml
index 24f29a4c5..d102de669 100644
--- a/recipes/wip/games/space/endless-sky/recipe.toml
+++ b/recipes/wip/games/space/endless-sky/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/endless-sky/endless-sky/blob/master/docs/readme-cmake.md#building-the-game
+#TODO maybe incomplete script, see https://github.com/endless-sky/endless-sky/blob/master/docs/readme-cmake.md#building-the-game
 [source]
 git = "https://github.com/endless-sky/endless-sky"
 rev = "95e72950e1554392666fa41bb18c978868aa6611"
@@ -14,3 +14,18 @@ dependencies = [
     "libmad",
     "libuuid",
 ]
+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/strategy/ship-of-harkinian/recipe.toml b/recipes/wip/games/strategy/ship-of-harkinian/recipe.toml
index c94e3c2aa..01b0af365 100644
--- a/recipes/wip/games/strategy/ship-of-harkinian/recipe.toml
+++ b/recipes/wip/games/strategy/ship-of-harkinian/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/HarbourMasters/Shipwright/blob/develop/docs/BUILDING.md#linux
+#TODO maybe incomplete script, see https://github.com/HarbourMasters/Shipwright/blob/develop/docs/BUILDING.md#linux
 #TODO port to orbital?
 [source]
 git = "https://github.com/HarbourMasters/Shipwright"
@@ -10,3 +10,18 @@ dependencies = [
     "libpng",
     "glew",
 ]
+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/strategy/warsow/recipe.toml b/recipes/wip/games/strategy/warsow/recipe.toml
index e7a953c18..1e4fdcab9 100644
--- a/recipes/wip/games/strategy/warsow/recipe.toml
+++ b/recipes/wip/games/strategy/warsow/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://warsow.net/warsow_21_sdk.tar.gz"
 [build]
 template = "custom"
+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/icons/breeze-icons/recipe.toml b/recipes/wip/icons/breeze-icons/recipe.toml
index d1b0d9ab8..31717dab1 100644
--- a/recipes/wip/icons/breeze-icons/recipe.toml
+++ b/recipes/wip/icons/breeze-icons/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 tar = "https://download.kde.org/stable/frameworks/5.112/breeze-icons-5.112.0.tar.xz"
 [build]
 template = "custom"
+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/libs/audio/libopenshot-audio/recipe.toml b/recipes/wip/libs/audio/libopenshot-audio/recipe.toml
index 8c8221787..8c018375f 100644
--- a/recipes/wip/libs/audio/libopenshot-audio/recipe.toml
+++ b/recipes/wip/libs/audio/libopenshot-audio/recipe.toml
@@ -1,7 +1,22 @@
-#TODO missing script for CMake
+#TODO maybe incomplete script
 #TODO determine dependencies
 [source]
 git = "https://github.com/OpenShot/libopenshot-audio"
 rev = "98f08a6d4a90f3644b6c2c68efb2cbd86c75d87a"
 [build]
 template = "custom"
+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/libs/other/dcmtk/recipe.toml b/recipes/wip/libs/other/dcmtk/recipe.toml
index 5393073fc..158ebe943 100644
--- a/recipes/wip/libs/other/dcmtk/recipe.toml
+++ b/recipes/wip/libs/other/dcmtk/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://git.dcmtk.org/?p=dcmtk.git;a=blob;f=INSTALL;h=97087f9a05e65040264d90027912c736958e67f3;hb=HEAD#l667
+#TODO maybe incomplete script, see https://git.dcmtk.org/?p=dcmtk.git;a=blob;f=INSTALL;h=97087f9a05e65040264d90027912c736958e67f3;hb=HEAD#l667
 [source]
 tar = "https://dicom.offis.de/download/dcmtk/dcmtk367/dcmtk-3.6.7.tar.gz"
 [build]
@@ -12,3 +12,18 @@ dependencies = [
     "zlib",
     "openjpeg",
 ]
+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/libs/other/gflags/recipe.toml b/recipes/wip/libs/other/gflags/recipe.toml
index e3c77b042..09033d4ba 100644
--- a/recipes/wip/libs/other/gflags/recipe.toml
+++ b/recipes/wip/libs/other/gflags/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, see https://github.com/gflags/gflags/blob/master/INSTALL.md#compiling-the-source-code-with-cmake
+#TODO maybe incomplete script, see https://github.com/gflags/gflags/blob/master/INSTALL.md#compiling-the-source-code-with-cmake
 [source]
 git = "https://github.com/gflags/gflags"
 [build]
 template = "custom"
+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/libs/other/lammps/recipe.toml b/recipes/wip/libs/other/lammps/recipe.toml
index c24291308..450549298 100644
--- a/recipes/wip/libs/other/lammps/recipe.toml
+++ b/recipes/wip/libs/other/lammps/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://docs.lammps.org/Build_cmake.html
+#TODO maybe incomplete script, see https://docs.lammps.org/Build_cmake.html
 [source]
 git = "https://github.com/lammps/lammps"
 rev = "27e8d0f19cfd60ff513828af74d07d2c8f3c4451"
 [build]
 template = "custom"
+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/libs/other/lib2geom/recipe.toml b/recipes/wip/libs/other/lib2geom/recipe.toml
index ff0659d32..f971edf9d 100644
--- a/recipes/wip/libs/other/lib2geom/recipe.toml
+++ b/recipes/wip/libs/other/lib2geom/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://gitlab.com/inkscape/lib2geom#building
+#TODO maybe incomplete script, see https://gitlab.com/inkscape/lib2geom#building
 [source]
 git = "https://gitlab.com/inkscape/lib2geom"
 rev = "18fc32f9972dfaee597055b3226c5b7ef3bfbb4c"
@@ -10,3 +10,18 @@ dependencies = [
     "glib",
     "cairo",
 ]
+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/libs/video/libopenshot-video/recipe.toml b/recipes/wip/libs/video/libopenshot-video/recipe.toml
index a16d42220..0b861b24d 100644
--- a/recipes/wip/libs/video/libopenshot-video/recipe.toml
+++ b/recipes/wip/libs/video/libopenshot-video/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake
+#TODO maybe incomplete script
 #TODO determine dependencies - https://github.com/OpenShot/libopenshot/wiki/Linux-Build-Instructions
 [source]
 git = "https://github.com/OpenShot/libopenshot"
@@ -17,3 +17,18 @@ dependencies = [
     "babl",
     "imagemagick",
 ]
+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
+"""
-- 
GitLab