From 2154af0f6de2f8b1a2d68c24165d867fe60bf377 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Sat, 25 Feb 2023 10:05:22 -0700 Subject: [PATCH] Add cmake recipe --- recipes/cmake/recipe.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 recipes/cmake/recipe.toml diff --git a/recipes/cmake/recipe.toml b/recipes/cmake/recipe.toml new file mode 100644 index 000000000..7c3d24b11 --- /dev/null +++ b/recipes/cmake/recipe.toml @@ -0,0 +1,23 @@ +[source] +tar = "https://github.com/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2.tar.gz" + +[build] +template = "custom" +dependencies = [ + "openssl", +] +script = """ +COOKBOOK_CONFIGURE="cmake" +COOKBOOK_CONFIGURE_FLAGS=( + -DCMAKE_VERBOSE_MAKEFILE=On + -DCMAKE_CROSSCOMPILING=True + -DCMAKE_BUILD_TYPE=Release + -DCMAKE_INSTALL_PREFIX="/" + "${COOKBOOK_SOURCE}" +) +set -x +cookbook_configure +mv -vT "${COOKBOOK_STAGE}"/usr/bin "${COOKBOOK_STAGE}/bin" +rmdir -v "${COOKBOOK_STAGE}"/usr +set +x +""" -- GitLab