vba_next_libretro: VBA-M fork optimized for libretro (#2709)

This commit is contained in:
kwyxz
2018-06-19 09:30:52 -07:00
committed by fbrosson
parent bb4b40fc38
commit dceba5152b
2 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
display_name = "Nintendo - Game Boy Advance (VBA Next)"
authors = "Forgotten|VBA-M Team|Squarepusher"
supported_extensions = "gba"
corename = "VBA Next"
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 = "true"
notes = "(!) gba_bios.bin (md5): a860e8c0b6d573d191e4ec7db1b1e4f6"

View File

@@ -0,0 +1,52 @@
SUMMARY="An optimized VisualBoyAdvance-M core for the libretro API"
DESCRIPTION="VBA-Next is a fork of VBA-M, itself a fork of VisualBoyAdvance, \
a popular Nintendo Game Boy Advance emulator. VBA Next was developed by the \
libretro team as an optimized version of VBA-M."
HOMEPAGE="https://github.com/libretro/vba-next"
COPYRIGHT="2001-2018 Forgotten, the VBA-M team , the libretro team"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="110ab08a8042cb215a04872e26244331aa90eed5"
SOURCE_URI="https://github.com/libretro/vba-next/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="bd38e3b23287d654b622e6ddbf3d2829e07e07cb67295ef1be17ed1d9a70b5c0"
SOURCE_FILENAME="libretro-vba-next-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="vba-next-$srcGitRev"
ADDITIONAL_FILES="vba_next_libretro.info.in"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
vba_next_libretro$secondaryArchSuffix = $portVersion
addon:vba_next_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/vba_next_libretro.info.in \
> vba_next_libretro.info
make -f Makefile.libretro $jobArgs
}
INSTALL()
{
install -m 0755 -d "$docDir"
install -m 0644 -t "$docDir" LICENSE
install -m 0755 -d "$addOnsDir"/libretro
install -m 0644 -t "$addOnsDir"/libretro \
vba_next_libretro.info \
vba_next_libretro.so
}