Try to fix more CMake-based recipes

This commit is contained in:
Ribbon 2025-10-08 14:30:46 -03:00
parent 891c9a1efb
commit 352c912ce9
12 changed files with 41 additions and 185 deletions

View File

@ -1,20 +1,6 @@
#TODO maybe incomplete script, see https://chromium.googlesource.com/codecs/libwebp2/#compiling
#TODO not compiled or tested
# build instructions: 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
"""
template = "cmake"

View File

@ -1,25 +1,11 @@
#TODO maybe incomplete script, see https://github.com/pytorch/pytorch/blob/main/docs/libtorch.rst#building-libtorch-using-cmake
#TODO not compiled or tested
# build instructions: https://github.com/pytorch/pytorch/blob/main/docs/libtorch.rst#building-libtorch-using-cmake
[source]
git = "https://github.com/pytorch/pytorch"
branch = "release/2.3"
[build]
template = "custom"
script = """
mkdir pytorch-build
cd pytorch-build
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
-DBUILD_SHARED_LIBS:BOOL=OFF
-DCMAKE_BUILD_TYPE:STRING=Release -DPYTHON_EXECUTABLE:PATH=`which python3` -DCMAKE_INSTALL_PREFIX:PATH=../pytorch-install ../pytorch
"${COOKBOOK_SOURCE}"
)
cookbook_configure
"""
template = "cmake"
cmakeflags = [
"-DPYTHON_EXECUTABLE=`which python3`",
"-DCMAKE_INSTALL_PREFIX=../pytorch-install ../pytorch",
]

View File

@ -1,6 +1,7 @@
#TODO missing script for Premake or CMake, see https://github.com/bulletphysics/bullet3#build-instructions-for-bullet-using-premake-you-can-also-use-cmake-instead
#TODO not compiled or tested
# build instructions: https://github.com/bulletphysics/bullet3#build-instructions-for-bullet-using-premake-you-can-also-use-cmake-instead
[source]
git = "https://github.com/bulletphysics/bullet3"
rev = "2c204c49e56ed15ec5fcfa71d199ab6d6570b3f5"
[build]
template = "custom"
template = "cmake"

View File

@ -1,8 +1,9 @@
#TODO maybe incomplete script, see https://git.dcmtk.org/?p=dcmtk.git;a=blob;f=INSTALL;h=97087f9a05e65040264d90027912c736958e67f3;hb=HEAD#l667
#TODO not compiled or tested
# build instructions: 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]
template = "custom"
template = "cmake"
dependencies = [
"libiconv",
"libicu",
@ -12,18 +13,3 @@ 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
"""

View File

@ -1,20 +1,6 @@
#TODO probably wrong script, see https://github.com/vancegroup/freealut#building-freealut
#TODO not compiled or tested
# build instructions: https://github.com/vancegroup/freealut#building-freealut
[source]
git = "https://github.com/vancegroup/freealut"
[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"

View File

@ -1,4 +1,4 @@
#TODO port to Orbital
#TODO not compiled or tested
[source]
tar = "https://github.com/freeglut/freeglut/releases/download/v3.4.0/freeglut-3.4.0.tar.gz"
#blake3 = "08c8874d6ddad5be4860813865d4d4e2a84c294da0f3cf82a29e43920806b0da"
@ -9,6 +9,7 @@ dependencies = [
]
template = "custom"
script = """
DYNAMIC_INIT
cat > redox.cmake <<EOF
# the name of the target operating system
set(CMAKE_SYSTEM_NAME Generic)
@ -31,14 +32,9 @@ set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
EOF
COOKBOOK_CONFIGURE=cmake
COOKBOOK_CONFIGURE_FLAGS=(
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/
COOKBOOK_CMAKE_FLAGS+=(
-DCMAKE_TOOLCHAIN_FILE=redox.cmake
-DCMAKE_VERBOSE_MAKEFILE=On
-DFREEGLUT_GLES=0
"${COOKBOOK_SOURCE}"
)
cookbook_configure
cookbook_cmake
"""

View File

@ -1,20 +1,6 @@
#TODO maybe incomplete script, see https://github.com/gflags/gflags/blob/master/INSTALL.md#compiling-the-source-code-with-cmake
#TODO not compiled or tested
# build instructions: 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
"""
template = "cmake"

View File

@ -1,25 +1,10 @@
#TODO probably wrong script, see https://www.glfw.org/docs/latest/compile.html
#TODO port to orbital
#TODO not compiled or tested
# build instructions: https://www.glfw.org/docs/latest/compile.html
[source]
git = "https://github.com/glfw/glfw"
rev = "e2c92645460f680fd272fd2eed591efb2be7dc31"
[build]
template = "custom"
template = "cmake"
dependencies = [
"libxkbcommon",
]
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
"""

View File

@ -1,21 +1,7 @@
#TODO maybe wrong script, see https://github.com/json-c/json-c#build-instructions--
#TODO not compiled or tested
# build instructions: https://github.com/json-c/json-c#build-instructions--
[source]
git = "https://github.com/json-c/json-c"
rev = "b4c371fa0cbc4dcbaccc359ce9e957a22988fb34"
[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"

View File

@ -1,21 +1,7 @@
#TODO maybe incomplete script, see https://docs.lammps.org/Build_cmake.html
#TODO not compiled or tested
# build instructions: 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
"""
template = "cmake"

View File

@ -1,27 +1,13 @@
#TODO maybe incomplete script, see https://gitlab.com/inkscape/lib2geom#building
#TODO not compiled or tested
# build instructions: https://gitlab.com/inkscape/lib2geom#building
[source]
git = "https://gitlab.com/inkscape/lib2geom"
rev = "18fc32f9972dfaee597055b3226c5b7ef3bfbb4c"
[build]
template = "custom"
template = "cmake"
dependencies = [
"boost",
"libgsl",
"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
"""

View File

@ -1,21 +1,7 @@
#TODO maybe incomplete script, see https://aomedia.googlesource.com/aom/#basic-build
#TODO not compiled or tested
# build instructions: 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
"""
template = "cmake"