From 9a1e18187a58406c44ea264ad6e9c94c3ae71ea2 Mon Sep 17 00:00:00 2001 From: kwyxz Date: Thu, 22 Mar 2018 13:32:59 -0700 Subject: [PATCH] mednafen_psx_libretro: a Libretro port of Mednafen PSX (software) (#2365) --- .../mednafen_psx_libretro.info.in | 23 ++++++++ ...afen_psx_libretro-0.9.39.2_20180319.recipe | 54 +++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 games-emulation/mednafen_psx_libretro/additional-files/mednafen_psx_libretro.info.in create mode 100644 games-emulation/mednafen_psx_libretro/mednafen_psx_libretro-0.9.39.2_20180319.recipe diff --git a/games-emulation/mednafen_psx_libretro/additional-files/mednafen_psx_libretro.info.in b/games-emulation/mednafen_psx_libretro/additional-files/mednafen_psx_libretro.info.in new file mode 100644 index 000000000..ff18aff6e --- /dev/null +++ b/games-emulation/mednafen_psx_libretro/additional-files/mednafen_psx_libretro.info.in @@ -0,0 +1,23 @@ +display_name = "Sony - PlayStation (Beetle PSX)" +authors = "Mednafen Team" +supported_extensions = "cue|toc|m3u|ccd|exe|pbp|chd" +corename = "Beetle PSX" +manufacturer = "Sony" +categories = "Emulator" +systemname = "PlayStation" +database = "Sony - PlayStation" +license = "GPLv2" +permissions = "" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "false" +firmware_count = 3 +firmware0_desc = "scph5500.bin (PS1 JP BIOS)" +firmware0_path = "scph5500.bin" +firmware0_opt = "false" +firmware1_desc = "scph5501.bin (PS1 US BIOS)" +firmware1_path = "scph5501.bin" +firmware1_opt = "false" +firmware2_desc = "scph5502.bin (PS1 EU BIOS)" +firmware2_path = "scph5502.bin" +firmware2_opt = "false" +notes = "(!) scph5500.bin (md5): 8dd7d5296a650fac7319bce665a6a53c|(!) scph5501.bin (md5): 490f666e1afb15b7362b406ed1cea246|(!) scph5502.bin (md5): 32736f17079d0b2b7024407c39bd3050" diff --git a/games-emulation/mednafen_psx_libretro/mednafen_psx_libretro-0.9.39.2_20180319.recipe b/games-emulation/mednafen_psx_libretro/mednafen_psx_libretro-0.9.39.2_20180319.recipe new file mode 100644 index 000000000..6c621a9d0 --- /dev/null +++ b/games-emulation/mednafen_psx_libretro/mednafen_psx_libretro-0.9.39.2_20180319.recipe @@ -0,0 +1,54 @@ +SUMMARY="A standalone port of Mednafen PSX to libretro" +DESCRIPTION="This is a port of the Mednafen PSX module to libretro, a Sony \ +PlayStation emulator. It is one of the original systems supported by Mednafen. \ +This package provides the software rendering core. It focuses on accurate \ +rendering by not using any kind of hardware acceleration. For hardware \ +acceleration and graphical improvements, use the mednafen_psx_hw_libretro core." +HOMEPAGE="https://mednafen.github.io/documentation/psx.html" +COPYRIGHT="2005-2018 Forgotten, the Mednafen team, the libretro team" +LICENSE="GNU GPL v2" +REVISION="1" +srcGitRev="1eb9b2503d1437f0f7b9ec0a1883374c2991e7c3" +SOURCE_URI="https://github.com/libretro/beetle-psx-libretro/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="a74891082dc3817b4d79e2df37f461a6e5197b75ccd9941c609ba21918b125ce" +SOURCE_FILENAME="libretro-mednafen-psx-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="beetle-psx-libretro-$srcGitRev" +ADDITIONAL_FILES="mednafen_psx_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + mednafen_psx_libretro$secondaryArchSuffix = $portVersion + addon:mednafen_psx_libretro$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + retroarch$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \ + $portDir/additional-files/mednafen_psx_libretro.info.in \ + > mednafen_psx_libretro.info + make $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" COPYING README.md + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + mednafen_psx_libretro.info \ + mednafen_psx_libretro.so +}