Try to fix more CMake-based recipes

This commit is contained in:
Ribbon 2025-10-06 18:19:49 -03:00
parent 2327795aaa
commit 592ffa6574
13 changed files with 60 additions and 211 deletions

View File

@ -1,4 +1,5 @@
#TODO maybe incomplete script, read https://github.com/unicorn-engine/unicorn/blob/master/docs/COMPILE.md
#TODO not compiled or tested
# build instructions: https://github.com/unicorn-engine/unicorn/blob/master/docs/COMPILE.md
[source]
git = "https://github.com/unicorn-engine/unicorn"
rev = "e9c1c17f6df8f8f5da85ee80ad527452db5870ce"

View File

@ -1,5 +1,5 @@
#TODO maybe incomplete script, see https://github.com/melonDS-emu/melonDS#linux
#TODO make all dependencies work
#TODO not compiled or tested yet
# build instructions: https://github.com/melonDS-emu/melonDS#linux
[source]
git = "https://github.com/melonDS-emu/melonDS"
rev = "430de6b2702bb93faa8c2004aff3fbd084db4a1e"

View File

@ -1,6 +1,6 @@
#TODO probably wrong script, see https://github.com/dolphin-emu/dolphin/wiki/Building-for-Linux
#TODO not compiled or tested yet
# build instructions: https://github.com/dolphin-emu/dolphin/wiki/Building-for-Linux
#TODO probably missing dependencies
#TODO make all dependencies work
[source]
git = "https://github.com/dolphin-emu/dolphin"
[build]

View File

@ -1,29 +1,13 @@
#TODO probably wrong script, see https://github.com/stenzek/duckstation#linux-1
#TODO not compiled or tested yet
# build instructions: https://github.com/stenzek/duckstation#linux-1
#TODO make qt6 work
[source]
tar = "https://github.com/stenzek/duckstation"
[build]
template = "custom"
template = "cmake"
dependencies = [
"sdl2",
"qt6-base",
"qt6-svg",
"qt6-tools",
]
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,12 @@
#TODO probably wrong script, see https://github.com/PCSX2/pcsx2/wiki/10-Building-on-Linux
#TODO not compiled or tested yet
# build instructions: https://github.com/PCSX2/pcsx2/wiki/10-Building-on-Linux
#TODO probably need patches on submodules
#TODO determine dependencies - https://aur.archlinux.org/packages/pcsx2-git
#TODO make all dependencies work
[source]
git = "https://github.com/PCSX2/pcsx2.git"
[build]
template = "custom"
template = "cmake"
dependencies = [
"sdl2",
"xz",
@ -23,20 +24,3 @@ dependencies = [
"libxml2",
"ffmpeg6",
]
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 @@
[source]
git = "https://github.com/jpd002/Play-"
[build]
template = "custom"
template = "cmake"
dependencies = [
"openal",
"libevdev",
@ -12,20 +12,3 @@ dependencies = [
"qt5-x11extras",
"sqlite3",
]
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,22 @@
#TODO finish script, see https://github.com/RPCS3/rpcs3/blob/master/BUILDING.md#linux-1
#TODO not compiled or tested yet
#TODO missing dependencies
# build instructions: https://github.com/RPCS3/rpcs3/blob/master/BUILDING.md#linux-1
# customization - https://wiki.rpcs3.net/index.php?title=Help:Building_RPCS3#CMake_Build_Options
[source]
git = "https://github.com/RPCS3/rpcs3"
[build]
template = "custom"
template = "cmake"
cmakeflags = [
"-DUSE_NATIVE_INSTRUCTIONS=OFF",
"-DWITH_LLVM=OFF",
"-DUSE_ALSA=OFF",
"-DUSE_PULSE=OFF",
"-DUSE_LIBEVDEV=OFF",
"-DUSE_DISCORD_RPC=OFF",
"-DBUILD_LLVM_SUBMODULE=OFF",
"-DUSE_SYSTEM_FFMPEG=ON",
"-DUSE_VULKAN=OFF",
]
dependencies = [
"mesa-x11",
"qt6-base",
@ -22,25 +34,3 @@ dependencies = [
"pulseaudio",
"ffmpeg6",
]
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="/"
-DUSE_NATIVE_INSTRUCTIONS=OFF
-DWITH_LLVM=OFF
-DUSE_ALSA=OFF
-DUSE_PULSE=OFF
-DUSE_LIBEVDEV=OFF
-DUSE_DISCORD_RPC=OFF
-DBUILD_LLVM_SUBMODULE=OFF
-DUSE_SYSTEM_FFMPEG=ON
-DUSE_VULKAN=OFF
"${COOKBOOK_SOURCE}"
)
cookbook_configure
"""

View File

@ -1,27 +1,5 @@
#TODO maybe incomplete script, see https://github.com/obhq/obliteration#configure-build-system
#TODO probably missing dependencies
#TODO make qt6 work
#TODO missing script, see: https://github.com/obhq/obliteration/blob/main/docs/building.md
[source]
git = "https://github.com/obhq/obliteration"
[build]
template = "custom"
dependencies = [
"qt6-base",
]
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,13 @@
#TODO maybe incomplete script for cmake
#TODO not compiled or tested
#TODO missing dependencies
# build instructions - https://github.com/shadps4-emu/shadPS4/blob/main/documents/building-linux.md
[source]
git = "https://github.com/shadps4-emu/shadPS4"
[build]
template = "custom"
template = "cmake"
cmakeflags = [
"-DENABLE_QT_GUI=ON"
]
dependencies = [
"pulseaudio",
"openal",
@ -18,21 +21,3 @@ dependencies = [
"qt6-multimedia",
"libvulkan",
]
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
-DENABLE_QT_GUI=ON
"${COOKBOOK_SOURCE}"
)
cookbook_configure
"""

View File

@ -1,33 +1,13 @@
#TODO not compiled or tested yet
# build instructions: https://github.com/hrydgard/ppsspp/wiki/Build-instructions
#git = "https://github.com/jackpot51/ppsspp" # wip port to orbital
[source]
git = "https://github.com/jackpot51/ppsspp"
git = "https://github.com/hrydgard/ppsspp"
[build]
template = "custom"
dependencies = [
"liborbital",
"llvm18",
"mesa",
"mesa-glu",
"sdl2",
"zlib",
"glew",
]
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"
template = "cmake"
cmakeflags = [
-DCMAKE_C_FLAGS="-I${COOKBOOK_SYSROOT}/include -I${COOKBOOK_SYSROOT}/include/SDL2"
-DCMAKE_CXX_FLAGS="-I${COOKBOOK_SYSROOT}/include -I${COOKBOOK_SYSROOT}/include/SDL2"
-DCMAKE_INSTALL_PREFIX="/"
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
-DCMAKE_SYSTEM_NAME=Generic
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
-DCMAKE_VERBOSE_MAKEFILE=On
-DOPENGL_opengl_LIBRARY="/dev/null"
-DOPENGL_glx_LIBRARY="/dev/null"
-DUSE_DISCORD=OFF
@ -39,7 +19,16 @@ COOKBOOK_CONFIGURE_FLAGS=(
-DUSING_GLES2=OFF
-DUSING_X11_VULKAN=OFF
-DUNIX=ON
"${COOKBOOK_SOURCE}"
)
cookbook_configure
"""
]
dependencies = [
#"liborbital",
"llvm18",
"mesa",
"mesa-glu",
"sdl2",
"sdl2-ttf",
"zlib",
"glew",
"fontconfig",
"curl",
]

View File

@ -1,27 +1,11 @@
#TODO probalby wrong script, see https://github.com/Vita3K/Vita3K/blob/master/building.md#linux
#TODO not compiled or tested yet
# build instructions: https://github.com/Vita3K/Vita3K/blob/master/building.md#linux
[source]
git = "https://github.com/Vita3K/Vita3K"
[build]
template = "custom"
template = "cmake"
dependencies = [
"sdl2",
"gtk3",
"openssl1",
]
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,27 +1,13 @@
#TODO maybe incomplete script, see https://github.com/devmiyax/yabause/blob/master/yabause/README.LIN#L77
#TODO not compiled or tested yet
# build instructions: https://github.com/devmiyax/yabause/blob/master/yabause/README.LIN#L77
#TODO make gtk2 work
[source]
git = "https://github.com/devmiyax/yabause"
[build]
template = "custom"
template = "cmake"
dependencies = [
"gtk2",
"sdl2",
"mesa",
"gtkglext",
]
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,10 +1,10 @@
#TODO probably wrong script, see https://github.com/snes9xgit/snes9x/wiki/Compiling
#TODO make gtk3 work
#TODO not compiled or tested
# build instructions: https://github.com/snes9xgit/snes9x/wiki/Compiling
[source]
git = "https://github.com/snes9xgit/snes9x"
rev = "8b82d487937d9ea39f7229d280c6f6686c415fe7"
[build]
template = "custom"
template = "cmake"
dependencies = [
"sdl2",
"gtk3mm",
@ -13,18 +13,3 @@ dependencies = [
"libx11",
"libepoxy",
]
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
"""