diff --git a/games-emulation/gambatte_libretro/additional-files/gambatte_libretro.info.in b/games-emulation/gambatte_libretro/additional-files/gambatte_libretro.info.in new file mode 100644 index 000000000..0dbb572fd --- /dev/null +++ b/games-emulation/gambatte_libretro/additional-files/gambatte_libretro.info.in @@ -0,0 +1,20 @@ +display_name = "Nintendo - Game Boy / Color (Gambatte)" +authors = "Sinamas" +supported_extensions = "gb|gbc|dmg" +corename = "Gambatte" +manufacturer = "Nintendo" +categories = "Emulator" +systemname = "Game Boy/Game Boy Color" +database = "Nintendo - Game Boy|Nintendo - Game Boy Color" +license = "GPLv2" +permissions = "" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "false" +firmware_count = 2 +firmware0_desc = "gb_bios.bin (Game Boy BIOS)" +firmware0_path = "gb_bios.bin" +firmware0_opt = "true" +firmware1_desc = "gbc_bios.bin (Game Boy Color BIOS)" +firmware1_path = "gbc_bios.bin" +firmware1_opt = "true" +notes = "(!) gb_bios.bin (md5): 32fbbd84168d3482956eb3c5051637f5|(!) gbc_bios.bin (md5): dbfce9db9deaa2567f6a84fde55f9680" diff --git a/games-emulation/gambatte_libretro/gambatte_libretro-0.5.0_20180222.recipe b/games-emulation/gambatte_libretro/gambatte_libretro-0.5.0_20180222.recipe new file mode 100644 index 000000000..bc3358dab --- /dev/null +++ b/games-emulation/gambatte_libretro/gambatte_libretro-0.5.0_20180222.recipe @@ -0,0 +1,53 @@ +SUMMARY="A port of Gambatte, a Nintendo Game Boy emulator to the libretro API" +DESCRIPTION="Gambatte is an accuracy-focused, open-source, cross-platform \ +Game Boy Color emulator written in C++. It is based on hundreds of corner case \ +hardware tests, as well as previous documentation and reverse engineering \ +efforts." +HOMEPAGE="https://github.com/sinamas/gambatte" +COPYRIGHT="2007-2018 Sindre AamÄs, the libretro team" +LICENSE="GNU GPL v2" +REVISION="1" +srcGitRev="f946c6d8c3649d177962b6e588c4243989ebeca0" +SOURCE_URI="https://github.com/libretro/gambatte-libretro/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="5962f39e41ecc6fcf596dacdee4e7b20b26fe389a5ceede46711e75618eff55b" +SOURCE_FILENAME="gambatte-libretro-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="gambatte-libretro-$srcGitRev" +ADDITIONAL_FILES="gambatte_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + gambatte_libretro$secondaryArchSuffix = $portVersion + addon:gambatte_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/gambatte_libretro.info.in \ + > gambatte_libretro.info + make -f Makefile.libretro $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" COPYING README.md + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + gambatte_libretro.info \ + gambatte_libretro.so +}