From a5d24f0f5269b164c8eeca774c3f52753a3f2ef4 Mon Sep 17 00:00:00 2001 From: kwyxz Date: Tue, 19 Jun 2018 12:11:33 -0700 Subject: [PATCH] vecx_libretro: a GCE Vectrex emulator for libretro (#2711) --- .../additional-files/vecx_libretro.info.in | 12 +++++ .../vecx_libretro-1.2_20180412.recipe | 54 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 games-emulation/vecx_libretro/additional-files/vecx_libretro.info.in create mode 100644 games-emulation/vecx_libretro/vecx_libretro-1.2_20180412.recipe diff --git a/games-emulation/vecx_libretro/additional-files/vecx_libretro.info.in b/games-emulation/vecx_libretro/additional-files/vecx_libretro.info.in new file mode 100644 index 000000000..19221761d --- /dev/null +++ b/games-emulation/vecx_libretro/additional-files/vecx_libretro.info.in @@ -0,0 +1,12 @@ +display_name = "GCE - Vectrex (vecx)" +authors = "Valavan Manohararajah|John Hawthorn|Nikita Zimin|Demeth" +supported_extensions = "bin|vec" +corename = "vecx" +manufacturer = "Smith Engineering|General Consumer Electronics" +categories = "Emulator" +systemname = "Vectrex" +database = "GCE - Vectrex" +license = "GPLv3" +permissions = "" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "false" diff --git a/games-emulation/vecx_libretro/vecx_libretro-1.2_20180412.recipe b/games-emulation/vecx_libretro/vecx_libretro-1.2_20180412.recipe new file mode 100644 index 000000000..09b975d86 --- /dev/null +++ b/games-emulation/vecx_libretro/vecx_libretro-1.2_20180412.recipe @@ -0,0 +1,54 @@ +SUMMARY="A port of Vecx, a GCE Vectrex emulator to the libretro API" +DESCRIPTION="Vecx is a GCE Vectrex emulator, a vector display-based home video \ +game console that was developed by Western Technologies/Smith Engineering. It \ +had an integrated vector monitor, was monochrome and used plastic screen \ +overlays (also emulated by Vecx) to simulate color and various static graphics \ +and decorations. This is the libretro port of Vecx." +HOMEPAGE="https://www.valavan.net/vectrex.html" +COPYRIGHT="2002-2018 Valavan Manohararajah, John Hawthorn, the libretro team" +LICENSE="GNU GPL v3" +REVISION="1" +srcGitRev="25bfdd94900dcf5fd3d555ef686d857c0f087c2f" +SOURCE_URI="https://github.com/libretro/libretro-vecx/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="c13b6fd79b660db25f02d0e9f9a4d47804bf674560498161c13d8d58a8a60f61" +SOURCE_FILENAME="libretro-vecx-${portVersion/_/-}-$srcGitRev.tar.gz" +SOURCE_DIR="libretro-vecx-$srcGitRev" +ADDITIONAL_FILES="vecx_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + vecx_libretro$secondaryArchSuffix = $portVersion + addon:vecx_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/vecx_libretro.info.in \ + > vecx_libretro.info + make -f Makefile.libretro $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" LICENSE.md README.md + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + vecx_libretro.info \ + vecx_libretro.so +}