From e78116613b520ae842c6516c27497d6f716e43fe Mon Sep 17 00:00:00 2001 From: kwyxz Date: Thu, 24 Oct 2019 02:17:58 -0700 Subject: [PATCH] yabause_libretro: first upload of new libretro core (#4310) --- .../additional-files/yabause_libretro.info.in | 18 +++++++ .../yabause_libretro-0.9.15_20191023.recipe | 53 +++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 games-emulation/yabause_libretro/additional-files/yabause_libretro.info.in create mode 100644 games-emulation/yabause_libretro/yabause_libretro-0.9.15_20191023.recipe diff --git a/games-emulation/yabause_libretro/additional-files/yabause_libretro.info.in b/games-emulation/yabause_libretro/additional-files/yabause_libretro.info.in new file mode 100644 index 000000000..8e2a8f257 --- /dev/null +++ b/games-emulation/yabause_libretro/additional-files/yabause_libretro.info.in @@ -0,0 +1,18 @@ +display_name = "Sega - Saturn (Yabause)" +authors = "Guillaume Duhammel|Theo Berkau|Anders Montonen" +supported_extensions = "cue|iso|mds|ccd|zip|chd" +corename = "Yabause" +manufacturer = "Sega" +categories = "Emulator" +systemname = "Saturn" +systemid = "sega_saturn" +database = "Sega - Saturn" +license = "GPLv2" +permissions = "" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "false" +firmware_count = 1 +firmware0_desc = "saturn_bios.bin (Saturn BIOS)" +firmware0_path = "saturn_bios.bin" +firmware0_opt = "true" +notes = "(!) saturn_bios.bin (md5): af5828fdff51384f99b3c4926be27762" diff --git a/games-emulation/yabause_libretro/yabause_libretro-0.9.15_20191023.recipe b/games-emulation/yabause_libretro/yabause_libretro-0.9.15_20191023.recipe new file mode 100644 index 000000000..871f31e59 --- /dev/null +++ b/games-emulation/yabause_libretro/yabause_libretro-0.9.15_20191023.recipe @@ -0,0 +1,53 @@ +SUMMARY="A port of Yabause, a Sega Saturn emulator to the libretro API" +DESCRIPTION="Yabause is a Sega Saturn emulator licensed under the GPL2+. \ +In order to use it you will need at least one Sega Saturn BIOS that cannot \ +be provided with this emulator for copyright reasons." +HOMEPAGE="https://yabause.org/" +COPYRIGHT="2003-2019 Guillaume Duhamel, Theo Berkau, the libretro team" +LICENSE="GNU GPL v2" +REVISION="1" +srcGitRev="4c71875b85e4dfe0e90e59e91cd01766d2f09b89" +SOURCE_URI="https://github.com/libretro/yabause/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="84d290e58f164e7f2577744ec7301f2bf5dfd01b1c2a052d0798881173f8782c" +SOURCE_FILENAME="libretro-yabause-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="yabause-$srcGitRev" +ADDITIONAL_FILES="yabause_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + yabause_libretro$secondaryArchSuffix = $portVersion + addon:yabause_libretro$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + retroarch$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:sed + " + +BUILD() +{ + sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \ + $portDir/additional-files/yabause_libretro.info.in \ + > yabause_libretro.info + cd yabause/src/libretro && make $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" README.md + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + yabause_libretro.info \ + yabause/src/libretro/yabause_libretro.so +}