53 lines
1.5 KiB
Bash
53 lines
1.5 KiB
Bash
SUMMARY="A standalone port of Mednafen GBA to libretro"
|
|
DESCRIPTION="This is a standalone port of Mednafen GBA to libretro, a Game Boy \
|
|
Advance emulator. It is itself a fork of VBA-M, itself a fork of Visual Boy \
|
|
Advance."
|
|
HOMEPAGE="https://mednafen.github.io/documentation/gba.html"
|
|
COPYRIGHT="2005-2018 Forgotten, the Mednafen team, the libretro team"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
srcGitRev="38182572571a48cb58057cde64b915237c4e2d58"
|
|
SOURCE_URI="https://github.com/libretro/beetle-gba-libretro/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="e4eaf64e9160b501cadf983a46b8a2a98c8b590a13ca9082793d9a11e17fdcaf"
|
|
SOURCE_FILENAME="libretro-mednafen-gba-${portVersion/_/-}-$srcGitRev.tar.gz"
|
|
SOURCE_DIR="beetle-gba-libretro-$srcGitRev"
|
|
ADDITIONAL_FILES="mednafen_gba_libretro.info.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
mednafen_gba_libretro$secondaryArchSuffix = $portVersion
|
|
addon:mednafen_gba_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_gba_libretro.info.in \
|
|
> mednafen_gba_libretro.info
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
install -m 0755 -d "$docDir"
|
|
install -m 0644 -t "$docDir" COPYING
|
|
install -m 0755 -d "$addOnsDir"/libretro
|
|
install -m 0644 -t "$addOnsDir"/libretro \
|
|
mednafen_gba_libretro.info \
|
|
mednafen_gba_libretro.so
|
|
}
|