From 9c178d632b2b921bf07eb3bd6595cabaf9e49152 Mon Sep 17 00:00:00 2001 From: Benjamin FRANCOIS Date: Thu, 15 Mar 2018 11:22:05 -0700 Subject: [PATCH] freeintv_libretro: a Mattel Intellivision core for libretro (#2330) --- .../freeintv_libretro.info.in | 20 +++++++ .../freeintv_libretro-20180214.recipe | 52 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 games-emulation/freeintv_libretro/additional-files/freeintv_libretro.info.in create mode 100644 games-emulation/freeintv_libretro/freeintv_libretro-20180214.recipe diff --git a/games-emulation/freeintv_libretro/additional-files/freeintv_libretro.info.in b/games-emulation/freeintv_libretro/additional-files/freeintv_libretro.info.in new file mode 100644 index 000000000..b51149d96 --- /dev/null +++ b/games-emulation/freeintv_libretro/additional-files/freeintv_libretro.info.in @@ -0,0 +1,20 @@ +display_name = "Mattel - Intellivision (FreeIntv)" +authors = "David Richardson" +supported_extensions = "int|bin|rom" +corename = "FreeIntv" +manufacturer = "Mattel" +categories = "Emulator" +systemname = "Intellivision" +database = "Mattel - Intellivision" +license = "GPLv3" +permissions = "" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "false" +firmware_count = 2 +firmware0_desc = "exec.bin" +firmware0_path = "exec.bin" +firmware0_opt = "false" +firmware1_desc = "grom.bin" +firmware1_path = "grom.bin" +firmware1_opt = "false" +notes = "(!) exec.bin (md5): 62e761035cb657903761800f4437b8af|(!) grom.bin (md5): 0cd5946c6473e42e8e4c2137785e427f" diff --git a/games-emulation/freeintv_libretro/freeintv_libretro-20180214.recipe b/games-emulation/freeintv_libretro/freeintv_libretro-20180214.recipe new file mode 100644 index 000000000..7131bfed1 --- /dev/null +++ b/games-emulation/freeintv_libretro/freeintv_libretro-20180214.recipe @@ -0,0 +1,52 @@ +SUMMARY="A Mattel Intellivision emulator using the libretro API" +DESCRIPTION="FreeIntv is a libretro emulation core for the Mattel \ +Intellivision designed to be compatible with joypads from the SNES era forward \ +even if they originally required a number pad." +HOMEPAGE="http://neocomputer.org/projects/freeintv/" +COPYRIGHT="2018 David Richardson, the libretro team" +LICENSE="GNU GPL v3" +REVISION="1" +srcGitRev="1c4959359573619c65d789a89ecd3b5f05d30ca2" +SOURCE_URI="https://github.com/libretro/FreeIntv/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="7e676f61255836d7deb5514dc37a92adf91fd804ac35f789cc53c99760bc2b63" +SOURCE_FILENAME="libretro-freeintv-$portVersion-$srcGitRev.tar.gz" +SOURCE_DIR="FreeIntv-$srcGitRev" +ADDITIONAL_FILES="freeintv_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + freeintv_libretro$secondaryArchSuffix = $portVersion + addon:freeintv_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/freeintv_libretro.info.in \ + > freeintv_libretro.info + make $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" LICENSE README.md + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + freeintv_libretro.info \ + freeintv_libretro.so +}