OpenLara_libretro: an open source Tomb Raider engine core (#2528)

This commit is contained in:
kwyxz
2018-05-02 10:28:15 -07:00
committed by fbrosson
parent 072870adc5
commit accb2e2df1
2 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
display_name = "Tomb Raider (OpenLara)"
authors = "XProger"
supported_extensions = "psx"
corename = "OpenLara"
categories = "Game"
systemname = "Classic Tomb Raider engine"
database = "Tomb Raider"
license = "2-clause BSD"
permissions = ""
display_version = "@DISPLAY_VERSION@"
supports_no_game = "false"

View File

@@ -0,0 +1,55 @@
SUMMARY="A port of OpenLara, a Tomb Raider engine, to the libretro architecture"
DESCRIPTION="OpenLara is an open source implementation of the Tomb Raider \
game engine, allowing you to play the original Tomb Raider on any platform \
OpenLara is ported on. Original game files are required to play."
HOMEPAGE="http://xproger.info/projects/OpenLara/"
COPYRIGHT="2016-2018 XProger, the libretro team"
LICENSE="BSD (2-clause)"
REVISION="1"
srcGitRev="2f8d38066a7dd499e51ce0e0f352342b1ae9e49e"
SOURCE_URI="https://github.com/libretro/OpenLara/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="982ae3a6f8aedd86703ea2789dfc9faeaabe4a18f7b6b0934bc9fe2c4370e68e"
SOURCE_FILENAME="libretro-openlara-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="OpenLara-$srcGitRev"
ADDITIONAL_FILES="openlara_libretro.info.in"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
openlara_libretro$secondaryArchSuffix = $portVersion
addon:openlara_libretro$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
retroarch$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libGL$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
$portDir/additional-files/openlara_libretro.info.in \
> openlara_libretro.info
make -C src/platform/libretro $jobArgs clean && \
make -C src/platform/libretro $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 \
openlara_libretro.info \
src/platform/libretro/openlara_libretro.so
}