diff --git a/games-emulation/mednafen_gba_libretro/additional-files/mednafen_gba_libretro.info.in b/games-emulation/mednafen_gba_libretro/additional-files/mednafen_gba_libretro.info.in new file mode 100644 index 000000000..ee0d1abb8 --- /dev/null +++ b/games-emulation/mednafen_gba_libretro/additional-files/mednafen_gba_libretro.info.in @@ -0,0 +1,17 @@ +display_name = "Nintendo - Game Boy Advance (Beetle GBA)" +authors = "Forgotten|Mednafen Team" +supported_extensions = "gba|agb|bin" +corename = "Beetle GBA" +manufacturer = "Nintendo" +categories = "Emulator" +systemname = "Game Boy Advance" +database = "Nintendo - Game Boy Advance|Nintendo - Game Boy Advance (e-Cards)" +license = "GPLv2" +permissions = "" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "false" +firmware_count = 1 +firmware0_desc = "gba_bios.bin (Game Boy Advance BIOS)" +firmware0_path = "gba_bios.bin" +firmware0_opt = "true" +notes = "(!) gba_bios.bin (md5): a860e8c0b6d573d191e4ec7db1b1e4f6" diff --git a/games-emulation/mednafen_gba_libretro/mednafen_gba_libretro-0.9.36_20180104.recipe b/games-emulation/mednafen_gba_libretro/mednafen_gba_libretro-0.9.36_20180104.recipe new file mode 100644 index 000000000..db7448e5e --- /dev/null +++ b/games-emulation/mednafen_gba_libretro/mednafen_gba_libretro-0.9.36_20180104.recipe @@ -0,0 +1,52 @@ +SUMMARY="A standalone port of Mednafen GBA to libretro" +DESCRIPTION="This is a standalone port of Mednafen GBA to libretro, a Game Boy \ +Advance emulator. It is itself a fork of VBA-M, itself a fork of Visual Boy \ +Advance." +HOMEPAGE="https://mednafen.github.io/documentation/gba.html" +COPYRIGHT="2005-2018 Forgotten, the Mednafen team, the libretro team" +LICENSE="GNU GPL v2" +REVISION="1" +srcGitRev="49358b2cd878f644179913c8b78c5cc9732d0d21" +SOURCE_URI="https://github.com/libretro/beetle-gba-libretro/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="6ef9e29478b30b18249f3001ca99d4237c86736bda899cc2d720e13b290d3c28" +SOURCE_FILENAME="libretro-mednafen-gba-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="beetle-gba-libretro-$srcGitRev" +ADDITIONAL_FILES="mednafen_gba_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + mednafen_gba_libretro$secondaryArchSuffix = $portVersion + addon:mednafen_gba_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_gba_libretro.info.in \ + > mednafen_gba_libretro.info + make $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" COPYING + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + mednafen_gba_libretro.info \ + mednafen_gba_libretro.so +}