diff --git a/games-emulation/gpsp_libretro/additional-files/gpsp_libretro.info.in b/games-emulation/gpsp_libretro/additional-files/gpsp_libretro.info.in new file mode 100644 index 000000000..9dbc2e4a2 --- /dev/null +++ b/games-emulation/gpsp_libretro/additional-files/gpsp_libretro.info.in @@ -0,0 +1,17 @@ +display_name = "Nintendo - Game Boy Advance (gpSP)" +authors = "Exophase" +supported_extensions = "gba|bin" +corename = "gpSP" +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 = "false" +notes = "(!) gba_bios.bin (md5): a860e8c0b6d573d191e4ec7db1b1e4f6" diff --git a/games-emulation/gpsp_libretro/gpsp_libretro-0.91_20180109.recipe b/games-emulation/gpsp_libretro/gpsp_libretro-0.91_20180109.recipe new file mode 100644 index 000000000..9c6bd4f0b --- /dev/null +++ b/games-emulation/gpsp_libretro/gpsp_libretro-0.91_20180109.recipe @@ -0,0 +1,52 @@ +SUMMARY="A port of gpSP, a Game Boy Advance emulator to the libretro API" +DESCRIPTION="gpSP was initially a Nintendo Game Boy Advance emulator for the \ +Sony PlayStation Portable console, but is now available on various platforms \ +thanks to its Libretro core." +HOMEPAGE="http://gpsp-dev.blogspot.com/" +COPYRIGHT="2007-2018 Exophase, the libretro team" +LICENSE="GNU GPL v2" +REVISION="1" +srcGitRev="638aad3ad5e724bb43294b255a292aa2ff83009f" +SOURCE_URI="https://github.com/libretro/gpsp/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="2928762aa4b0346573820db79803fec1347c4c056d65195b1c133bce90d971e4" +SOURCE_FILENAME="gpsp-libretro-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="gpsp-$srcGitRev" +ADDITIONAL_FILES="gpsp_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + gpsp_libretro$secondaryArchSuffix = $portVersion + addon:gpsp_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/gpsp_libretro.info.in \ + > gpsp_libretro.info + make $jobArgs GIT_VERSION=${srcGitRev:0:7} +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" COPYING readme.txt + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + gpsp_libretro.info \ + gpsp_libretro.so +}