gambatte_libretro: a Game Boy / Game Boy Color emulator core (#2339)

This commit is contained in:
kwyxz
2018-03-18 10:17:28 -07:00
committed by fbrosson
parent 24e3433861
commit c79cf3f848
2 changed files with 73 additions and 0 deletions

View File

@@ -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"

View File

@@ -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
}