0
0
Fork 0
haikuports/games-emulation/mednafen_pcfx_libretro/mednafen_pcfx_libretro-0.9....

52 lines
1.5 KiB
Bash

SUMMARY="A standalone port of Mednafen PC-FX to libretro"
DESCRIPTION="This is a standalone port of Mednafen PC-FX to libretro, an NEC \
PC-FX emulator. It is one of the original emulators included in Mednafen."
HOMEPAGE="https://mednafen.github.io/documentation/pcfx.html"
COPYRIGHT="2005-2018 Forgotten, the Mednafen team, the libretro team"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="a1f1734509dd6acb11269f118d61f480ae8dbacf"
SOURCE_URI="https://github.com/libretro/beetle-pcfx-libretro/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="76f22fc238748fb7c63d260f725cae6fa3bd7797ad595ab8116a5c15b7c05e04"
SOURCE_FILENAME="libretro-mednafen-pcfx-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="beetle-pcfx-libretro-$srcGitRev"
ADDITIONAL_FILES="mednafen_pcfx_libretro.info.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
mednafen_pcfx_libretro$secondaryArchSuffix = $portVersion
addon:mednafen_pcfx_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_pcfx_libretro.info.in \
> mednafen_pcfx_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_pcfx_libretro.info \
mednafen_pcfx_libretro.so
}