mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
gearcoleco_libretro: new recipe (#6183)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
display_name = "Coleco - ColecoVision (Gearcoleco)"
|
||||
authors = "Ignacio Sanchez"
|
||||
supported_extensions = "col|cv|bin|rom"
|
||||
corename = "Gearcoleco"
|
||||
manufacturer = "Coleco"
|
||||
categories = "Emulator"
|
||||
systemname = "ColecoVision"
|
||||
systemid = "colecovision"
|
||||
database = "Coleco - ColecoVision"
|
||||
license = "GPLv3"
|
||||
permissions = ""
|
||||
display_version = "@DISPLAY_VERSION@"
|
||||
supports_no_game = "false"
|
||||
@@ -0,0 +1,53 @@
|
||||
SUMMARY="A port of Gearcoleco, a Colecovision emulator to the libretro API"
|
||||
DESCRIPTION="Gearcoleco is a very accurate cross-platform ColecoVision \
|
||||
emulator written in C++ that runs on Windows, macOS, Linux, BSD, Raspberry Pi \
|
||||
and RetroArch."
|
||||
HOMEPAGE="https://github.com/drhelius/Gearcoleco"
|
||||
COPYRIGHT="2020-2021 Ignacio Sánchez"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
srcGitRev="223b96c6f92fe2ece238df8a463334e2dfadaa7d"
|
||||
SOURCE_URI="https://github.com/drhelius/Gearcoleco/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="36684b0d60e9f9edd203931e4ce8c31f6e95da75e074619ead55a73cc063337e"
|
||||
SOURCE_FILENAME="Gearcoleco-${portVersion/_/-}-$srcGitRev.tar.gz"
|
||||
SOURCE_DIR="Gearcoleco-$srcGitRev"
|
||||
ADDITIONAL_FILES="gearcoleco_libretro.info.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
gearcoleco_libretro$secondaryArchSuffix = $portVersion
|
||||
addon:gearcoleco_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/gearcoleco_libretro.info.in \
|
||||
> gearcoleco_libretro.info
|
||||
|
||||
cd platforms/libretro && make GIT_VERSION=${srcGitRev:0:7} $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
install -m 0755 -d "$docDir"
|
||||
install -m 0644 -t "$docDir" LICENSE README.md backers.md
|
||||
install -m 0755 -d "$addOnsDir"/libretro
|
||||
install -m 0644 -t "$addOnsDir"/libretro \
|
||||
gearcoleco_libretro.info \
|
||||
platforms/libretro/gearcoleco_libretro.so
|
||||
}
|
||||
Reference in New Issue
Block a user