Try to fix more CMake-based recipes

This commit is contained in:
Ribbon 2025-10-08 15:17:02 -03:00
parent f8873a43b3
commit fefa095ed6
10 changed files with 30 additions and 170 deletions

View File

@ -1,21 +1,7 @@
#TODO maybe incomplete script, see https://imath.readthedocs.io/en/latest/install.html#linux-macos
#TODO not compiled or tested
# build instructions: 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
"""
template = "cmake"

View File

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

View File

@ -1,20 +1,6 @@
#TODO maybe incomplete script, see https://github.com/jasper-software/jasper/blob/master/INSTALL.txt
#TODO not compiled or tested
# build instructions: 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
"""
template = "cmake"

View File

@ -1,25 +1,11 @@
#TODO maybe incomplete script, see https://invent.kde.org/graphics/libkdcraw/-/blob/master/README?ref_type=heads
#TODO not compiled or tested
# build instructions: https://invent.kde.org/graphics/libkdcraw/-/blob/master/README?ref_type=heads
[source]
git = "https://invent.kde.org/graphics/libkdcraw"
rev = "fbd01409c8009f403bccac6776fe4cfefa57d5bd"
[build]
template = "custom"
template = "cmake"
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
"""

View File

@ -1,21 +1,7 @@
#TODO maybe incomplete script, lacking build instructions
#TODO not compiled or tested
# 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
"""
template = "cmake"

View File

@ -1,24 +1,10 @@
#TODO maybe incomplete script, see https://github.com/arximboldi/lager#usage
#TODO not compiled or tested
# build instructions: https://github.com/arximboldi/lager#usage
[source]
git = "https://github.com/arximboldi/lager"
[build]
template = "custom"
template = "cmake"
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
"""

View File

@ -1,21 +1,7 @@
#TODO maybe incomplete script, see https://github.com/Reference-LAPACK/lapack#installation
#TODO not compiled or tested
# build instructions: 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
"""
template = "cmake"

View File

@ -1,25 +1,11 @@
#TODO maybe incomplete script, see https://github.com/lensfun/lensfun?tab=readme-ov-file#build-instructions
#TODO not compiled or tested
# build instructions: https://github.com/lensfun/lensfun?tab=readme-ov-file#build-instructions
[source]
git = "https://github.com/lensfun/lensfun"
rev = "35b19fb38e7250ea646709ef9e528d54a6a79648"
[build]
template = "custom"
template = "cmake"
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
"""

View File

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

View File

@ -1,24 +1,10 @@
#TODO maybe incomplete script, see https://github.com/ospray/rkcommon#building
#TODO not compiled or tested
# build instructions: https://github.com/ospray/rkcommon#building
[source]
git = "https://github.com/ospray/rkcommon"
rev = "f15291d4789a53e5980fd9b3d2639f705d675dd7"
[build]
template = "custom"
template = "cmake"
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
"""