From 3d84bd551d0ba474cfcd6806105d585a2b8ea988 Mon Sep 17 00:00:00 2001 From: Benjamin FRANCOIS Date: Mon, 5 Mar 2018 15:36:25 -0800 Subject: [PATCH] 4DO_libretro: a 3DO emulator using the libretro API (#2269) * Initial commit * Replaced SUPPLEMENTS with REQUIRES, added documentation * Replaced lib: by addon: for consistency --- .../4do_libretro-1.3.2.4.20180219git.recipe | 51 +++++++++++++++++++ .../additional-files/4do_libretro.info.in | 17 +++++++ games-emulation/4do_libretro/licenses/FreeDO | 7 +++ 3 files changed, 75 insertions(+) create mode 100644 games-emulation/4do_libretro/4do_libretro-1.3.2.4.20180219git.recipe create mode 100644 games-emulation/4do_libretro/additional-files/4do_libretro.info.in create mode 100644 games-emulation/4do_libretro/licenses/FreeDO diff --git a/games-emulation/4do_libretro/4do_libretro-1.3.2.4.20180219git.recipe b/games-emulation/4do_libretro/4do_libretro-1.3.2.4.20180219git.recipe new file mode 100644 index 000000000..61e30081a --- /dev/null +++ b/games-emulation/4do_libretro/4do_libretro-1.3.2.4.20180219git.recipe @@ -0,0 +1,51 @@ +SUMMARY="A port of 4DO, a 3DO emulator to the libretro architecture" +DESCRIPTION="4DO is an open-source, low-level emulator for the Panasonic 3DO, based on the FreeDO source code." +HOMEPAGE="http://www.fourdo.com/" +COPYRIGHT="2011-2018 the 4DO/FreeDO team, the libretro team" +LICENSE="FreeDO + GNU LGPL v3" +REVISION="1" +srcGitRev="12eba56e3ddb1cd3c53bf26f62adeca7cc0389af" +SOURCE_URI="https://github.com/libretro/4do-libretro/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="1aee495919d1cc0f71f965c1d6fc61a548cad36f1826aaf52207c0650dbf2886" +SOURCE_FILENAME="libretro-4do-$portVersion-$srcGitRev.tar.gz" +SOURCE_DIR="4do-libretro-$srcGitRev" +ADDITIONAL_FILES="4do_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + 4do_libretro$secondaryArchSuffix = $portVersion + addon:4do_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%git}/" \ + $portDir/additional-files/4do_libretro.info.in \ + > 4do_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 \ + 4do_libretro.info \ + 4do_libretro.so +} diff --git a/games-emulation/4do_libretro/additional-files/4do_libretro.info.in b/games-emulation/4do_libretro/additional-files/4do_libretro.info.in new file mode 100644 index 000000000..06ce9322d --- /dev/null +++ b/games-emulation/4do_libretro/additional-files/4do_libretro.info.in @@ -0,0 +1,17 @@ +display_name = "The 3DO Company - 3DO (4DO)" +authors = "JohnnyDude|FreeDO team" +supported_extensions = "iso|cue" +corename = "4DO" +manufacturer = "Various" +categories = "Emulator" +systemname = "3DO" +database = "The 3DO Company - 3DO" +license = "FreeDO" +permissions = "" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "false" +firmware_count = 1 +firmware0_desc = "panafz10.bin (Panasonic FZ-10 BIOS)" +firmware0_path = "panafz10.bin" +firmware0_opt = "false" +notes = "(!) panafz10.bin (md5): 51f2f43ae2f3508a14d9f56597e2d3ce" diff --git a/games-emulation/4do_libretro/licenses/FreeDO b/games-emulation/4do_libretro/licenses/FreeDO new file mode 100644 index 000000000..f7345c1e8 --- /dev/null +++ b/games-emulation/4do_libretro/licenses/FreeDO @@ -0,0 +1,7 @@ +The FreeDO licensed under modified GNU LGPL, with following notes: +* The owners and original authors of the FreeDO have full right to develop closed source derivative work. +* Any non-commercial uses of the FreeDO sources or any knowledge obtained by studying or reverse engineering + of the sources, or any other material published by FreeDO have to be accompanied with full credits. +* Any commercial uses of FreeDO sources or any knowledge obtained by studying or reverse engineering of the sources, + or any other material published by FreeDO is strictly forbidden without owners approval. +The above notes are taking precedence over GNU LGPL in conflicting situations.