From 4657b871ae101670f45d40beb96c0120d2c2d8af Mon Sep 17 00:00:00 2001 From: Ribbon Date: Sun, 12 Oct 2025 20:20:44 -0300 Subject: [PATCH] Try to fix more CMake recipes --- recipes/wip/science/celestia-data/recipe.toml | 20 ++--------- recipes/wip/science/gromacs/recipe.toml | 22 +++--------- recipes/wip/science/openspace/recipe.toml | 20 ++--------- recipes/wip/science/qmcpack/recipe.toml | 22 +++--------- recipes/wip/science/stellarium/recipe.toml | 24 +++---------- recipes/wip/security/clamav/recipe.toml | 20 +++-------- recipes/wip/security/keepassxc/recipe.toml | 35 ++++++------------- recipes/wip/security/recdec/recipe.toml | 20 ++--------- 8 files changed, 38 insertions(+), 145 deletions(-) diff --git a/recipes/wip/science/celestia-data/recipe.toml b/recipes/wip/science/celestia-data/recipe.toml index dc195256b..06988feaf 100644 --- a/recipes/wip/science/celestia-data/recipe.toml +++ b/recipes/wip/science/celestia-data/recipe.toml @@ -1,20 +1,6 @@ -#TODO maybe incomplete script, see https://github.com/CelestiaProject/Celestia/blob/master/INSTALL.md#installing-the-content +#TODO not compiled or tested +# build instructions: https://github.com/CelestiaProject/Celestia/blob/master/INSTALL.md#installing-the-content [source] git = "https://github.com/CelestiaProject/CelestiaContent" [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 -""" +template = "cmake" diff --git a/recipes/wip/science/gromacs/recipe.toml b/recipes/wip/science/gromacs/recipe.toml index c30f71ce4..4b02ebc56 100644 --- a/recipes/wip/science/gromacs/recipe.toml +++ b/recipes/wip/science/gromacs/recipe.toml @@ -1,20 +1,6 @@ -#TODO maybe incomplete script, see https://manual.gromacs.org/current/install-guide/index.html +#TODO not compiled or tested +# build instructions: https://manual.gromacs.org/current/install-guide/index.html [source] -tar = "https://ftp.gromacs.org/gromacs/gromacs-2023.3.tar.gz" +tar = "https://ftp.gromacs.org/gromacs/gromacs-2025.3.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 -""" +template = "cmake" diff --git a/recipes/wip/science/openspace/recipe.toml b/recipes/wip/science/openspace/recipe.toml index 22de374cb..b67caa267 100644 --- a/recipes/wip/science/openspace/recipe.toml +++ b/recipes/wip/science/openspace/recipe.toml @@ -1,25 +1,11 @@ -#TODO maybe incomplete script, see https://docs.openspaceproject.com/en/latest/dev/compiling/index.html# +#TODO not compiled or tested +# build instructions: https://docs.openspaceproject.com/en/latest/dev/compiling/index.html# [source] git = "https://github.com/OpenSpace/OpenSpace" rev = "b3681167a3b95d49ac7aa7d06b07cbd88c687e9a" [build] -template = "custom" +template = "cmake" dependencies = [ "qt6-base", "libgdal", ] -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/science/qmcpack/recipe.toml b/recipes/wip/science/qmcpack/recipe.toml index 72b4aa824..33777b799 100644 --- a/recipes/wip/science/qmcpack/recipe.toml +++ b/recipes/wip/science/qmcpack/recipe.toml @@ -1,10 +1,11 @@ -#TODO maybe incomplete script, see https://qmcpack.readthedocs.io/en/develop/installation.html#building-with-cmake -#TODO probably missing dependencies +#TODO not compiled or tested +# build instructions: https://qmcpack.readthedocs.io/en/develop/installation.html#building-with-cmake +# probably missing dependencies [source] git = "https://github.com/QMCPACK/qmcpack" rev = "9d0d968139fc33f71dbf9159f526dd7b47f10a3b" [build] -template = "custom" +template = "cmake" dependencies = [ "openmpi", "openblas", @@ -13,18 +14,3 @@ dependencies = [ "boost", "fftw", ] -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/science/stellarium/recipe.toml b/recipes/wip/science/stellarium/recipe.toml index 38ded3f92..89430ec2c 100644 --- a/recipes/wip/science/stellarium/recipe.toml +++ b/recipes/wip/science/stellarium/recipe.toml @@ -1,9 +1,10 @@ -#TODO probably wrong script, see https://github.com/Stellarium/stellarium/blob/master/BUILDING.md#building -#TODO missing dependencies - https://github.com/Stellarium/stellarium/blob/master/BUILDING.md#qt6 +#TODO not compiled or tested +# build instructions: https://github.com/Stellarium/stellarium/blob/master/BUILDING.md#building +#TODO missing dependencies: https://github.com/Stellarium/stellarium/blob/master/BUILDING.md#qt6 [source] -tar = "https://github.com/Stellarium/stellarium/releases/download/v23.3/stellarium-23.3.tar.xz" +tar = "https://github.com/Stellarium/stellarium/releases/download/v25.3/stellarium-25.3.tar.xz" [build] -template = "custom" +template = "cmake" dependencies = [ "mesa", "zlib", @@ -20,18 +21,3 @@ dependencies = [ "gexiv2", "libnlopt", ] -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/security/clamav/recipe.toml b/recipes/wip/security/clamav/recipe.toml index 23435660c..e90d730ab 100644 --- a/recipes/wip/security/clamav/recipe.toml +++ b/recipes/wip/security/clamav/recipe.toml @@ -1,7 +1,8 @@ -#TODO probably wrong script, see https://docs.clamav.net/manual/Installing/Installing-from-source-Unix.html +#TODO not compiled or tested +# build instructions: https://docs.clamav.net/manual/Installing/Installing-from-source-Unix.html #TODO missing Sendmail Mail Filter API (Milter) [source] -tar = "https://www.clamav.net/downloads/production/clamav-1.2.1.tar.gz" +tar = "https://www.clamav.net/downloads/production/clamav-1.5.0.tar.gz" [build] template = "custom" dependencies = [ @@ -15,18 +16,7 @@ dependencies = [ "zlib", ] script = """ +DYNAMIC_INIT export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include/ncurses" - 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 +cookbook_cmake """ diff --git a/recipes/wip/security/keepassxc/recipe.toml b/recipes/wip/security/keepassxc/recipe.toml index ab1148bd0..3727dfa46 100644 --- a/recipes/wip/security/keepassxc/recipe.toml +++ b/recipes/wip/security/keepassxc/recipe.toml @@ -1,10 +1,16 @@ -#TODO probably wrong script, see https://github.com/keepassxreboot/keepassxc/wiki/Building-KeePassXC#linux -#TODO port to orbital -#TODO probably missing dependencies, see https://github.com/keepassxreboot/keepassxc/wiki/Set-up-Build-Environment-on-Linux#install-the-required-dependencies +#TODO not compiled or tested +# build instructions: https://github.com/keepassxreboot/keepassxc/wiki/Building-KeePassXC#linux +# probably missing dependencies, see https://github.com/keepassxreboot/keepassxc/wiki/Set-up-Build-Environment-on-Linux#install-the-required-dependencies [source] -tar = "https://github.com/keepassxreboot/keepassxc/releases/download/2.7.6/keepassxc-2.7.6-src.tar.xz" +tar = "https://github.com/keepassxreboot/keepassxc/releases/download/2.7.10/keepassxc-2.7.10-src.tar.xz" [build] -template = "custom" +template = "cmake" +cmakeflags = [ + "-DWITH_XC_AUTOTYPE=OFF", + "-DWITH_XC_UPDATECHECK=OFF", + "-DKEEPASSXC_BUILD_TYPE=Release", + "-DWITH_APP_BUNDLE=OFF", +] dependencies = [ "qt5-base", "qt5-svg", @@ -15,22 +21,3 @@ dependencies = [ "libxtst", "readline", ] -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 - -DWITH_XC_AUTOTYPE=OFF - -DWITH_XC_UPDATECHECK=OFF - -DKEEPASSXC_BUILD_TYPE=Release - -DWITH_APP_BUNDLE=OFF -"${COOKBOOK_SOURCE}" -) -cookbook_configure -""" diff --git a/recipes/wip/security/recdec/recipe.toml b/recipes/wip/security/recdec/recipe.toml index 9e1f10498..6852d2751 100644 --- a/recipes/wip/security/recdec/recipe.toml +++ b/recipes/wip/security/recdec/recipe.toml @@ -1,25 +1,11 @@ -#TODO probably wrong script, see https://github.com/avast/retdec#process +#TODO not compiled or tested +# build instructions: https://github.com/avast/retdec#process [source] git = "https://github.com/avast/retdec" rev = "53e55b4b26e9b843787f0e06d867441e32b1604e" [build] -template = "custom" +template = "cmake" dependencies = [ "openssl1", "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 -"""