melonds_libretro: a port of MelonDS to the libretro API (#2391)

This commit is contained in:
kwyxz
2018-03-26 13:32:21 -07:00
committed by fbrosson
parent 90154f7e86
commit 23e04f4ba4
2 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
display_name = "Nintendo - DS (melonDS)"
authors = "StapleButter"
supported_extensions = "nds"
corename = "melonDS"
manufacturer = "Nintendo"
categories = "Emulator"
systemname = "Nintendo DS"
database = "Nintendo - Nintendo DS|Nintendo - Nintendo DS Decrypted|Nintendo - Nintendo DS (Download Play)"
license = "GPLv3"
permissions = ""
display_version = "@DISPLAY_VERSION@"
supports_no_game = "false"
firmware_count = 3
firmware0_desc = "firmware.bin (NDS Firmware)"
firmware0_path = "firmware.bin"
firmware0_opt = "false"
firmware1_desc = "bios7.bin (ARM7 BIOS)"
firmware1_path = "bios7.bin"
firmware1_opt = "false"
firmware2_desc = "bios9.bin (ARM9 BIOS)"
firmware2_path = "bios9.bin"
firmware2_opt = "false"
notes = "(!) firmware.bin (md5): e45033d9b0fa6b0de071292bba7c9d13|(!) bios7.bin (md5): df692a80a5b1bc90728bc3dfc76cd948|(!) bios9.bin (md5): a392174eb3e572fed6447e956bde4b25"

View File

@@ -0,0 +1,52 @@
SUMMARY="A port of MelonDS, a Nintendo DS emulator to the libretro API"
DESCRIPTION="MelonDS is a Nintendo DS emulator with emphasis on performance. \
It is attempting to do things 'right and fast' according to its original \
author. This is the libretro core based of MelonDS."
HOMEPAGE="http://melonds.kuribo64.net/"
COPYRIGHT="2016-2018 StapleButter, the libretro team"
LICENSE="GNU GPL v3"
REVISION="1"
srcGitRev="154197dbcc60a4bc456ae527e80c1d60c070a7a4"
SOURCE_URI="https://github.com/libretro/melonDS/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="cd35e6759b2f61df6923f994989c2bea139663b6fbcd1adc7305a09889e8f44e"
SOURCE_FILENAME="melonds-libretro-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="melonDS-$srcGitRev"
ADDITIONAL_FILES="melonds_libretro.info.in"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
melonds_libretro$secondaryArchSuffix = $portVersion
addon:melonds_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/melonds_libretro.info.in \
> melonds_libretro.info
make $jobArgs
}
INSTALL()
{
install -m 0755 -d "$docDir"
install -m 0644 -t "$docDir" LICENSE README.md
install -m 0755 -d "$addOnsDir"/libretro
install -m 0644 -t "$addOnsDir"/libretro \
melonds_libretro.info \
melonds_libretro.so
}