0
0
Fork 0
haikuports/games-emulation/handy_libretro/handy_libretro-0.95_2021101...

52 lines
1.4 KiB
Bash

SUMMARY="A port of Handy, an Atari Lynx emulator for the libretro API"
DESCRIPTION="Handy is an emulator of the Atari Lynx handheld. It requires the \
Lynx BIOS to boot and start games."
HOMEPAGE="http://handy.sourceforge.net/"
COPYRIGHT="1997-2018 Keith Wilkins, the libretro team"
LICENSE="Zlib"
REVISION="1"
srcGitRev="3b605908943c9a60314366fb00b07689b2529605"
SOURCE_URI="https://github.com/libretro/libretro-handy/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="224d88392dc74914c84388e57a23874a251c62a08b3b1ba47e48eddea3d8b622"
SOURCE_FILENAME="handy-libretro-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="libretro-handy-$srcGitRev"
ADDITIONAL_FILES="handy_libretro.info.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
handy_libretro$secondaryArchSuffix = $portVersion
addon:handy_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/handy_libretro.info.in \
> handy_libretro.info
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 \
handy_libretro.info \
handy_libretro.so
}