Try to fix more CMake-based recipes

This commit is contained in:
Ribbon 2025-10-07 15:35:21 -03:00
parent 290d196d02
commit 5a4ab8c412
10 changed files with 84 additions and 213 deletions

View File

@ -0,0 +1,24 @@
#TODO not compiled or tested
[source]
git = "https://github.com/xTibor/VVVVVV"
upstream = "https://github.com/TerryCavanagh/VVVVVV"
branch = "redox"
script = "COOKBOOK_SOURCE=${COOKBOOK_SOURCE}/desktop_version"
[build]
template = "cmake"
cmakeflags = [
"-DSDL2_INCLUDE_DIRS=${COOKBOOK_SYSROOT}/include/SDL2",
"-DSDL2_LIBRARIES="-lSDL2main -lSDL2_mixer -lSDL2 $(${TARGET}-pkg-config --libs glu) -lorbital -lz -lvorbisfile -lvorbis -logg" .",
]
dependencies = [
"sdl2-image",
"sdl2-mixer",
"sdl2",
"liborbital",
"llvm18",
"mesa",
"mesa-glu",
"zlib",
"libogg",
"libvorbis",
]

View File

@ -0,0 +1,37 @@
#TODO not compiled or tested
[source]
git = "https://github.com/wesnoth/wesnoth"
branch = "1.14.6"
[build]
template = "cmake"
cmakeflags = [
"-DCMAKE_TRY_COMPILE_TARGET_TYPE=DYNAMIC_LIBRARY",
"-DENABLE_SERVER=OFF",
"-DENABLE_TESTS=OFF"
"-DCRYPTO_LIBRARY=openssl",
"-DSDL2_LIBRARY=sdl2",
"-DSDL2_IMAGE_LIBRARY=SDL2_image",
"-DSDL2_MIXER_LIBRARY=SDL2_mixer",
"-DSDL2_TTF_LIBRARY=SDL2_ttf",
"-DVORBISFILE_INCLUDE_DIR=${COOKBOOK_SYSROOT}/include",
"-DVORBISFILE_LIBRARY=vorbisfile ..",
]
dependencies = [
"cairo",
"freetype2",
"glib",
"libjpeg",
"liborbital",
"libpng",
"libvorbis",
"llvm18",
"mesa",
"mesa-glu",
"pcre",
"pixman",
"sdl2",
"sdl2-image",
"sdl2-mixer",
"sdl2-ttf",
"zlib",
]

View File

@ -1,38 +0,0 @@
VERSION=2.0
GIT=https://github.com/xTibor/VVVVVV
BRANCH=redox
GIT_UPSTREAM=https://github.com/TerryCavanagh/VVVVVV
BUILD_DEPENDS=(sdl2-image sdl2-mixer sdl2 liborbital llvm18 mesa mesa-glu zlib libogg libvorbis)
function recipe_version {
printf "1.0.0"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
cd desktop_version
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DBUILD_STATIC=ON \
-DBUILD_SHARED=OFF \
-DSDL2_INCLUDE_DIRS="$sysroot/include/SDL2" \
-DSDL2_LIBRARIES="-static -lSDL2main -lSDL2_mixer -lSDL2 $("${PKG_CONFIG}" --libs glu) -lorbital -lz -lvorbisfile -lvorbis -logg" \
.
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_clean {
echo "skipping clean"
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
mkdir -pv "$1/usr/games/vvvvvv"
cp ./desktop_version/VVVVVV "$1/usr/games/vvvvvv"
skip=1
}

View File

@ -1,62 +0,0 @@
VERSION=1.14.6
GIT=https://github.com/wesnoth/wesnoth.git
BRANCH=$VERSION
BUILD_DEPENDS=(
cairo
freetype2
glib
libjpeg
liborbital
libpng
libvorbis
llvm18
mesa mesa-glu
pcre
pixman
sdl2 sdl2-image sdl2-mixer sdl2-ttf
zlib
)
function recipe_version {
printf "$VERSION"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include"
export LDFLAGS="-L$sysroot/lib"
rm -rf build
mkdir -p build
cd build
set -x
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=/ \
-DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY \
-DENABLE_SERVER=OFF \
-DENABLE_TESTS=OFF \
-DCRYPTO_LIBRARY=openssl \
-DSDL2_LIBRARY=sdl2 \
-DSDL2_IMAGE_LIBRARY=SDL2_image \
-DSDL2_MIXER_LIBRARY=SDL2_mixer \
-DSDL2_TTF_LIBRARY=SDL2_ttf \
-DVORBISFILE_INCLUDE_DIR="${sysroot}/include" \
-DVORBISFILE_LIBRARY=vorbisfile \
..
VERBOSE=1 "$REDOX_MAKE" all -j"$($NPROC)"
set +x
skip=1
}
function recipe_clean {
rm -rf build
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
mkdir -pv "$dest/bin"
cp "build/wesnoth" "$dest/bin/wesnoth"
skip=1
}

View File

@ -1,11 +1,11 @@
#TODO probably wrong script, see https://wiki.blender.org/wiki/Building_Blender/Linux/Generic_Distro
#TODO probably missing dependencies
#TODO port to Orbital
#TODO customization - https://wiki.blender.org/wiki/Building_Blender/Options
#TODO not compiled or tested
# build instructions: https://wiki.blender.org/wiki/Building_Blender/Linux/Generic_Distro
# probably missing dependencies
# customization - https://wiki.blender.org/wiki/Building_Blender/Options
[source]
tar = "https://download.blender.org/source/blender-3.6.5.tar.xz"
[build]
template = "custom"
template = "cmake"
dependencies = [
"dbus",
"libdecor",
@ -24,20 +24,3 @@ dependencies = [
"mesa-x11",
"libxkbcommon",
]
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,11 +1,11 @@
#TODO probably wrong script, see https://wiki.blender.org/wiki/Building_Blender/Linux/Generic_Distro
#TODO probably missing dependencies
#TODO port to Orbital
#TODO customization - https://wiki.blender.org/wiki/Building_Blender/Options
#TODO not compiled or tested
# build instructions: https://wiki.blender.org/wiki/Building_Blender/Linux/Generic_Distro
# probably missing dependencies
# customization - https://wiki.blender.org/wiki/Building_Blender/Options
[source]
tar = "https://download.blender.org/source/blender-4.1.0.tar.xz"
[build]
template = "custom"
template = "cmake"
dependencies = [
"dbus",
"libdecor",
@ -24,20 +24,3 @@ dependencies = [
"mesa-x11",
"libxkbcommon",
]
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,10 +1,11 @@
#TODO probably wrong script, see https://github.com/opentoonz/opentoonz/blob/master/doc/how_to_build_linux.md
#TODO not compiled or tested
#TODO missing dependencies
# build instructions: https://github.com/opentoonz/opentoonz/blob/master/doc/how_to_build_linux.md
[source]
git = "https://github.com/opentoonz/opentoonz"
rev = "dd4cb36142ebf65a2aa74ff8575002863d3e17fc"
[build]
template = "custom"
template = "cmake"
dependencies = [
"boost",
"qt5-base",
@ -13,18 +14,3 @@ dependencies = [
"libmypaint",
"opencv4",
]
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,26 +1,12 @@
#TODO maybe incomplete script, see https://github.com/appleseedhq/appleseed/wiki/Building-appleseed-on-Linux
#TODO not compiled or tested
# build instructions: https://github.com/appleseedhq/appleseed/wiki/Building-appleseed-on-Linux
[source]
git = "https://github.com/appleseedhq/appleseed"
rev = "015adb503af58cb80103e0c3ddeefc20d99d204f"
[build]
template = "custom"
template = "cmake"
dependencies = [
"zlib",
"qt5-base",
"libnsl",
]
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/commonmark/cmark#installing
#TODO not compiled or tested
# build instructions: https://github.com/commonmark/cmark#installing
[source]
git = "https://github.com/commonmark/cmark"
rev = "5ba25ff40eba44c811f79ab6a792baf945b8307c"
[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,9 +1,10 @@
#TODO maybe incomplete script, see https://github.com/darktable-org/darktable?tab=readme-ov-file#linux
# dependencies - https://github.com/darktable-org/darktable?tab=readme-ov-file#dependencies
#TODO not compiled or tested
# build instructions: https://github.com/darktable-org/darktable#linux
# dependencies: https://github.com/darktable-org/darktable#dependencies
[source]
tar = "https://github.com/darktable-org/darktable/releases/download/release-4.8.0/darktable-4.8.0.tar.xz"
[build]
template = "custom"
template = "cmake"
dependencies = [
"gtk3",
"glib",
@ -17,18 +18,3 @@ dependencies = [
"libwebp",
"libgphoto2",
]
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
"""