Files
haikuports/games-emulation/yabause_libretro/yabause_libretro-0.9.15_20220218.recipe
2022-03-27 11:16:37 +03:00

54 lines
1.6 KiB
Bash

SUMMARY="A port of Yabause, a Sega Saturn emulator to the libretro API"
DESCRIPTION="Yabause is a Sega Saturn emulator licensed under the GPL2+. \
In order to use it you will need at least one Sega Saturn BIOS that cannot \
be provided with this emulator for copyright reasons."
HOMEPAGE="https://yabause.org/"
COPYRIGHT="2003-2019 Guillaume Duhamel, Theo Berkau, the libretro team"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="17dfcd8de4700341d972993501d3a043925675ce"
SOURCE_URI="https://github.com/libretro/yabause/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="591764666cd780b2367423d31cee4a30a9971ccecf5c17901f568a4ef4c2e49a"
SOURCE_FILENAME="libretro-yabause-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="yabause-$srcGitRev"
ADDITIONAL_FILES="yabause_libretro.info.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
yabause_libretro$secondaryArchSuffix = $portVersion
addon:yabause_libretro$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
retroarch$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:sed
"
BUILD()
{
sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
$portDir/additional-files/yabause_libretro.info.in \
> yabause_libretro.info
cd yabause/src/libretro && make $jobArgs
}
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 \
yabause_libretro.info \
yabause/src/libretro/yabause_libretro.so
}