Try to fix more CMake-based recipes

This commit is contained in:
Ribbon 2025-10-07 14:13:06 -03:00
parent ba7c6468b3
commit 44a7e9174a
10 changed files with 50 additions and 178 deletions

View File

@ -1,10 +1,13 @@
#TODO probably wrong script, see https://docs.darlinghq.org/build-instructions.html#building-and-installing
#TODO not compiled or tested
# build instructions: https://docs.darlinghq.org/build-instructions.html#building-and-installing
#TODO require Git LFS installed on host
#TODO port to orbital?
[source]
git = "https://github.com/darlinghq/darling"
[build]
template = "custom"
template = "cmake"
cmakeflags = [
"-DTARGET_i386=OFF"
]
dependencies = [
"libfuse3",
"libevdev",
@ -20,21 +23,3 @@ dependencies = [
"openssl1",
"libxkbfile",
]
script = """
DYNAMIC_INIT
COOKBOOK_CONFIGURE="cmake"
COOKBOOK_CONFIGURE_FLAGS=(
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CROSSCOMPILING=True
-DCMAKE_CXX_COMPILER="${TARGET}-g++"
-DCMAKE_C_COMPILER="${TARGET}-gcc"
-DCMAKE_INSTALL_PREFIX="/"
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
-DCMAKE_SYSTEM_NAME=Generic
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
-DCMAKE_VERBOSE_MAKEFILE=On
-DTARGET_i386=OFF
"${COOKBOOK_SOURCE}"
)
cookbook_configure
"""

View File

@ -1,27 +1,15 @@
#TODO probably wrong script, see https://xmrig.com/docs/miner/build/ubuntu
#TODO customization - https://xmrig.com/docs/miner/cmake-options
#TODO not compiled or tested
# build instructions: https://xmrig.com/docs/miner/build/ubuntu
# customization - https://xmrig.com/docs/miner/cmake-options
[source]
git = "https://github.com/xmrig/xmrig"
rev = "8084ff37a5c8935c649a2e362da0fe570c79a2c2"
[build]
template = "custom"
template = "cmake"
#cmakeflags = [
# "-DOPENSSL_ROOT_DIR=${COOKBOOK_SYSROOT}" # test if the program need this
#]
dependencies = [
"openssl1",
"libuv",
]
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
-DOPENSSL_ROOT_DIR="${COOKBOOK_SYSROOT}"
"${COOKBOOK_SOURCE}"
)
cookbook_configure
"""

View File

@ -1,23 +1,9 @@
#TODO maybe incomplete script, see https://cvmfs.readthedocs.io/en/stable/cpt-quickstart.html#building-from-source
#TODO not compiled or tested
# build instructions: https://cvmfs.readthedocs.io/en/stable/cpt-quickstart.html#building-from-source
[source]
tar = "https://ecsft.cern.ch/dist/cvmfs/cvmfs-2.11.2/source.tar.gz"
[build]
template = "custom"
template = "cmake"
dependencies = [
"libfuse3",
]
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,13 +1,14 @@
#TODO probably wrong script, see https://github.com/mhx/dwarfs#building
#TODO not compiled or tested
# build instructions: https://github.com/mhx/dwarfs#building
#TODO missing dependencies, see https://github.com/mhx/dwarfs#dependencies
[source]
tar = "https://github.com/mhx/dwarfs/releases/download/v0.7.2/dwarfs-0.7.2.tar.xz"
[build]
template = "custom"
template = "cmake"
dependencies = [
"libfuse3",
"boost",
"brotli",
"libbrotli",
"libevent",
"openssl1",
"lz4",
@ -15,18 +16,3 @@ dependencies = [
"libunwind",
"libfmt",
]
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,8 +1,9 @@
#TODO probably wrong script, see https://github.com/opentomb/OpenTomb#compiling
#TODO not compiled or tested
# build instructions: https://github.com/opentomb/OpenTomb#compiling
[source]
git = "https://github.com/opentomb/OpenTomb"
[build]
template = "custom"
template = "cmake"
dependencies = [
"sdl2",
"libpng",
@ -10,18 +11,3 @@ dependencies = [
"openal",
"mesa",
]
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,9 +1,10 @@
#TODO not compiled or tested
#TODO probably missing dependencies, see https://github.com/xtreme8000/BetterSpades#build-requirements
#TODO probably wrong script, see https://github.com/xtreme8000/BetterSpades#linux
# build instructions: https://github.com/xtreme8000/BetterSpades#linux
[source]
git = "https://github.com/xtreme8000/BetterSpades"
[build]
template = "custom"
template = "cmake"
dependencies = [
"glfw3",
"openal",
@ -12,18 +13,3 @@ dependencies = [
"glew",
"mesa",
]
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,28 +1,12 @@
#TODO maybe incomplete script, see https://github.com/etlegacy/etlegacy#compile-and-install
#TODO not compiled or tested
# build instructions: https://github.com/etlegacy/etlegacy#compile-and-install
[source]
git = "https://github.com/etlegacy/etlegacy"
rev = "956269f4c13ebe31ba2a0f0b805588383209bd5b"
[build]
template = "custom"
template = "cmake"
dependencies = [
"sdl2",
"openssl1",
"mesa",
]
script = """
DYNAMIC_INIT
COOKBOOK_CONFIGURE="cmake"
COOKBOOK_CONFIGURE_FLAGS=(
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CROSSCOMPILING=True
-DCMAKE_CXX_COMPILER="${TARGET}-g++"
-DCMAKE_C_COMPILER="${TARGET}-gcc"
-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

@ -3,7 +3,7 @@
git = "https://github.com/ZDoom/gzdoom"
rev = "6ce809efe2902e43ceaa7031b875225d3a0367de"
[build]
template = "custom"
template = "cmake"
dependencies = [
"sdl2",
"mesa",
@ -11,20 +11,3 @@ dependencies = [
"openal",
"zmusic",
]
script = """
DYNAMIC_INIT
COOKBOOK_CONFIGURE="cmake"
COOKBOOK_CONFIGURE_FLAGS=(
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CROSSCOMPILING=True
-DCMAKE_CXX_COMPILER="${TARGET}-g++"
-DCMAKE_C_COMPILER="${TARGET}-gcc"
-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,6 +1,5 @@
#TODO probably wrong script, see https://github.com/yvt/openspades#on-unixes-from-source
#TODO port GLEW to Orbital
#TODO add the FOSS assets on the script, see https://github.com/DeathByDenim/openspades-free-pak
#TODO not compiled or tested
# build instructions: https://github.com/yvt/openspades#on-unixes-from-source
[source]
git = "https://github.com/yvt/openspades"
[build]
@ -16,21 +15,16 @@ dependencies = [
"opusfile",
"libjpeg",
"openal",
"curl",
"libxinerama",
"libxft",
]
script = """
DYNAMIC_INIT
COOKBOOK_CONFIGURE="cmake"
COOKBOOK_CONFIGURE_FLAGS=(
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CROSSCOMPILING=True
-DCMAKE_CXX_COMPILER="${TARGET}-g++"
-DCMAKE_C_COMPILER="${TARGET}-gcc"
-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_CMAKE_FLAGS+=(
-DOPENSPADES_NONFREE_RESOURCES=OFF
)
cookbook_configure
cookbook_cmake
wget https://github.com/DeathByDenim/openspades-free-pak/releases/download/latest/pak001-Free.pak \
"${COOKBOOK_STAGE}"/usr/share/openspades/Resources
"""

View File

@ -1,6 +1,5 @@
#TODO probably wrong script, see https://github.com/yvt/openspades#on-unixes-from-source
#TODO port GLEW to Orbital
#TODO add the FOSS assets on the script, see https://github.com/DeathByDenim/openspades-free-pak
#TODO not compiled or tested
# build instructions: https://github.com/yvt/openspades#on-unixes-from-source
[source]
git = "https://github.com/siecvi/zerospades"
[build]
@ -16,21 +15,16 @@ dependencies = [
"opusfile",
"libjpeg",
"openal",
"curl",
"libxinerama",
"libxft",
]
script = """
DYNAMIC_INIT
COOKBOOK_CONFIGURE="cmake"
COOKBOOK_CONFIGURE_FLAGS=(
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CROSSCOMPILING=True
-DCMAKE_CXX_COMPILER="${TARGET}-g++"
-DCMAKE_C_COMPILER="${TARGET}-gcc"
-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_CMAKE_FLAGS+=(
-DOPENSPADES_NONFREE_RESOURCES=OFF
)
cookbook_configure
cookbook_cmake
wget https://github.com/DeathByDenim/openspades-free-pak/releases/download/latest/pak001-Free.pak \
"${COOKBOOK_STAGE}"/usr/share/openspades/Resources
"""