From 15f9719a2225089a8ad0317343d80536bbbfb76a Mon Sep 17 00:00:00 2001 From: Ribbon Date: Fri, 13 Mar 2026 14:16:05 -0300 Subject: [PATCH] Improve and try to fix more emulation recipes --- .../game-console/ps1/duckstation/recipe.toml | 5 +++-- .../wip/emu/game-console/ps1/rpsx/recipe.toml | 7 ++----- .../game-console/ps1/trapezoid/recipe.toml | 7 ++----- .../wip/emu/game-console/rpcs3/recipe.toml | 4 ++-- .../wip/emu/game-console/shadps4/recipe.toml | 12 ++++++------ .../wip/emu/game-console/snes9x/recipe.toml | 12 ++++++++---- .../wip/emu/game-console/tetanes/recipe.toml | 1 + .../emu/game-console/uoyabause/recipe.toml | 9 +++++++-- .../wip/emu/game-console/vita3k/recipe.toml | 3 +++ recipes/wip/emu/mobile/touchhle/recipe.toml | 8 ++------ recipes/wip/emu/mobile/wie/recipe.toml | 7 +++---- recipes/wip/emu/pc/martypc/recipe.toml | 7 +++---- recipes/wip/emu/pc/opengmk/recipe.toml | 8 +++----- recipes/wip/emu/pc/ruffle/recipe.toml | 7 ++----- recipes/wip/emu/security/rust-u2f/recipe.toml | 4 ++-- recipes/wip/emu/win/boxedwine/recipe.toml | 2 +- recipes/wip/emu/win/retrowin32/recipe.toml | 19 ++++--------------- 17 files changed, 54 insertions(+), 68 deletions(-) diff --git a/recipes/wip/emu/game-console/ps1/duckstation/recipe.toml b/recipes/wip/emu/game-console/ps1/duckstation/recipe.toml index e48f39f54..cadb8ab49 100644 --- a/recipes/wip/emu/game-console/ps1/duckstation/recipe.toml +++ b/recipes/wip/emu/game-console/ps1/duckstation/recipe.toml @@ -1,4 +1,5 @@ #TODO not compiled or tested yet +#TODO determine minimum dependencies from cmake log # build instructions: https://github.com/stenzek/duckstation#linux-1 [source] git = "https://github.com/stenzek/duckstation" @@ -13,9 +14,9 @@ cmakeflags = [ "-DBUILD_QT_FRONTEND=OFF", "-DBUILD_MINI_FRONTEND=ON", ] -dependencies = [ +#dependencies = [ #"sdl2", #"qt6-base", #"qt6-svg", #"qt6-tools", -] +#] diff --git a/recipes/wip/emu/game-console/ps1/rpsx/recipe.toml b/recipes/wip/emu/game-console/ps1/rpsx/recipe.toml index 42593ea63..846dfa1cc 100644 --- a/recipes/wip/emu/game-console/ps1/rpsx/recipe.toml +++ b/recipes/wip/emu/game-console/ps1/rpsx/recipe.toml @@ -1,12 +1,9 @@ #TODO Not compiled or tested [source] git = "https://github.com/KieronJ/rpsx" +shallow_clone = true [build] -template = "custom" +template = "cargo" dependencies = [ "sdl2", ] -script = """ -DYNAMIC_INIT -cookbook_cargo -""" diff --git a/recipes/wip/emu/game-console/ps1/trapezoid/recipe.toml b/recipes/wip/emu/game-console/ps1/trapezoid/recipe.toml index a91f5cb09..cdd730d5d 100644 --- a/recipes/wip/emu/game-console/ps1/trapezoid/recipe.toml +++ b/recipes/wip/emu/game-console/ps1/trapezoid/recipe.toml @@ -1,12 +1,9 @@ #TODO not compiled or tested [source] git = "https://github.com/Amjad50/Trapezoid" +shallow_clone = true [build] -template = "custom" +template = "cargo" dependencies = [ "shaderc", ] -script = """ -DYNAMIC_INIT -cookbook_cargo -""" diff --git a/recipes/wip/emu/game-console/rpcs3/recipe.toml b/recipes/wip/emu/game-console/rpcs3/recipe.toml index 29a04d5ae..6b8245bf2 100644 --- a/recipes/wip/emu/game-console/rpcs3/recipe.toml +++ b/recipes/wip/emu/game-console/rpcs3/recipe.toml @@ -29,7 +29,7 @@ dependencies = [ "qt6-declarative", "curl", "opencv4", - "sdl2", + "sdl3", #"eudev", #"glew", "openal", @@ -39,6 +39,6 @@ dependencies = [ #"libevdev", #"libedit", #"libvulkan", - #"pulseaudio", + #"libpulse", #"ffmpeg6", ] diff --git a/recipes/wip/emu/game-console/shadps4/recipe.toml b/recipes/wip/emu/game-console/shadps4/recipe.toml index 12bdf524d..da6ba97ee 100644 --- a/recipes/wip/emu/game-console/shadps4/recipe.toml +++ b/recipes/wip/emu/game-console/shadps4/recipe.toml @@ -5,11 +5,11 @@ git = "https://github.com/shadps4-emu/shadPS4" [build] template = "cmake" -cmakeflags = [ - "-DENABLE_QT_GUI=ON" -] +#cmakeflags = [ + #"-DENABLE_QT_GUI=ON" +#] dependencies = [ - "pulseaudio", + "libpulse", "openal", "openssl3", "libedit", @@ -17,7 +17,7 @@ dependencies = [ "libevdev", "sdl2", "sndio", - "qt6-base", - "qt6-multimedia", + #"qt6-base", + #"qt6-multimedia", "libvulkan", ] diff --git a/recipes/wip/emu/game-console/snes9x/recipe.toml b/recipes/wip/emu/game-console/snes9x/recipe.toml index 5963cd479..2937aa3b2 100644 --- a/recipes/wip/emu/game-console/snes9x/recipe.toml +++ b/recipes/wip/emu/game-console/snes9x/recipe.toml @@ -5,12 +5,16 @@ git = "https://github.com/snes9xgit/snes9x" rev = "1.63" shallow_clone = true [build] -template = "cmake" +template = "custom" dependencies = [ "sdl2", "gtk3mm", - "libpng", - "zlib", "libx11", - "libepoxy", + "libxext", + "libxrandr", ] +script = """ +COOKBOOK_SOURCE="${COOKBOOK_SOURCE}/gtk" +DYNAMIC_INIT +cookbook_cmake +""" diff --git a/recipes/wip/emu/game-console/tetanes/recipe.toml b/recipes/wip/emu/game-console/tetanes/recipe.toml index e374365f0..468e1cb87 100644 --- a/recipes/wip/emu/game-console/tetanes/recipe.toml +++ b/recipes/wip/emu/game-console/tetanes/recipe.toml @@ -1,6 +1,7 @@ #TODO Not compiled or tested yet [source] git = "https://github.com/lukexor/tetanes" +shallow_clone = true [build] template = "cargo" dependencies = [ diff --git a/recipes/wip/emu/game-console/uoyabause/recipe.toml b/recipes/wip/emu/game-console/uoyabause/recipe.toml index b1f730447..fff7e5182 100644 --- a/recipes/wip/emu/game-console/uoyabause/recipe.toml +++ b/recipes/wip/emu/game-console/uoyabause/recipe.toml @@ -2,13 +2,18 @@ # build instructions: https://github.com/devmiyax/yabause/blob/master/yabause/README.LIN#L77 [source] git = "https://github.com/devmiyax/yabause" -rev = "7d28bd54aa3188e90e4126ff9f7c27b945380488" +rev = "71c973f92966d33de464c1ba4dac1953af6ec462" shallow_clone = true [build] -template = "cmake" +template = "custom" dependencies = [ "gtk2", "sdl2", "mesa", "gtkglext", ] +script = """ +DYNAMIC_INIT +COOKBOOK_SOURCE="${COOKBOOK_SOURCE}/yabause" +cookbook_cmake +""" diff --git a/recipes/wip/emu/game-console/vita3k/recipe.toml b/recipes/wip/emu/game-console/vita3k/recipe.toml index cf8b54e2e..08b280ee8 100644 --- a/recipes/wip/emu/game-console/vita3k/recipe.toml +++ b/recipes/wip/emu/game-console/vita3k/recipe.toml @@ -5,6 +5,9 @@ git = "https://github.com/Vita3K/Vita3K" shallow_clone = true [build] template = "cmake" +cmakeflags = [ + "-DUSE_VITA3K_UPDATE=OFF" +] dependencies = [ "sdl2", "gtk3", diff --git a/recipes/wip/emu/mobile/touchhle/recipe.toml b/recipes/wip/emu/mobile/touchhle/recipe.toml index c11451713..51e0f946e 100644 --- a/recipes/wip/emu/mobile/touchhle/recipe.toml +++ b/recipes/wip/emu/mobile/touchhle/recipe.toml @@ -3,11 +3,7 @@ git = "https://github.com/hikari-no-yume/touchHLE" shallow_clone = true [build] -template = "custom" +template = "cargo" dependencies = [ - "boost", + "boost" ] -script = """ -DYNAMIC_INIT -cookbook_cargo -""" diff --git a/recipes/wip/emu/mobile/wie/recipe.toml b/recipes/wip/emu/mobile/wie/recipe.toml index a24022cee..0037651e4 100644 --- a/recipes/wip/emu/mobile/wie/recipe.toml +++ b/recipes/wip/emu/mobile/wie/recipe.toml @@ -1,8 +1,7 @@ #TODO compilation error [source] git = "https://github.com/dlunch/wie" +shallow_clone = true [build] -template = "custom" -script = """ -cookbook_cargo_packages wie_cli -""" +template = "cargo" +cargopackages = ["wie_cli"] diff --git a/recipes/wip/emu/pc/martypc/recipe.toml b/recipes/wip/emu/pc/martypc/recipe.toml index 5ab9bbe00..96d79aa5d 100644 --- a/recipes/wip/emu/pc/martypc/recipe.toml +++ b/recipes/wip/emu/pc/martypc/recipe.toml @@ -2,8 +2,7 @@ # build instructions: https://github.com/dbalsom/martypc/wiki/Building-MartyPC#building-for-linux [source] git = "https://github.com/dbalsom/martypc" +shallow_clone = true [build] -template = "custom" -script = """ -cookbook_cargo_packages martypc_eframe -""" +template = "cargo" +cargopackages = ["martypc_eframe"] diff --git a/recipes/wip/emu/pc/opengmk/recipe.toml b/recipes/wip/emu/pc/opengmk/recipe.toml index fda49cc62..08d37cec0 100644 --- a/recipes/wip/emu/pc/opengmk/recipe.toml +++ b/recipes/wip/emu/pc/opengmk/recipe.toml @@ -1,12 +1,10 @@ #TODO not compiled or tested [source] git = "https://github.com/OpenGMK/OpenGMK" +shallow_clone = true [build] -template = "custom" +template = "cargo" +cargopackages = ["gm8emulator"] dependencies = [ "libalsa", ] -script = """ -DYNAMIC_INIT -cookbook_cargo_packages gm8emulator -""" diff --git a/recipes/wip/emu/pc/ruffle/recipe.toml b/recipes/wip/emu/pc/ruffle/recipe.toml index 1882070aa..7dee4a9b0 100644 --- a/recipes/wip/emu/pc/ruffle/recipe.toml +++ b/recipes/wip/emu/pc/ruffle/recipe.toml @@ -4,11 +4,8 @@ git = "https://github.com/ruffle-rs/ruffle" shallow_clone = true [build] -template = "custom" +template = "cargo" +cargopackages = ["ruffle_desktop"] dependencies = [ "openssl3", ] -script = """ -DYNAMIC_INIT -cookbook_cargo_packages ruffle_desktop -""" diff --git a/recipes/wip/emu/security/rust-u2f/recipe.toml b/recipes/wip/emu/security/rust-u2f/recipe.toml index 547b23ff7..29e7fb959 100644 --- a/recipes/wip/emu/security/rust-u2f/recipe.toml +++ b/recipes/wip/emu/security/rust-u2f/recipe.toml @@ -1,6 +1,6 @@ -#TODO missing script for GNU Make, see https://github.com/danstiner/rust-u2f#building -#TODO missing service for Redox +#TODO missing script for gnu make: https://github.com/danstiner/rust-u2f#building [source] git = "https://github.com/danstiner/rust-u2f" +shallow_clone = true [build] template = "custom" diff --git a/recipes/wip/emu/win/boxedwine/recipe.toml b/recipes/wip/emu/win/boxedwine/recipe.toml index 6402cc4d9..c8828b25f 100644 --- a/recipes/wip/emu/win/boxedwine/recipe.toml +++ b/recipes/wip/emu/win/boxedwine/recipe.toml @@ -10,7 +10,7 @@ dependencies = [ "mesa", "mesa-glu", "nghttp2", - "openssl1", + "openssl3", "sdl2", "zlib", ] diff --git a/recipes/wip/emu/win/retrowin32/recipe.toml b/recipes/wip/emu/win/retrowin32/recipe.toml index 3aa3fc77f..1d4006151 100644 --- a/recipes/wip/emu/win/retrowin32/recipe.toml +++ b/recipes/wip/emu/win/retrowin32/recipe.toml @@ -1,22 +1,11 @@ #TODO not compiled or tested [source] git = "https://github.com/evmar/retrowin32" +shallow_clone = true [build] -template = "custom" +template = "cargo" +cargopackages = ["retrowin32"] +cargoflags = ["--x86-emu --sdl"] dependencies = [ "sdl2", ] -script = """ -DYNAMIC_INIT -package=retrowin32 -"${COOKBOOK_CARGO}" build \ - --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ - --package "${package}" \ - --release - --x86-emu - --sdl - mkdir -pv "${COOKBOOK_STAGE}/usr/bin" - cp -v \ - "target/${TARGET}/release/${package}" \ - "${COOKBOOK_STAGE}/usr/bin/${package}" -"""