From 3936767ad8b0eedf2ff6ee17abc11bbc5dcd8f08 Mon Sep 17 00:00:00 2001 From: kwyxz Date: Mon, 19 Mar 2018 03:41:25 -0700 Subject: [PATCH] gearboy_libretro: a Game Boy (Color) emulator for libretro (#2345) --- .../additional-files/gearboy_libretro.info.in | 12 +++++ .../gearboy_libretro-2.5_20180313.recipe | 53 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 games-emulation/gearboy_libretro/additional-files/gearboy_libretro.info.in create mode 100644 games-emulation/gearboy_libretro/gearboy_libretro-2.5_20180313.recipe diff --git a/games-emulation/gearboy_libretro/additional-files/gearboy_libretro.info.in b/games-emulation/gearboy_libretro/additional-files/gearboy_libretro.info.in new file mode 100644 index 000000000..11794693c --- /dev/null +++ b/games-emulation/gearboy_libretro/additional-files/gearboy_libretro.info.in @@ -0,0 +1,12 @@ +display_name = "Nintendo - Game Boy / Color (Gearboy)" +authors = "Ignacio Sanchez" +supported_extensions = "gb|dmg|gbc|cgb|sgb" +corename = "Gearboy" +manufacturer = "Nintendo" +categories = "Emulator" +systemname = "Game Boy/Game Boy Color" +database = "Nintendo - Game Boy|Nintendo - Game Boy Color" +license = "GPLv3" +display_version = "@DISPLAY_VERSION@" +permissions = "" +supports_no_game = "false" diff --git a/games-emulation/gearboy_libretro/gearboy_libretro-2.5_20180313.recipe b/games-emulation/gearboy_libretro/gearboy_libretro-2.5_20180313.recipe new file mode 100644 index 000000000..436dac77f --- /dev/null +++ b/games-emulation/gearboy_libretro/gearboy_libretro-2.5_20180313.recipe @@ -0,0 +1,53 @@ +SUMMARY="A port of Gearboy, a Nintendo Game Boy emulator to the libretro API" +DESCRIPTION="Gearboy is a Nintendo Game Boy / GameBoy Color emulator written \ +in C++. It features highly accurate CPU emulation, accurate instruction and \ +memory timing, and accurate LCD controller emulation." +HOMEPAGE="http://www.ignaciosanchez.me/projects/gearboy/" +COPYRIGHT="2012-2018 Ignacio Sánchez, the libretro team" +LICENSE="GNU GPL v3" +REVISION="1" +srcGitRev="0ec8fad8d1030d50699cd7b2beaa15bd609a7d73" +SOURCE_URI="https://github.com/libretro/Gearboy/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="adcca02259cbb77f88e715febcb4589fc975589c80dfdd77aa199eda408ba0a4" +SOURCE_FILENAME="gearboy-libretro-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="Gearboy-$srcGitRev" +ADDITIONAL_FILES="gearboy_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + gearboy_libretro$secondaryArchSuffix = $portVersion + addon:gearboy_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/gearboy_libretro.info.in \ + > gearboy_libretro.info + cd platforms/libretro + make $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" LICENSE README.md + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + gearboy_libretro.info \ + platforms/libretro/gearboy_libretro.so +}