redox/recipes/wip/libs/other/lammps/recipe.toml
2024-06-30 08:12:12 +00:00

22 lines
625 B
TOML

#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
"""