vecx_libretro: a GCE Vectrex emulator for libretro (#2711)

This commit is contained in:
kwyxz
2018-06-19 12:11:33 -07:00
committed by fbrosson
parent dceba5152b
commit a5d24f0f52
2 changed files with 66 additions and 0 deletions

View File

@@ -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"

View File

@@ -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
}