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

53 lines
1.5 KiB
Bash

SUMMARY="A standalone port of Mednafen Lynx to libretro"
DESCRIPTION="This is a standalone port of Mednafen Lynx to libretro, an Atari \
Lynx emulator. It is a fork of Handy."
HOMEPAGE="https://mednafen.github.io/documentation/lynx.html"
COPYRIGHT="2005-2018 Forgotten, the Mednafen team, the libretro team"
LICENSE="GNU GPL v2
Zlib"
REVISION="1"
srcGitRev="b84c79b2f185482f9cec2b10f33cbe1bc5732dd9"
SOURCE_URI="https://github.com/libretro/beetle-lynx-libretro/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="391c3a7858c11fea745e825993a80504783479f5e96523eb57c62437581c2849"
SOURCE_FILENAME="libretro-mednafen-lynx-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="beetle-lynx-libretro-$srcGitRev"
ADDITIONAL_FILES="mednafen_lynx_libretro.info.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
mednafen_lynx_libretro$secondaryArchSuffix = $portVersion
addon:mednafen_lynx_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_lynx_libretro.info.in \
> mednafen_lynx_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_lynx_libretro.info \
mednafen_lynx_libretro.so
}