Files
haikuports/games-emulation/mednafen_wswan_libretro/mednafen_wswan_libretro-0.9.35.1_20211125.recipe
2021-12-07 20:59:42 +03:00

52 lines
1.5 KiB
Bash

SUMMARY="A standalone port of Mednafen WonderSwan to libretro"
DESCRIPTION="This is a standalone port of Mednafen WonderSwan to libretro, a \
Bandai WonderSwan emulator. It is a fork of Cygne."
HOMEPAGE="https://mednafen.github.io/documentation/wswan.html"
COPYRIGHT="2005-2018 Forgotten, the Mednafen team, the libretro team"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="ea00c1d8eb9894538dd8758975cd9d6ae99ead1e"
SOURCE_URI="https://github.com/libretro/beetle-wswan-libretro/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="b61c5794aa89a18ef9dd5006b3964b7f9969d84060814a8e8f7df1b3de548395"
SOURCE_FILENAME="libretro-mednafen-wswan-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="beetle-wswan-libretro-$srcGitRev"
ADDITIONAL_FILES="mednafen_wswan_libretro.info.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
mednafen_wswan_libretro$secondaryArchSuffix = $portVersion
addon:mednafen_wswan_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_wswan_libretro.info.in \
> mednafen_wswan_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_wswan_libretro.info \
mednafen_wswan_libretro.so
}