81_libretro: a ZX-81 emulator for the libretro API (#2284)

This commit is contained in:
Benjamin FRANCOIS
2018-03-06 10:38:02 -08:00
committed by fbrosson
parent 3ed390c4bd
commit 8d187ac78b
2 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
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="http://www.chuntey.com/"
COPYRIGHT="2008-2018 Michael D Wynne, the libretro team"
LICENSE="GNU GPL v3"
REVISION="1"
srcGitRev="6ae21e0980bb8190fe1fc3cb6c4f00797cc6bf0e"
SOURCE_URI="https://github.com/libretro/81-libretro/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="3332f2777f4b6cc4a8d4109ba74063d1cd118cced49df91478e14fddc064fe68"
SOURCE_FILENAME="81-libretro-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="81-libretro-$srcGitRev"
ADDITIONAL_FILES="81_libretro.info.in"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
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
}

View File

@@ -0,0 +1,13 @@
display_name = "Sinclair - ZX 81 (EightyOne)"
authors = "Michael D Wynne"
supported_extensions = "p|tzx|t81"
corename = "81"
manufacturer = "Sinclair"
categories = "Emulator"
systemname = "ZX81"
database = "Sinclair - ZX 81"
license = "GPLv3"
permissions = ""
display_version = "@DISPLAY_VERSION@"
supports_no_game = "false"
notes = "[1] Amstrad have kindly given their permission for the redistribution|[^] of their copyrighted material but retain that copyright."