mesen_libretro: new recipe (#5893)

This commit is contained in:
kwyxz
2021-05-10 11:36:35 -07:00
committed by GitHub
parent 1687cf86bd
commit 9603283026
2 changed files with 84 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
# Software Information
display_name = "Nintendo - NES / Famicom (Mesen)"
authors = "M. Bibaud (aka Sour)"
supported_extensions = "nes|fds|unf|unif"
corename = "Mesen"
license = "GPLv3"
permissions = ""
display_version = "@DISPLAY_VERSION@"
categories = "Emulator"
# Hardware Information
manufacturer = "Nintendo"
systemname = "Nintendo Entertainment System"
systemid = "nes"
# Libretro Features
supports_no_game = "false"
database = "Nintendo - Nintendo Entertainment System|Nintendo - Family Computer Disk System"
# Firmware / BIOS
firmware_count = 1
firmware0_desc = "disksys.rom (Family Computer Disk System BIOS)"
firmware0_path = "disksys.rom"
firmware0_opt = "true"
notes = "(!) disksys.rom (md5): ca30b50f880eb660a320674ed365ef7a|Press Retropad R1 to switch disk side.|HD Packs go in %system%/HdPacks/%game_name%|Custom palette in %system%/MesenPalette.pal"
description = "Mesen a relatively new but highly accurate NES emulator. With great accuracy comes great resource requirements (relative to other NES emulators, at least), so this core is not a great choice for weak mobile devices or other low-power/embedded platforms. However, it is the best choice for users who seek the most accurate reproduction of the NES hardware. Mesen also supports some fun enhancements, such as HD sprite replacement packs."

View File

@@ -0,0 +1,57 @@
SUMMARY="A port of Mesen, a Nintendo Entertainment System emulator to the \
libretro API"
DESCRIPTION="Mesen a relatively new but highly accurate NES emulator. With \
great accuracy comes great resource requirements (relative to other NES \
emulators, at least), so this core is not a great choice for weak mobile \
devices or other low-power/embedded platforms. However, it is the best choice \
for users who seek the most accurate reproduction of the NES hardware. Mesen \
also supports some fun enhancements, such as HD sprite replacement packs."
HOMEPAGE="https://www.mesen.ca/"
COPYRIGHT="2016-2021 Sour, the libretro team"
LICENSE="GNU GPL v3"
REVISION="1"
srcGitRev="b03ff6cb730cf7ab15d266f40684ee8511a8ce42"
SOURCE_URI="https://github.com/libretro/Mesen/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="dd91e8dc0ac026c58cb34bd8449b4e863bda879e648a5f85ba2231e1d99a3c94"
SOURCE_FILENAME="Mesen-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="Mesen-$srcGitRev"
ADDITIONAL_FILES="mesen_libretro.info.in"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
mesen_libretro$secondaryArchSuffix = $portVersion
addon:mesen_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/mesen_libretro.info.in \
> mesen_libretro.info
make GIT_VERSION=${srcGitRev:0:7} $jobArgs -C Libretro/
}
INSTALL()
{
install -m 0755 -d "$docDir"
install -m 0644 -t "$docDir" README.md
install -m 0755 -d "$addOnsDir"/libretro
install -m 0644 -t "$addOnsDir"/libretro \
mesen_libretro.info \
Libretro/mesen_libretro.so
}