52 lines
1.5 KiB
Bash
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="0c7faaf7f70b72ebb68e310530cd46a69e680d40"
|
|
SOURCE_URI="https://github.com/libretro/beetle-wswan-libretro/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="b2fd6fa062f72ab14ee261e7fef991b823e7219b9bb72c2d6f98e8dddd07fab5"
|
|
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
|
|
}
|