Files
haikuports/games-emulation/mesen_libretro/mesen_libretro-0.9.4_20210510.recipe
2021-05-10 21:36:35 +03:00

58 lines
1.8 KiB
Bash

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
}