Files
haikuports/app-emulation/81_libretro/81_libretro-1.0a_20210311.recipe
waddlesplash 4f180bdb94 Utilize the new "all" ARCHITECTURES keyword in most recipes. (#6189)
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has,
is transformed into "all", and then the other entries in ARCHITECTURES
either dropped or rearranged appropriately.
2021-09-15 15:40:18 -04:00

53 lines
1.5 KiB
Bash

SUMMARY="A port of the EightyOne ZX-81 emulator to libretro"
DESCRIPTION="81-libretro is an work in progress port of the EightyOne \
(a.k.a. THE Sinclair Emulator) to libretro. It's being developed on Windows \
with MinGW (64 bits) and Debian 8, and tested on RetroArch 1.2 frontend."
HOMEPAGE="https://github.com/libretro/81-libretro/"
COPYRIGHT="2008-2018 Michael D Wynne, the libretro team"
LICENSE="GNU GPL v3"
REVISION="1"
srcGitRev="028da99de5a69c1d067eb3f270c0507377c83bb7"
SOURCE_URI="https://github.com/libretro/81-libretro/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="76a5c2520b7d1e73e7950398cc5ed68c33aa6aa99b29d6bb039b78237a745240"
SOURCE_FILENAME="81-libretro-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="81-libretro-$srcGitRev"
ADDITIONAL_FILES="81_libretro.info.in"
ARCHITECTURES="all !x86_gcc2 ?x86"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
81_libretro$secondaryArchSuffix = $portVersion
addon:81_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/81_libretro.info.in \
> 81_libretro.info
make -f Makefile.libretro $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 \
81_libretro.info \
81_libretro.so
}