mednafen_supergrafx_libretro: a port of Mednafen SuperGrafx (#2388)

to the libretro API
This commit is contained in:
kwyxz
2018-03-25 19:38:05 -07:00
committed by fbrosson
parent bf4f7ae08f
commit 9e780906a4
2 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
display_name = "NEC - PC Engine SuperGrafx (Beetle SGX)"
authors = "Mednafen Team"
supported_extensions = "pce|sgx|cue|ccd|chd"
corename = "Beetle SGX"
manufacturer = "NEC"
categories = "Emulator"
systemname = "PC Engine SuperGrafx"
database = "NEC - PC Engine SuperGrafx"
license = "GPLv2"
permissions = ""
display_version = "@DISPLAY_VERSION@"
supports_no_game = "false"
firmware_count = 4
firmware0_desc = "syscard3.pce (Super CD-ROM2 System V3.xx)"
firmware0_path = "syscard3.pce"
firmware0_opt = "false"
firmware1_desc = "syscard2.pce (CD-ROM System V2.xx)"
firmware1_path = "syscard2.pce"
firmware1_opt = "true"
firmware2_desc = "syscard1.pce (CD-ROM System V1.xx)"
firmware2_path = "syscard1.pce"
firmware2_opt = "true"
firmware3_desc = "gexpress.pce (Game Express CD Card)"
firmware3_path = "gexpress.pce"
firmware3_opt = "true"
notes = "(!) syscard3.pce (md5): 38179df8f4ac870017db21ebcbf53114"

View File

@@ -0,0 +1,51 @@
SUMMARY="A standalone port of Mednafen SuperGrafx to libretro"
DESCRIPTION="This is a standalone port of Mednafen PCE Fast to libretro, \
this one only emulates a SuperGrafx TG-16."
HOMEPAGE="https://mednafen.github.io/documentation/pce_fast.html"
COPYRIGHT="2005-2018 Forgotten, the Mednafen team, the libretro team"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="56e7864596dfc961d7a2d8b8d45f6dac4154b6d1"
SOURCE_URI="https://github.com/libretro/beetle-supergrafx-libretro/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="d55ae2eddb6b3f25cee202335db979762e20ae1977daee086555050cd50a40ca"
SOURCE_FILENAME="libretro-mednafen-supergrafx-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="beetle-supergrafx-libretro-$srcGitRev"
ADDITIONAL_FILES="mednafen_supergrafx_libretro.info.in"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
mednafen_supergrafx_libretro$secondaryArchSuffix = $portVersion
addon:mednafen_supergrafx_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_supergrafx_libretro.info.in \
> mednafen_supergrafx_libretro.info
make $jobArgs
}
INSTALL()
{
install -m 0755 -d "$docDir"
install -m 0644 -t "$docDir" COPYING
install -m 0755 -d "$addOnsDir"/libretro
install -m 0644 -t "$addOnsDir"/libretro \
mednafen_supergrafx_libretro.info \
mednafen_supergrafx_libretro.so
}