From c8b720b2dffa811b7cdb54d59ab3fb35e004dfdb Mon Sep 17 00:00:00 2001 From: kwyxz Date: Thu, 22 Mar 2018 04:40:54 -0700 Subject: [PATCH] mednafen_lynx_libretro: a port of Mednafen Lynx (#2360) to the libretro API --- .../mednafen_lynx_libretro.info.in | 17 ++++++ ...nafen_lynx_libretro-0.9.32_20180116.recipe | 52 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 games-emulation/mednafen_lynx_libretro/additional-files/mednafen_lynx_libretro.info.in create mode 100644 games-emulation/mednafen_lynx_libretro/mednafen_lynx_libretro-0.9.32_20180116.recipe diff --git a/games-emulation/mednafen_lynx_libretro/additional-files/mednafen_lynx_libretro.info.in b/games-emulation/mednafen_lynx_libretro/additional-files/mednafen_lynx_libretro.info.in new file mode 100644 index 000000000..072cfe6d9 --- /dev/null +++ b/games-emulation/mednafen_lynx_libretro/additional-files/mednafen_lynx_libretro.info.in @@ -0,0 +1,17 @@ +display_name = "Atari - Lynx (Beetle Handy)" +authors = "K. Wilkins|Mednafen Team" +supported_extensions = "lnx" +corename = "Beetle Lynx" +manufacturer = "Atari" +categories = "Emulator" +systemname = "Lynx" +database = "Atari - Lynx" +license = "Zlib|GPLv2" +permissions = "" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "false" +firmware_count = 1 +firmware0_desc = "lynxboot.img (Lynx Boot Image)" +firmware0_path = "lynxboot.img" +firmware0_opt = "false" +notes = "(!) lynxboot.img (md5): fcd403db69f54290b51035d82f835e7b" diff --git a/games-emulation/mednafen_lynx_libretro/mednafen_lynx_libretro-0.9.32_20180116.recipe b/games-emulation/mednafen_lynx_libretro/mednafen_lynx_libretro-0.9.32_20180116.recipe new file mode 100644 index 000000000..59c09cb57 --- /dev/null +++ b/games-emulation/mednafen_lynx_libretro/mednafen_lynx_libretro-0.9.32_20180116.recipe @@ -0,0 +1,52 @@ +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="4e9a4f22f09b1b005104e7eee59cec380ffa194d" +SOURCE_URI="https://github.com/libretro/beetle-lynx-libretro/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="420397ab0bf29cc9405d5361b0ca2346ae81ec4365c4df8934d2cdd550c8d545" +SOURCE_FILENAME="libretro-mednafen-lynx-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="beetle-lynx-libretro-$srcGitRev" +ADDITIONAL_FILES="mednafen_lynx_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +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 +}