From b461bc691f4cdd60fd35d83943b550c72bf5b143 Mon Sep 17 00:00:00 2001 From: kwyxz Date: Mon, 10 May 2021 03:24:09 -0700 Subject: [PATCH] cannonball_libretro: new recipe (#5890) --- .../cannonball_libretro.info.in | 33 +++++++++++ .../cannonball_libretro-0.34_20210308.recipe | 55 +++++++++++++++++++ .../cannonball_libretro/licenses/Cannonball | 38 +++++++++++++ 3 files changed, 126 insertions(+) create mode 100644 games-engines/cannonball_libretro/additional-files/cannonball_libretro.info.in create mode 100644 games-engines/cannonball_libretro/cannonball_libretro-0.34_20210308.recipe create mode 100644 games-engines/cannonball_libretro/licenses/Cannonball diff --git a/games-engines/cannonball_libretro/additional-files/cannonball_libretro.info.in b/games-engines/cannonball_libretro/additional-files/cannonball_libretro.info.in new file mode 100644 index 000000000..5868ac75b --- /dev/null +++ b/games-engines/cannonball_libretro/additional-files/cannonball_libretro.info.in @@ -0,0 +1,33 @@ +# Software Information +display_name = "Cannonball" +authors = "Chris White" +supported_extensions = "game|88" +corename = "Cannonball" +categories = "Game engine" +license = "Non-commercial" +permissions = "" +display_version = "@DISPLAY_VERSION@" + +# Hardware Information +manufacturer = "Sega" +systemname = "Outrun Game Engine" + +# Libretro Features +database = "Cannonball" +supports_no_game = "false" +savestate = "false" +savestate_features = "null" +cheats = "false" +input_descriptors = "true" +memory_descriptors = "false" +libretro_saves = "true" +core_options = "true" +core_options_version = "1.0" +load_subsystem = "false" +hw_render = "false" +needs_fullpath = "true" +disk_control = "false" +is_experimental = "false" +notes = "(!) You need to have a dummy file with the extension .game inside your MAME rom outrun folder." + +description = "A port of the Cannonball enhanced OutRun engine to libretro. This core includes support for increased framerate (true 60 fps, some 120 fps content), true widescreen, new game modes and many more enhancements. To run the core/game, you will need to extract the contents of an OutRun Revision B ROM archive alongside a dummy file that ends in the *.game file extension (the frontend will load this 'game' file)." diff --git a/games-engines/cannonball_libretro/cannonball_libretro-0.34_20210308.recipe b/games-engines/cannonball_libretro/cannonball_libretro-0.34_20210308.recipe new file mode 100644 index 000000000..6c341d462 --- /dev/null +++ b/games-engines/cannonball_libretro/cannonball_libretro-0.34_20210308.recipe @@ -0,0 +1,55 @@ +SUMMARY="A port of Cannonball, a Sega Out Run engine, to libretro" +DESCRIPTION="A port of the Cannonball enhanced OutRun engine to libretro. \ +This core includes support for increased framerate (true 60 fps, some 120 fps \ +content), true widescreen, new game modes and many more enhancements. To run \ +the core/game, you will need to extract the contents of an OutRun Revision B \ +ROM archive alongside a dummy file that ends in the *.game file extension (the \ +frontend will load this 'game' file)." +HOMEPAGE="https://reassembler.blogspot.com/" +COPYRIGHT="2012-2021 Chris White, the libretro team" +LICENSE="Cannonball" +REVISION="1" +srcGitRev="b85f887b641baede72f4a6e0ef6fa5c4bd479159" +SOURCE_URI="https://github.com/libretro/cannonball/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="8c5660306865fe91dad52aabeaf26709dfa6b425050b3ea0767d1905c4e882b9" +SOURCE_FILENAME="cannonball-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="cannonball-$srcGitRev" +ADDITIONAL_FILES="cannonball_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + cannonball_libretro$secondaryArchSuffix = $portVersion + addon:cannonball_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/cannonball_libretro.info.in \ + > cannonball_libretro.info + make $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" README.md docs/license.txt + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + cannonball_libretro.info \ + cannonball_libretro.so +} diff --git a/games-engines/cannonball_libretro/licenses/Cannonball b/games-engines/cannonball_libretro/licenses/Cannonball new file mode 100644 index 000000000..094b8c703 --- /dev/null +++ b/games-engines/cannonball_libretro/licenses/Cannonball @@ -0,0 +1,38 @@ +Unless otherwise explicitly stated, all code in Cannonball is released under +the following license: + +Copyright Chris White and the Cannonball team +All rights reserved. + +OutRun is a trademark of the SEGA Corporation. +This project is not affiliated with SEGA in any way. + +Redistribution and use of this code or any derivative works are permitted +provided that the following conditions are met: + +* Redistributions may not be sold, nor may they be used in a commercial +product or activity. + +* Redistributions that are modified from the original source must include the +complete source code, including the source code for all components used by a +binary built from the modified sources. However, as a special exception, the +source code distributed need not include anything that is normally distributed +(in either source or binary form) with the major components (compiler, kernel, +and so on) of the operating system on which the executable runs, unless that +component itself accompanies the executable. + +* Redistributions must reproduce the above copyright notice, this list of +conditions and the following disclaimer in the documentation and/or other +materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE.