From a8050a7382612f72c7123682a449f5e84f3a4b28 Mon Sep 17 00:00:00 2001 From: Ribbon Date: Sun, 16 Nov 2025 08:57:03 -0300 Subject: [PATCH] Improve recipes --- recipes/wip/codecs/faad2/recipe.toml | 7 +++ .../emulators/game-console/azahar/recipe.toml | 13 +++++ .../game-console/dolphin-emu/recipe.toml | 22 +++++---- .../game-console/finalburn-neo/recipe.toml | 2 + .../game-console/gopher64/recipe.toml | 6 ++- .../game-console/jgenesis/recipe.toml | 1 + .../game-console/lime3ds/recipe.toml | 15 ------ .../emulators/game-console/mame/recipe.toml | 6 +-- .../game-console/melonds/recipe.toml | 13 +++-- .../emulators/game-console/pcsx2/recipe.toml | 47 ++++++++++--------- .../emulators/game-console/ppsspp/recipe.toml | 38 ++++++++------- .../emulators/game-console/rpcs3/recipe.toml | 29 +++++++----- .../wip/graphics/shaders/glslang/recipe.toml | 8 ++++ recipes/wip/libs/qt6/qt6-base/recipe.toml | 2 +- .../wip/libs/qt6/qt6-declarative/recipe.toml | 2 +- .../wip/libs/qt6/qt6-multimedia/recipe.toml | 2 +- recipes/wip/libs/qt6/qt6-svg/recipe.toml | 2 +- 17 files changed, 125 insertions(+), 90 deletions(-) create mode 100644 recipes/wip/codecs/faad2/recipe.toml create mode 100644 recipes/wip/emulators/game-console/azahar/recipe.toml delete mode 100644 recipes/wip/emulators/game-console/lime3ds/recipe.toml create mode 100644 recipes/wip/graphics/shaders/glslang/recipe.toml diff --git a/recipes/wip/codecs/faad2/recipe.toml b/recipes/wip/codecs/faad2/recipe.toml new file mode 100644 index 000000000..1fcb64152 --- /dev/null +++ b/recipes/wip/codecs/faad2/recipe.toml @@ -0,0 +1,7 @@ +#TODO not compiled or tested +# lacking build instructions +[source] +git = "https://github.com/knik0/faad2" +rev = "2.11.2" +[build] +template = "cmake" diff --git a/recipes/wip/emulators/game-console/azahar/recipe.toml b/recipes/wip/emulators/game-console/azahar/recipe.toml new file mode 100644 index 000000000..46599aa7b --- /dev/null +++ b/recipes/wip/emulators/game-console/azahar/recipe.toml @@ -0,0 +1,13 @@ +#TODO not compiled or tested +#TODO determine minimum dependencies from cmake log +# build instructions - https://github.com/azahar-emu/azahar/wiki/Building-From-Source#linux +[source] +git = "https://github.com/azahar-emu/azahar" +rev = "2123.3" +shallow_clone = true +[build] +template = "cmake" +dependencies = [ + "qt6-base", + "qt6-multimedia", +] diff --git a/recipes/wip/emulators/game-console/dolphin-emu/recipe.toml b/recipes/wip/emulators/game-console/dolphin-emu/recipe.toml index 4a21189ab..0cc024f5a 100644 --- a/recipes/wip/emulators/game-console/dolphin-emu/recipe.toml +++ b/recipes/wip/emulators/game-console/dolphin-emu/recipe.toml @@ -1,20 +1,22 @@ #TODO not compiled or tested yet +#TODO discover minimum dependencies from cmake log # build instructions: https://github.com/dolphin-emu/dolphin/wiki/Building-for-Linux -#TODO probably missing dependencies [source] git = "https://github.com/dolphin-emu/dolphin" +rev = "71e15c2875f36458c8f29ee160f01606967bcd13" +shallow_clone = true [build] template = "cmake" dependencies = [ - "ffmpeg6", - "libevdev", - "libusb", - "pango", - "cairo", + #"ffmpeg6", + #"libevdev", + #"libusb", + #"pango", + #"cairo", "qt6-base", "qt6-svg", - "mesa-x11", - "curl", - "libvulkan", - "openal", + #"mesa-x11", + #"curl", + #"libvulkan", + #"openal", ] diff --git a/recipes/wip/emulators/game-console/finalburn-neo/recipe.toml b/recipes/wip/emulators/game-console/finalburn-neo/recipe.toml index 76544a9dc..d5fa0a405 100644 --- a/recipes/wip/emulators/game-console/finalburn-neo/recipe.toml +++ b/recipes/wip/emulators/game-console/finalburn-neo/recipe.toml @@ -1,6 +1,8 @@ #TODO missing script for "make", see https://github.com/finalburnneo/FBNeo/blob/master/README-SDL.md#sdl2 [source] git = "https://github.com/finalburnneo/FBNeo" +rev = "9cc496e02a8d1588e1226b648852488a491f1b75" +shallow_clone = true [build] template = "custom" dependencies = [ diff --git a/recipes/wip/emulators/game-console/gopher64/recipe.toml b/recipes/wip/emulators/game-console/gopher64/recipe.toml index 864f953df..f5b607651 100644 --- a/recipes/wip/emulators/game-console/gopher64/recipe.toml +++ b/recipes/wip/emulators/game-console/gopher64/recipe.toml @@ -2,7 +2,11 @@ [source] git = "https://github.com/gopher64/gopher64" [build] -template = "cargo" +template = "custom" dependencies = [ "sdl2", ] +script = """ +DYNAMIC_INIT +cookbook_cargo +""" diff --git a/recipes/wip/emulators/game-console/jgenesis/recipe.toml b/recipes/wip/emulators/game-console/jgenesis/recipe.toml index e1e132d8e..5c8405987 100644 --- a/recipes/wip/emulators/game-console/jgenesis/recipe.toml +++ b/recipes/wip/emulators/game-console/jgenesis/recipe.toml @@ -7,5 +7,6 @@ dependencies = [ "sdl2", ] script = """ +DYNAMIC_INIT cookbook_cargo_packages jgenesis-cli """ diff --git a/recipes/wip/emulators/game-console/lime3ds/recipe.toml b/recipes/wip/emulators/game-console/lime3ds/recipe.toml deleted file mode 100644 index 621331ec9..000000000 --- a/recipes/wip/emulators/game-console/lime3ds/recipe.toml +++ /dev/null @@ -1,15 +0,0 @@ -#TODO not compiled or tested -# build instructions - https://github.com/Lime3DS/Lime3DS/wiki/Building-From-Source#linux -[source] -git = "https://github.com/Lime3DS/Lime3DS" -[build] -template = "cmake" -dependencies = [ - "sdl2", - "qt6-base", - "qt6-multimedia", - "portaudio", - "libx11", - "libxext", - "pipewire", -] diff --git a/recipes/wip/emulators/game-console/mame/recipe.toml b/recipes/wip/emulators/game-console/mame/recipe.toml index 52b4b04b6..5428ced96 100644 --- a/recipes/wip/emulators/game-console/mame/recipe.toml +++ b/recipes/wip/emulators/game-console/mame/recipe.toml @@ -1,8 +1,8 @@ -#TODO missing script for "make", see https://docs.mamedev.org/initialsetup/compilingmame.html -#TODO make qt5 work +#TODO missing script for gnu make: https://docs.mamedev.org/initialsetup/compilingmame.html [source] git = "https://github.com/mamedev/mame" -rev = "ca50094e8d5467aed7a18c718cdff8903e1bfe27" +rev = "mame0282" +shallow_clone = true [build] template = "custom" dependencies = [ diff --git a/recipes/wip/emulators/game-console/melonds/recipe.toml b/recipes/wip/emulators/game-console/melonds/recipe.toml index 58a0fc1f6..22fe56dbb 100644 --- a/recipes/wip/emulators/game-console/melonds/recipe.toml +++ b/recipes/wip/emulators/game-console/melonds/recipe.toml @@ -1,17 +1,20 @@ #TODO not compiled or tested yet -# build instructions: https://github.com/melonDS-emu/melonDS#linux +# build instructions: https://github.com/melonDS-emu/melonDS/blob/master/BUILD.md#linux [source] git = "https://github.com/melonDS-emu/melonDS" -rev = "430de6b2702bb93faa8c2004aff3fbd084db4a1e" +rev = "1.0" +shallow_clone = true [build] template = "cmake" dependencies = [ "curl", "libpcap", + "libenet", "sdl2", - "qt5-base", - "qt5-multimedia", - "libslirp", + "qt6-base", + "qt6-multimedia", + "qt6-svg", "libarchive", "zstd", + "faad2", ] diff --git a/recipes/wip/emulators/game-console/pcsx2/recipe.toml b/recipes/wip/emulators/game-console/pcsx2/recipe.toml index e974c3587..88c5f1f2c 100644 --- a/recipes/wip/emulators/game-console/pcsx2/recipe.toml +++ b/recipes/wip/emulators/game-console/pcsx2/recipe.toml @@ -1,26 +1,29 @@ -#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 +#TODO not compiled or tested +# build instructions: https://pcsx2.net/docs/advanced/building#building-on-linux [source] -git = "https://github.com/PCSX2/pcsx2.git" +git = "https://github.com/PCSX2/pcsx2" +rev = "2.4.x" +shallow_clone = true [build] template = "cmake" -dependencies = [ - "sdl2", - "xz", - "libpng", - "qt6-base", - "qt6-svg", - "mesa-x11", - "libaio", - "harfbuzz", - "libpcap", - "pipewire", - "libsamplerate", - "soundtouch", - "zlib", - "libxml2", - "ffmpeg6", +cmakeflags = [ + "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache", + "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON", ] +# dependencies = [ +# "sdl2", +# "xz", +# "libpng", +# "qt6-base", +# "qt6-svg", +# "mesa-x11", +# "libaio", +# "harfbuzz", +# "libpcap", +# "pipewire", +# "libsamplerate", +# "soundtouch", +# "zlib", +# "libxml2", +# "ffmpeg6", +# ] diff --git a/recipes/wip/emulators/game-console/ppsspp/recipe.toml b/recipes/wip/emulators/game-console/ppsspp/recipe.toml index a4a3fc1a0..54b1621f9 100644 --- a/recipes/wip/emulators/game-console/ppsspp/recipe.toml +++ b/recipes/wip/emulators/game-console/ppsspp/recipe.toml @@ -2,24 +2,9 @@ # build instructions: https://github.com/hrydgard/ppsspp/wiki/Build-instructions #git = "https://github.com/jackpot51/ppsspp" # wip orbital port [source] -git = "https://github.com/hrydgard/ppsspp" +tar = "https://github.com/hrydgard/ppsspp/releases/download/v1.19.3/ppsspp-1.19.3.tar.xz" [build] -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" - -DOPENGL_opengl_LIBRARY="/dev/null" - -DOPENGL_glx_LIBRARY="/dev/null" - -DUSE_DISCORD=OFF - -DUSE_FFMPEG=OFF - -DUSE_MINIUPNPC=OFF - -DUSE_SYSTEM_LIBSDL2=ON - -DUSING_EGL=OFF - -DUSING_FBDEV=OFF - -DUSING_GLES2=OFF - -DUSING_X11_VULKAN=OFF - -DUNIX=ON -] +template = "custom" dependencies = [ #"liborbital", "llvm18", @@ -32,3 +17,22 @@ dependencies = [ "fontconfig", "curl", ] +script = """ +DYNAMIC_INIT +COOKBOOK_CMAKE_FLAGS+=( + -DCMAKE_C_FLAGS="-I"${COOKBOOK_SYSROOT}/include" -I"${COOKBOOK_SYSROOT}/include/SDL2"" + -DCMAKE_CXX_FLAGS="-I"${COOKBOOK_SYSROOT}/include" -I"${COOKBOOK_SYSROOT}/include/SDL2"" + -DOPENGL_opengl_LIBRARY="/dev/null" + -DOPENGL_glx_LIBRARY="/dev/null" + -DUSE_DISCORD=OFF + -DUSE_FFMPEG=OFF + -DUSE_MINIUPNPC=OFF + -DUSE_SYSTEM_LIBSDL2=ON + -DUSING_EGL=OFF + -DUSING_FBDEV=OFF + -DUSING_GLES2=OFF + -DUSING_X11_VULKAN=OFF + -DUNIX=ON +) +cookbook_cmake +""" diff --git a/recipes/wip/emulators/game-console/rpcs3/recipe.toml b/recipes/wip/emulators/game-console/rpcs3/recipe.toml index 1dee01cb5..a1796e901 100644 --- a/recipes/wip/emulators/game-console/rpcs3/recipe.toml +++ b/recipes/wip/emulators/game-console/rpcs3/recipe.toml @@ -1,9 +1,11 @@ #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 +#TODO determine minimum dependencies from cmake log +# build instructions: https://github.com/RPCS3/rpcs3/blob/master/BUILDING.md +# customization: https://wiki.rpcs3.net/index.php?title=Help:Building_RPCS3#CMake_Build_Options [source] git = "https://github.com/RPCS3/rpcs3" +rev = "db8437b01cf24ba1146cf7d22e1be02202cc98f4" +shallow_clone = true [build] template = "cmake" cmakeflags = [ @@ -18,19 +20,20 @@ cmakeflags = [ "-DUSE_VULKAN=OFF", ] dependencies = [ - "mesa-x11", + #"mesa-x11", "qt6-base", "qt6-multimedia", "qt6-svg", - "sdl2", - "eudev", - "glew", - "openal", - "zlib", - "libpng", + "qt6-declarative", + #"sdl2", + #"eudev", + #"glew", + #"openal", + #"zlib", + #"libpng", #"libevdev", - "libedit", + #"libedit", #"libvulkan", - "pulseaudio", - "ffmpeg6", + #"pulseaudio", + #"ffmpeg6", ] diff --git a/recipes/wip/graphics/shaders/glslang/recipe.toml b/recipes/wip/graphics/shaders/glslang/recipe.toml new file mode 100644 index 000000000..649845161 --- /dev/null +++ b/recipes/wip/graphics/shaders/glslang/recipe.toml @@ -0,0 +1,8 @@ +#TODO not compiled or tested +# build instructions: https://github.com/KhronosGroup/glslang#building-cmake +[source] +git = "https://github.com/KhronosGroup/glslang" +rev = "16.0.0" +shallow_clone = true +[build] +template = "cmake" diff --git a/recipes/wip/libs/qt6/qt6-base/recipe.toml b/recipes/wip/libs/qt6/qt6-base/recipe.toml index 483f0a838..3a601c283 100644 --- a/recipes/wip/libs/qt6/qt6-base/recipe.toml +++ b/recipes/wip/libs/qt6/qt6-base/recipe.toml @@ -1,6 +1,6 @@ #TODO not compiled or tested #TODO determine dependencies [source] -tar = "https://download.qt.io/official_releases/qt/6.6/6.6.1/submodules/qtbase-everywhere-src-6.6.1.tar.xz" +tar = "https://download.qt.io/official_releases/qt/6.10/6.10.0/submodules/qtbase-everywhere-src-6.10.0.tar.xz" [build] template = "configure" diff --git a/recipes/wip/libs/qt6/qt6-declarative/recipe.toml b/recipes/wip/libs/qt6/qt6-declarative/recipe.toml index 0fe1ddfbb..174ab3529 100644 --- a/recipes/wip/libs/qt6/qt6-declarative/recipe.toml +++ b/recipes/wip/libs/qt6/qt6-declarative/recipe.toml @@ -1,5 +1,5 @@ #TODO not compiled or tested [source] -tar = "https://download.qt.io/official_releases/qt/6.6/6.6.1/submodules/qtdeclarative-everywhere-src-6.6.1.tar.xz" +tar = "https://download.qt.io/official_releases/qt/6.10/6.10.0/submodules/qtdeclarative-everywhere-src-6.10.0.tar.xz" [build] template = "configure" diff --git a/recipes/wip/libs/qt6/qt6-multimedia/recipe.toml b/recipes/wip/libs/qt6/qt6-multimedia/recipe.toml index 20b9558c0..e373ff40e 100644 --- a/recipes/wip/libs/qt6/qt6-multimedia/recipe.toml +++ b/recipes/wip/libs/qt6/qt6-multimedia/recipe.toml @@ -1,5 +1,5 @@ #TODO not compiled or tested [source] -tar = "https://download.qt.io/official_releases/qt/6.6/6.6.1/submodules/qtmultimedia-everywhere-src-6.6.1.tar.xz" +tar = "https://download.qt.io/official_releases/qt/6.10/6.10.0/submodules/qtmultimedia-everywhere-src-6.10.0.tar.xz" [build] template = "configure" diff --git a/recipes/wip/libs/qt6/qt6-svg/recipe.toml b/recipes/wip/libs/qt6/qt6-svg/recipe.toml index 254293c05..02d8513f3 100644 --- a/recipes/wip/libs/qt6/qt6-svg/recipe.toml +++ b/recipes/wip/libs/qt6/qt6-svg/recipe.toml @@ -1,5 +1,5 @@ #TODO not compiled or tested [source] -tar = "https://download.qt.io/official_releases/qt/6.6/6.6.1/submodules/qtsvg-everywhere-src-6.6.1.tar.xz" +tar = "https://download.qt.io/official_releases/qt/6.10/6.10.0/submodules/qtsvg-everywhere-src-6.10.0.tar.xz" [build] template = "configure"