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

---
 recipes/wip/libs/other/libaom/recipe.toml       | 17 ++++++++++++++++-
 recipes/wip/libs/other/libavif/recipe.toml      | 17 ++++++++++++++++-
 recipes/wip/libs/other/libeigen/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/other/libgav1/recipe.toml      | 17 ++++++++++++++++-
 recipes/wip/libs/other/libgdal/recipe.toml      | 17 ++++++++++++++++-
 recipes/wip/libs/other/libgrantlee/recipe.toml  | 17 ++++++++++++++++-
 recipes/wip/libs/other/libheif/recipe.toml      | 17 ++++++++++++++++-
 recipes/wip/libs/other/libhidapi/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/other/libimath/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/other/libimmer/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/other/libjasper/recipe.toml    | 17 ++++++++++++++++-
 .../wip/libs/other/libjpeg-turbo/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/other/libjxl/recipe.toml       | 17 ++++++++++++++++-
 recipes/wip/libs/other/libkdcraw/recipe.toml    | 17 ++++++++++++++++-
 .../wip/libs/other/libkomparediff2/recipe.toml  | 17 ++++++++++++++++-
 recipes/wip/libs/other/liblager/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/other/liblapack/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/other/liblensfun/recipe.toml   | 17 ++++++++++++++++-
 recipes/wip/libs/other/libnlopt/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/other/libpoppler/recipe.toml   | 17 ++++++++++++++++-
 recipes/wip/libs/other/librkcommon/recipe.toml  | 17 ++++++++++++++++-
 .../wip/libs/other/libseexpr-kde/recipe.toml    | 17 ++++++++++++++++-
 recipes/wip/libs/other/libssh/recipe.toml       | 17 ++++++++++++++++-
 recipes/wip/libs/other/libwebp2/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/other/libxsimd/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/other/libxtl/recipe.toml       | 17 ++++++++++++++++-
 recipes/wip/libs/other/libzug/recipe.toml       | 17 ++++++++++++++++-
 recipes/wip/libs/other/mlt/recipe.toml          | 17 ++++++++++++++++-
 recipes/wip/libs/other/oidn/recipe.toml         | 17 ++++++++++++++++-
 recipes/wip/libs/other/onednn/recipe.toml       | 17 ++++++++++++++++-
 recipes/wip/libs/other/onetbb/recipe.toml       | 17 ++++++++++++++++-
 recipes/wip/libs/other/opencolorio/recipe.toml  | 17 ++++++++++++++++-
 recipes/wip/libs/other/openexr/recipe.toml      | 17 ++++++++++++++++-
 recipes/wip/libs/other/openjpeg/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/other/openvkl/recipe.toml      | 17 ++++++++++++++++-
 recipes/wip/libs/other/pystring/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/other/scotch/recipe.toml       | 17 ++++++++++++++++-
 recipes/wip/libs/other/simdjson/recipe.toml     | 17 ++++++++++++++++-
 recipes/wip/libs/other/snappy/recipe.toml       | 17 ++++++++++++++++-
 recipes/wip/libs/other/volk/recipe.toml         | 17 ++++++++++++++++-
 recipes/wip/libs/other/webkitgtk3/recipe.toml   | 17 ++++++++++++++++-
 recipes/wip/libs/other/webkitgtk4/recipe.toml   | 17 ++++++++++++++++-
 recipes/wip/libs/qt/qt5-webkit/recipe.toml      | 17 ++++++++++++++++-
 43 files changed, 688 insertions(+), 43 deletions(-)

diff --git a/recipes/wip/libs/other/libaom/recipe.toml b/recipes/wip/libs/other/libaom/recipe.toml
index 93e9708d5..8828c0475 100644
--- a/recipes/wip/libs/other/libaom/recipe.toml
+++ b/recipes/wip/libs/other/libaom/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://aomedia.googlesource.com/aom/#basic-build
+#TODO maybe incomplete script, see https://aomedia.googlesource.com/aom/#basic-build
 [source]
 git = "https://aomedia.googlesource.com/aom"
 rev = "aca387522ccc0a1775716923d5489dd2d4b1e628"
 [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/libavif/recipe.toml b/recipes/wip/libs/other/libavif/recipe.toml
index 12a9880e5..c5973522b 100644
--- a/recipes/wip/libs/other/libavif/recipe.toml
+++ b/recipes/wip/libs/other/libavif/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://github.com/AOMediaCodec/libavif#build-notes
+#TODO maybe incomplete script, see https://github.com/AOMediaCodec/libavif#build-notes
 [source]
 git = "https://github.com/AOMediaCodec/libavif"
 rev = "ecf2dfc1ef2908e0f4ddb0fdc03dd8db831d8ae7"
 [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/libeigen/recipe.toml b/recipes/wip/libs/other/libeigen/recipe.toml
index 6bf8ded0d..d47a471dd 100644
--- a/recipes/wip/libs/other/libeigen/recipe.toml
+++ b/recipes/wip/libs/other/libeigen/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://gitlab.com/libeigen/eigen/-/blob/master/INSTALL?ref_type=heads
+#TODO maybe incomplete script, see https://gitlab.com/libeigen/eigen/-/blob/master/INSTALL?ref_type=heads
 [source]
 git = "https://gitlab.com/libeigen/eigen"
 rev = "3147391d946bb4b6c68edd901f2add6ac1f31f8c"
 [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/libgav1/recipe.toml b/recipes/wip/libs/other/libgav1/recipe.toml
index 41f67b7fd..cd6307f6b 100644
--- a/recipes/wip/libs/other/libgav1/recipe.toml
+++ b/recipes/wip/libs/other/libgav1/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://chromium.googlesource.com/codecs/libgav1/#compile
+#TODO maybe incomplete script, see https://chromium.googlesource.com/codecs/libgav1/#compile
 [source]
 git = "https://chromium.googlesource.com/codecs/libgav1"
 rev = "e386d8f1fb983200972d159b9be47fd5d0776708"
 [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/libgdal/recipe.toml b/recipes/wip/libs/other/libgdal/recipe.toml
index 6980efe24..56944b4c5 100644
--- a/recipes/wip/libs/other/libgdal/recipe.toml
+++ b/recipes/wip/libs/other/libgdal/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, see https://gdal.org/development/building_from_source.html
+#TODO maybe incomplete script, see https://gdal.org/development/building_from_source.html
 [source]
 tar = "https://github.com/OSGeo/gdal/releases/download/v3.8.4/gdal-3.8.4.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/libs/other/libgrantlee/recipe.toml b/recipes/wip/libs/other/libgrantlee/recipe.toml
index 4a5b47f91..9e8d4f79b 100644
--- a/recipes/wip/libs/other/libgrantlee/recipe.toml
+++ b/recipes/wip/libs/other/libgrantlee/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/steveire/grantlee#installation
+#TODO maybe incomplete script, see https://github.com/steveire/grantlee#installation
 [source]
 tar = "https://github.com/steveire/grantlee/releases/download/v5.3.1/grantlee-5.3.1.tar.gz"
 [build]
@@ -6,3 +6,18 @@ template = "custom"
 dependencies = [
     "qt5-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/libs/other/libheif/recipe.toml b/recipes/wip/libs/other/libheif/recipe.toml
index e0239fc12..06588445e 100644
--- a/recipes/wip/libs/other/libheif/recipe.toml
+++ b/recipes/wip/libs/other/libheif/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/strukturag/libheif#compiling
+#TODO maybe incomplete script, see https://github.com/strukturag/libheif#compiling
 [source]
 tar = "https://github.com/strukturag/libheif/releases/download/v1.17.5/libheif-1.17.5.tar.gz"
 [build]
@@ -7,3 +7,18 @@ dependencies = [
     "x265",
     "libde265",
 ]
+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/libhidapi/recipe.toml b/recipes/wip/libs/other/libhidapi/recipe.toml
index 2589679fa..df68a63de 100644
--- a/recipes/wip/libs/other/libhidapi/recipe.toml
+++ b/recipes/wip/libs/other/libhidapi/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/libusb/hidapi/blob/master/BUILD.cmake.md
+#TODO maybe incomplete script, see https://github.com/libusb/hidapi/blob/master/BUILD.cmake.md
 [source]
 git = "https://github.com/libusb/hidapi"
 rev = "d3013f0af3f4029d82872c1a9487ea461a56dee4"
@@ -7,3 +7,18 @@ template = "custom"
 dependencies = [
     "libiconv",
 ]
+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/libimath/recipe.toml b/recipes/wip/libs/other/libimath/recipe.toml
index b149f33ac..6462725c4 100644
--- a/recipes/wip/libs/other/libimath/recipe.toml
+++ b/recipes/wip/libs/other/libimath/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://imath.readthedocs.io/en/latest/install.html#linux-macos
+#TODO maybe incomplete script, see https://imath.readthedocs.io/en/latest/install.html#linux-macos
 [source]
 git = "https://github.com/AcademySoftwareFoundation/Imath"
 rev = "d690a3fcff4e877ead5ae56c7e964595ade8a35e"
 [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/libimmer/recipe.toml b/recipes/wip/libs/other/libimmer/recipe.toml
index d291761e9..4f665fea6 100644
--- a/recipes/wip/libs/other/libimmer/recipe.toml
+++ b/recipes/wip/libs/other/libimmer/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://github.com/arximboldi/immer#usage
+#TODO maybe incomplete script, see https://github.com/arximboldi/immer#usage
 [source]
 git = "https://github.com/arximboldi/immer"
 rev = "5875f7739a6c642ad58cbedadb509c86d421217e"
 [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/libjasper/recipe.toml b/recipes/wip/libs/other/libjasper/recipe.toml
index cdbf205fb..6b1b8e722 100644
--- a/recipes/wip/libs/other/libjasper/recipe.toml
+++ b/recipes/wip/libs/other/libjasper/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, see https://github.com/jasper-software/jasper/blob/master/INSTALL.txt
+#TODO maybe incomplete script, see https://github.com/jasper-software/jasper/blob/master/INSTALL.txt
 [source]
 tar = "https://github.com/jasper-software/jasper/releases/download/version-4.1.1/jasper-4.1.1.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/libs/other/libjpeg-turbo/recipe.toml b/recipes/wip/libs/other/libjpeg-turbo/recipe.toml
index 80be4ed94..3035d42a1 100644
--- a/recipes/wip/libs/other/libjpeg-turbo/recipe.toml
+++ b/recipes/wip/libs/other/libjpeg-turbo/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, see https://github.com/libjpeg-turbo/libjpeg-turbo/blob/main/BUILDING.md#build-procedure
+#TODO maybe incomplete script, see https://github.com/libjpeg-turbo/libjpeg-turbo/blob/main/BUILDING.md#build-procedure
 [source]
 tar = "https://sourceforge.net/projects/libjpeg-turbo/files/3.0.1/libjpeg-turbo-3.0.1.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/libs/other/libjxl/recipe.toml b/recipes/wip/libs/other/libjxl/recipe.toml
index 82849ad8a..d84a54693 100644
--- a/recipes/wip/libs/other/libjxl/recipe.toml
+++ b/recipes/wip/libs/other/libjxl/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/libjxl/libjxl/blob/main/BUILDING.md
+#TODO maybe incomplete script, see https://github.com/libjxl/libjxl/blob/main/BUILDING.md
 [source]
 git = "https://github.com/libjxl/libjxl"
 rev = "954b460768c08a147abf47689ad69b0e7beff65e"
@@ -12,3 +12,18 @@ dependencies = [
     "libwebp",
     "openexr",
 ]
+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/libkdcraw/recipe.toml b/recipes/wip/libs/other/libkdcraw/recipe.toml
index 834026d76..c551a1f45 100644
--- a/recipes/wip/libs/other/libkdcraw/recipe.toml
+++ b/recipes/wip/libs/other/libkdcraw/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://invent.kde.org/graphics/libkdcraw/-/blob/master/README?ref_type=heads
+#TODO maybe incomplete script, see https://invent.kde.org/graphics/libkdcraw/-/blob/master/README?ref_type=heads
 [source]
 git = "https://invent.kde.org/graphics/libkdcraw"
 rev = "fbd01409c8009f403bccac6776fe4cfefa57d5bd"
@@ -8,3 +8,18 @@ dependencies = [
     "libraw",
     "qt5-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/libs/other/libkomparediff2/recipe.toml b/recipes/wip/libs/other/libkomparediff2/recipe.toml
index 91eefe598..3f1222db0 100644
--- a/recipes/wip/libs/other/libkomparediff2/recipe.toml
+++ b/recipes/wip/libs/other/libkomparediff2/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 git = "https://invent.kde.org/sdk/libkomparediff2"
 rev = "ea9034ee3e4952862a937255bc6cc4ee392907f6"
 [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/liblager/recipe.toml b/recipes/wip/libs/other/liblager/recipe.toml
index 27ed34660..9c03020c3 100644
--- a/recipes/wip/libs/other/liblager/recipe.toml
+++ b/recipes/wip/libs/other/liblager/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/arximboldi/lager#usage
+#TODO maybe incomplete script, see https://github.com/arximboldi/lager#usage
 [source]
 git = "https://github.com/arximboldi/lager"
 [build]
@@ -7,3 +7,18 @@ dependencies = [
     "libzug",
     "boost",
 ]
+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/liblapack/recipe.toml b/recipes/wip/libs/other/liblapack/recipe.toml
index f2d82d3e8..77b1d122a 100644
--- a/recipes/wip/libs/other/liblapack/recipe.toml
+++ b/recipes/wip/libs/other/liblapack/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://github.com/Reference-LAPACK/lapack#installation
+#TODO maybe incomplete script, see https://github.com/Reference-LAPACK/lapack#installation
 [source]
 git = "https://github.com/Reference-LAPACK/lapack"
 rev = "04b044e020a3560ccfa9988c8a80a1fb7083fc2e"
 [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/liblensfun/recipe.toml b/recipes/wip/libs/other/liblensfun/recipe.toml
index c5a36553c..e132a11fa 100644
--- a/recipes/wip/libs/other/liblensfun/recipe.toml
+++ b/recipes/wip/libs/other/liblensfun/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/lensfun/lensfun?tab=readme-ov-file#build-instructions
+#TODO maybe incomplete script, see https://github.com/lensfun/lensfun?tab=readme-ov-file#build-instructions
 [source]
 git = "https://github.com/lensfun/lensfun"
 rev = "35b19fb38e7250ea646709ef9e528d54a6a79648"
@@ -8,3 +8,18 @@ dependencies = [
     "glib",
     "libpng",
 ]
+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/libnlopt/recipe.toml b/recipes/wip/libs/other/libnlopt/recipe.toml
index b76ce21ff..f4db165c0 100644
--- a/recipes/wip/libs/other/libnlopt/recipe.toml
+++ b/recipes/wip/libs/other/libnlopt/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://github.com/stevengj/nlopt#readme
+#TODO maybe incomplete script, see https://github.com/stevengj/nlopt#readme
 [source]
 git = "https://github.com/stevengj/nlopt"
 rev = "09b3c2a6da71cabcb98d2c8facc6b83d2321ed71"
 [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/libpoppler/recipe.toml b/recipes/wip/libs/other/libpoppler/recipe.toml
index 9d202a2c7..cf4bf3049 100644
--- a/recipes/wip/libs/other/libpoppler/recipe.toml
+++ b/recipes/wip/libs/other/libpoppler/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://gitlab.freedesktop.org/poppler/poppler/-/blob/master/INSTALL?ref_type=heads
+#TODO maybe incomplete script, see https://gitlab.freedesktop.org/poppler/poppler/-/blob/master/INSTALL?ref_type=heads
 #TODO needs encoding data - https://poppler.freedesktop.org/poppler-data-0.4.12.tar.gz
 [source]
 tar = "https://poppler.freedesktop.org/poppler-23.12.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/other/librkcommon/recipe.toml b/recipes/wip/libs/other/librkcommon/recipe.toml
index 6f58a7311..10710db07 100644
--- a/recipes/wip/libs/other/librkcommon/recipe.toml
+++ b/recipes/wip/libs/other/librkcommon/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/ospray/rkcommon#building
+#TODO maybe incomplete script, see https://github.com/ospray/rkcommon#building
 [source]
 git = "https://github.com/ospray/rkcommon"
 rev = "f15291d4789a53e5980fd9b3d2639f705d675dd7"
@@ -7,3 +7,18 @@ template = "custom"
 dependencies = [
     "onetbb",
 ]
+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/libseexpr-kde/recipe.toml b/recipes/wip/libs/other/libseexpr-kde/recipe.toml
index 456e6a229..39d010df2 100644
--- a/recipes/wip/libs/other/libseexpr-kde/recipe.toml
+++ b/recipes/wip/libs/other/libseexpr-kde/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://invent.kde.org/graphics/kseexpr#super-impatient-cmake-building-and-installing-guide
+#TODO maybe incomplete script, see https://invent.kde.org/graphics/kseexpr#super-impatient-cmake-building-and-installing-guide
 [source]
 git = "https://invent.kde.org/graphics/kseexpr"
 rev = "d834b2dc6a7f452ffca4602f90b709db86a3a630"
@@ -7,3 +7,18 @@ template = "custom"
 dependencies = [
     "qt5-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/libs/other/libssh/recipe.toml b/recipes/wip/libs/other/libssh/recipe.toml
index 1b5594a8e..b75d3a277 100644
--- a/recipes/wip/libs/other/libssh/recipe.toml
+++ b/recipes/wip/libs/other/libssh/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://git.libssh.org/projects/libssh.git/tree/INSTALL#n36
+#TODO maybe incomplete script, see https://git.libssh.org/projects/libssh.git/tree/INSTALL#n36
 [source]
 tar = "https://www.libssh.org/files/0.10/libssh-0.10.6.tar.xz"
 [build]
@@ -7,3 +7,18 @@ dependencies = [
     "zlib",
     "openssl1",
 ]
+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/libwebp2/recipe.toml b/recipes/wip/libs/other/libwebp2/recipe.toml
index 6742fbb99..1f7fa851a 100644
--- a/recipes/wip/libs/other/libwebp2/recipe.toml
+++ b/recipes/wip/libs/other/libwebp2/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, see https://chromium.googlesource.com/codecs/libwebp2/#compiling
+#TODO maybe incomplete script, see https://chromium.googlesource.com/codecs/libwebp2/#compiling
 [source]
 git = "https://chromium.googlesource.com/codecs/libwebp2"
 [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/libxsimd/recipe.toml b/recipes/wip/libs/other/libxsimd/recipe.toml
index a1970a5df..eb269b444 100644
--- a/recipes/wip/libs/other/libxsimd/recipe.toml
+++ b/recipes/wip/libs/other/libxsimd/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://github.com/xtensor-stack/xsimd#install-from-sources
+#TODO maybe incomplete script, see https://github.com/xtensor-stack/xsimd#install-from-sources
 [source]
 git = "https://github.com/xtensor-stack/xsimd"
 rev = "c1247bffa8fc36de7380a5cd42673a3b32f74c97"
 [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/libxtl/recipe.toml b/recipes/wip/libs/other/libxtl/recipe.toml
index 6227f7e05..4f93588d0 100644
--- a/recipes/wip/libs/other/libxtl/recipe.toml
+++ b/recipes/wip/libs/other/libxtl/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://github.com/xtensor-stack/xtl#install-from-sources
+#TODO maybe incomplete script, see https://github.com/xtensor-stack/xtl#install-from-sources
 [source]
 git = "https://github.com/xtensor-stack/xtl"
 rev = "c95f6c8b13ffb7f74f16d3fd6882668b79bd8412"
 [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/libzug/recipe.toml b/recipes/wip/libs/other/libzug/recipe.toml
index 3e0a76463..cc550078d 100644
--- a/recipes/wip/libs/other/libzug/recipe.toml
+++ b/recipes/wip/libs/other/libzug/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/arximboldi/zug#usage
+#TODO maybe incomplete script, see https://github.com/arximboldi/zug#usage
 [source]
 git = "https://github.com/arximboldi/zug"
 [build]
@@ -6,3 +6,18 @@ template = "custom"
 dependencies = [
     "boost",
 ]
+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/mlt/recipe.toml b/recipes/wip/libs/other/mlt/recipe.toml
index 67767cd30..5fdc9d009 100644
--- a/recipes/wip/libs/other/mlt/recipe.toml
+++ b/recipes/wip/libs/other/mlt/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, see https://github.com/mltframework/mlt#readme
+#TODO maybe incomplete script, see https://github.com/mltframework/mlt#readme
 [source]
 tar = "https://github.com/mltframework/mlt/releases/download/v7.22.0/mlt-7.22.0.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/libs/other/oidn/recipe.toml b/recipes/wip/libs/other/oidn/recipe.toml
index 9299e39ae..d3bb3241f 100644
--- a/recipes/wip/libs/other/oidn/recipe.toml
+++ b/recipes/wip/libs/other/oidn/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/OpenImageDenoise/oidn#compiling-on-linuxmacos
+#TODO maybe incomplete script, see https://github.com/OpenImageDenoise/oidn#compiling-on-linuxmacos
 [source]
 git = "https://github.com/OpenImageDenoise/oidn"
 [build]
@@ -7,3 +7,18 @@ dependencies = [
     "ispc",
     "onetbb",
 ]
+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/onednn/recipe.toml b/recipes/wip/libs/other/onednn/recipe.toml
index e543b6f76..e9bb9fca1 100644
--- a/recipes/wip/libs/other/onednn/recipe.toml
+++ b/recipes/wip/libs/other/onednn/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://oneapi-src.github.io/oneDNN/dev_guide_build.html#linux-macos
+#TODO maybe incomplete script, see https://oneapi-src.github.io/oneDNN/dev_guide_build.html#linux-macos
 [source]
 git = "https://github.com/oneapi-src/oneDNN"
 rev = "16720eaaab9557158ff77ebf3bc610e9682928d6"
@@ -7,3 +7,18 @@ template = "custom"
 dependencies = [
     "onetbb",
 ]
+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/onetbb/recipe.toml b/recipes/wip/libs/other/onetbb/recipe.toml
index 09b6be63b..7fa5af42e 100644
--- a/recipes/wip/libs/other/onetbb/recipe.toml
+++ b/recipes/wip/libs/other/onetbb/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://github.com/oneapi-src/oneTBB/blob/master/INSTALL.md
+#TODO maybe incomplete script, see https://github.com/oneapi-src/oneTBB/blob/master/INSTALL.md
 [source]
 git = "https://github.com/oneapi-src/oneTBB"
 rev = "8b829acc65569019edb896c5150d427f288e8aba"
 [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/opencolorio/recipe.toml b/recipes/wip/libs/other/opencolorio/recipe.toml
index cd8155c25..c4b7bb005 100644
--- a/recipes/wip/libs/other/opencolorio/recipe.toml
+++ b/recipes/wip/libs/other/opencolorio/recipe.toml
@@ -1,5 +1,5 @@
 #TODO missing dependencies, see https://opencolorio.readthedocs.io/en/latest/quick_start/installation.html#dependencies
-#TODO missing script for CMake, see https://opencolorio.readthedocs.io/en/latest/quick_start/installation.html
+#TODO maybe incomplete script, see https://opencolorio.readthedocs.io/en/latest/quick_start/installation.html
 [source]
 git = "https://github.com/AcademySoftwareFoundation/OpenColorIO"
 rev = "92db29b9e7e298c4c2cc67c8a74944c2e7e716e5"
@@ -10,3 +10,18 @@ dependencies = [
     "imath",
     "zlib",
 ]
+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/openexr/recipe.toml b/recipes/wip/libs/other/openexr/recipe.toml
index edd4304c7..0c8bceb66 100644
--- a/recipes/wip/libs/other/openexr/recipe.toml
+++ b/recipes/wip/libs/other/openexr/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://openexr.com/en/latest/install.html#linux-macos
+#TODO maybe incomplete script, see https://openexr.com/en/latest/install.html#linux-macos
 [source]
 git = "https://github.com/AcademySoftwareFoundation/openexr"
 rev = "737b2707a001e67f3812d86a639c3d037efe2ea8"
@@ -8,3 +8,18 @@ dependencies = [
     "libdeflate",
     "libimath"
 ]
+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/openjpeg/recipe.toml b/recipes/wip/libs/other/openjpeg/recipe.toml
index de04008a2..a1f373320 100644
--- a/recipes/wip/libs/other/openjpeg/recipe.toml
+++ b/recipes/wip/libs/other/openjpeg/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://github.com/uclouvain/openjpeg/blob/master/INSTALL.md
+#TODO maybe incomplete script, see https://github.com/uclouvain/openjpeg/blob/master/INSTALL.md
 [source]
 git = "https://github.com/uclouvain/openjpeg"
 rev = "a5891555eb49ed7cc26b2901ea680acda136d811"
 [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/openvkl/recipe.toml b/recipes/wip/libs/other/openvkl/recipe.toml
index ddad67795..c4d82da5a 100644
--- a/recipes/wip/libs/other/openvkl/recipe.toml
+++ b/recipes/wip/libs/other/openvkl/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake, see https://github.com/openvkl/openvkl#building-open-vkl-from-source
+#TODO maybe incomplete script, see https://github.com/openvkl/openvkl#building-open-vkl-from-source
 [source]
 git = "https://github.com/openvkl/openvkl"
 rev = "712bdb8035487606096d7af90a4c9bde5503515d"
@@ -10,3 +10,18 @@ dependencies = [
     "embree",
     "level-zero",
 ]
+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/pystring/recipe.toml b/recipes/wip/libs/other/pystring/recipe.toml
index d6e408eaa..3d66d82ad 100644
--- a/recipes/wip/libs/other/pystring/recipe.toml
+++ b/recipes/wip/libs/other/pystring/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, lacking build instructions
+#TODO maybe incomplete script, lacking build instructions
 [source]
 git = "https://github.com/imageworks/pystring"
 rev = "7d16bc814ccb4cad03c300dcb77440034caa84f7"
 [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/scotch/recipe.toml b/recipes/wip/libs/other/scotch/recipe.toml
index 5a01f407e..2b28b4895 100644
--- a/recipes/wip/libs/other/scotch/recipe.toml
+++ b/recipes/wip/libs/other/scotch/recipe.toml
@@ -1,7 +1,22 @@
-#TODO missing script for CMake, see https://gitlab.inria.fr/scotch/scotch#installation
+#TODO maybe incomplete script, see https://gitlab.inria.fr/scotch/scotch#installation
 #TODO probably missing dependencies
 [source]
 git = "https://gitlab.inria.fr/scotch/scotch"
 rev = "82ec87f558f4acb7ccb69a079f531be380504c92"
 [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/simdjson/recipe.toml b/recipes/wip/libs/other/simdjson/recipe.toml
index 5b8cda08d..08031f96a 100644
--- a/recipes/wip/libs/other/simdjson/recipe.toml
+++ b/recipes/wip/libs/other/simdjson/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://github.com/simdjson/simdjson/blob/master/HACKING.md#usage-cmake-on-64-bit-platforms-like-linux-freebsd-or-macos
+#TODO maybe incomplete script, see https://github.com/simdjson/simdjson/blob/master/HACKING.md#usage-cmake-on-64-bit-platforms-like-linux-freebsd-or-macos
 [source]
 git = "https://github.com/simdjson/simdjson"
 rev = "6060be2fdf62edf4a8f51a8b0883d57d09397b30"
 [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/snappy/recipe.toml b/recipes/wip/libs/other/snappy/recipe.toml
index d97d74228..ba3623122 100644
--- a/recipes/wip/libs/other/snappy/recipe.toml
+++ b/recipes/wip/libs/other/snappy/recipe.toml
@@ -1,6 +1,21 @@
-#TODO missing script for CMake, see https://github.com/google/snappy#building
+#TODO maybe incomplete script, see https://github.com/google/snappy#building
 [source]
 git = "https://github.com/google/snappy"
 rev = "dc05e026488865bc69313a68bcc03ef2e4ea8e83"
 [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/volk/recipe.toml b/recipes/wip/libs/other/volk/recipe.toml
index e244f5fc7..656e4f7e0 100644
--- a/recipes/wip/libs/other/volk/recipe.toml
+++ b/recipes/wip/libs/other/volk/recipe.toml
@@ -1,5 +1,20 @@
-#TODO missing script for CMake, see https://github.com/gnuradio/volk#building-on-most-x86-32-bit-and-64-bit-platforms
+#TODO maybe incomplete script, see https://github.com/gnuradio/volk#building-on-most-x86-32-bit-and-64-bit-platforms
 [source]
 tar = "https://www.libvolk.org/releases/volk-3.0.0.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/libs/other/webkitgtk3/recipe.toml b/recipes/wip/libs/other/webkitgtk3/recipe.toml
index 2c9c60a5a..acb9546cb 100644
--- a/recipes/wip/libs/other/webkitgtk3/recipe.toml
+++ b/recipes/wip/libs/other/webkitgtk3/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake and Ninja, see https://trac.webkit.org/wiki/BuildingGtk#BuildingWebKitGTKfromareleasetarball
+#TODO missing script for Ninja, see https://trac.webkit.org/wiki/BuildingGtk#BuildingWebKitGTKfromareleasetarball
 #TODO port to orbital
 #TODO missing dependencies, see https://archlinux.org/packages/extra/x86_64/webkitgtk-6.0/
 [source]
@@ -23,3 +23,18 @@ dependencies = [
     "zlib",
     "sqlite3",
 ]
+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/webkitgtk4/recipe.toml b/recipes/wip/libs/other/webkitgtk4/recipe.toml
index f03086883..442fe96a7 100644
--- a/recipes/wip/libs/other/webkitgtk4/recipe.toml
+++ b/recipes/wip/libs/other/webkitgtk4/recipe.toml
@@ -1,4 +1,4 @@
-#TODO missing script for CMake and Ninja, see https://trac.webkit.org/wiki/BuildingGtk#BuildingWebKitGTKfromareleasetarball
+#TODO missing script for Ninja, see https://trac.webkit.org/wiki/BuildingGtk#BuildingWebKitGTKfromareleasetarball
 #TODO port to orbital
 #TODO missing dependencies, see https://archlinux.org/packages/extra/x86_64/webkitgtk-6.0/
 [source]
@@ -23,3 +23,18 @@ dependencies = [
     "zlib",
     "sqlite3",
 ]
+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/qt/qt5-webkit/recipe.toml b/recipes/wip/libs/qt/qt5-webkit/recipe.toml
index 38b70a365..450cdd695 100644
--- a/recipes/wip/libs/qt/qt5-webkit/recipe.toml
+++ b/recipes/wip/libs/qt/qt5-webkit/recipe.toml
@@ -1,5 +1,5 @@
 #TODO probably wrong branch
-#TODO missing script for CMake, see https://github.com/qtwebkit/qtwebkit/wiki/Building-QtWebKit-on-Linux
+#TODO maybe incomplete script, see https://github.com/qtwebkit/qtwebkit/wiki/Building-QtWebKit-on-Linux
 #TODO determine dependencies
 [source]
 git = "https://github.com/movableink/webkit"
@@ -25,3 +25,18 @@ dependencies = [
     "glib",
     "gstreamer",
 ]
+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