mednafen_wswan_libretro: a port of Mednafen Wonderswan (#2390)

to the libretro API
This commit is contained in:
kwyxz
2018-03-25 19:46:41 -07:00
committed by fbrosson
parent 4931860b0f
commit b15280c57d
2 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
display_name = "Bandai - WonderSwan/Color (Beetle Cygne)"
authors = "Dox|Mednafen Team"
supported_extensions = "ws|wsc"
corename = "Beetle WonderSwan"
manufacturer = "Bandai"
categories = "Emulator"
systemname = "WonderSwan/Color"
database = "Bandai - WonderSwan|Bandai - WonderSwan Color"
license = "GPLv2"
permissions = ""
display_version = "@DISPLAY_VERSION@"
supports_no_game = "false"

View File

@@ -0,0 +1,51 @@
SUMMARY="A standalone port of Mednafen WonderSwan to libretro"
DESCRIPTION="This is a standalone port of Mednafen WonderSwan to libretro, a \
Bandai WonderSwan emulator. It is a fork of Cygne."
HOMEPAGE="https://mednafen.github.io/documentation/wswan.html"
COPYRIGHT="2005-2018 Forgotten, the Mednafen team, the libretro team"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="93459f9eb4d3704a4f2ba4e3f4a986f9ace2615a"
SOURCE_URI="https://github.com/libretro/beetle-wswan-libretro/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="5bafa89b4473d96ef358a21145399100067ef22300187e1beef6c7cfa4677dff"
SOURCE_FILENAME="libretro-mednafen-wswan-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="beetle-wswan-libretro-$srcGitRev"
ADDITIONAL_FILES="mednafen_wswan_libretro.info.in"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
mednafen_wswan_libretro$secondaryArchSuffix = $portVersion
addon:mednafen_wswan_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/mednafen_wswan_libretro.info.in \
> mednafen_wswan_libretro.info
make $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 \
mednafen_wswan_libretro.info \
mednafen_wswan_libretro.so
}