diff --git a/games-emulation/sameboy_libretro/additional-files/sameboy_libretro.info.in b/games-emulation/sameboy_libretro/additional-files/sameboy_libretro.info.in new file mode 100644 index 000000000..7f363f538 --- /dev/null +++ b/games-emulation/sameboy_libretro/additional-files/sameboy_libretro.info.in @@ -0,0 +1,30 @@ +# Software Information +display_name = "Nintendo - Game Boy / Color (SameBoy)" +authors = "LIJI32" +supported_extensions = "gb|gbc" +corename = "SameBoy" +display_version = "@DISPLAY_VERSION@" +categories = "Emulator" +license = "MIT" +permissions = "" + +# Hardware Information +manufacturer = "Nintendo" +systemname = "Game Boy/Game Boy Color" +systemid = "game_boy" + +# Libretro Features +database = "Nintendo - Game Boy|Nintendo - Game Boy Color" +supports_no_game = "false" + +# Firmware / BIOS +firmware_count = 2 +firmware0_desc = "dmg_boot.bin (Game Boy boot ROM)" +firmware0_path = "dmg_boot.bin" +firmware0_opt = "true" +firmware1_desc = "cgb_boot.bin (Game Boy Color boot ROM)" +firmware1_path = "cgb_boot.bin" +firmware1_opt = "true" +notes = "(!) dmg_boot.bin (md5): 32fbbd84168d3482956eb3c5051637f5|(!) cgb_boot.bin (md5): dbfce9db9deaa2567f6a84fde55f9680" + +description = "A port of the highly accurate Game Boy emulator, SameBoy, to libretro. This core has the highest accuracy of any Game Boy emulator and also supports a variety of fun features and improvements. While its requirements are higher than most other Game Boy cores, it is a good first choice for devices strong enough to run it full speed. Lower-power devices will be better-served by Gambatte-libretro, which still has very high accuracy/compatibility and runs blisteringly fast." diff --git a/games-emulation/sameboy_libretro/sameboy_libretro-0.9.0_20210314.recipe b/games-emulation/sameboy_libretro/sameboy_libretro-0.9.0_20210314.recipe new file mode 100644 index 000000000..fc2287702 --- /dev/null +++ b/games-emulation/sameboy_libretro/sameboy_libretro-0.9.0_20210314.recipe @@ -0,0 +1,57 @@ +SUMMARY="A port of SameBoy, a Game Boy / GB Color emulator to the libretro API" +DESCRIPTION="A port of the highly accurate Game Boy emulator, SameBoy, to \ +libretro. This core has the highest accuracy of any Game Boy emulator and \ +also supports a variety of fun features and improvements. While its \ +requirements are higher than most other Game Boy cores, it is a good first \ +choice for devices strong enough to run it full speed." +HOMEPAGE="https://sameboy.github.io/downloads/" +COPYRIGHT="2016-2021 LIJI32, the libretro team" +LICENSE="MIT" +REVISION="1" +srcGitRev="d478d3e0d98ea6bd7d9cde5b9feccbf3fd52631d" +SOURCE_URI="https://github.com/libretro/SameBoy/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="f615c9fbcc5ff6c9c276be80b132f28e1a8c4162aa51fa04a8d55e9674328667" +SOURCE_FILENAME="SameBoy-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="SameBoy-$srcGitRev" +ADDITIONAL_FILES="sameboy_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + sameboy_libretro$secondaryArchSuffix = $portVersion + addon:sameboy_libretro$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + retroarch$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:which + " + +BUILD() +{ + sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \ + $portDir/additional-files/sameboy_libretro.info.in \ + > sameboy_libretro.info + cd libretro + make $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" CHANGES.md CONTRIBUTING.md \ + LICENSE README.md build-faq.md + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + sameboy_libretro.info \ + libretro/sameboy_libretro.so +}