scummvm_libretro: port of ScummVM to the libretro API (#2650)

This commit is contained in:
kwyxz
2018-06-05 16:15:10 -07:00
committed by fbrosson
parent 7c60f6dc45
commit f65b3850af
2 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
display_name = "ScummVM"
authors = "SCUMMVMdev"
supported_extensions = "scummvm"
corename = "ScummVM"
manufacturer = "LucasArts"
categories = "Game"
systemname = "Game engine"
database = "ScummVM"
license = "GPLv2"
permissions = ""
display_version = "@DISPLAY_VERSION@"
supports_no_game = "true"

View File

@@ -0,0 +1,56 @@
SUMMARY="ScummVM, a Scumm interpreter core for the Libretro API"
DESCRIPTION="ScummVM is a program which allows you to run certain classic \
graphical point-and-click adventure games, provided you already have their \
data files. This is the libretro port of ScummVM."
HOMEPAGE="https://www.scummvm.org/"
COPYRIGHT="2001-2018 the ScummVM team, the libretro team"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="60c47acfcbdd664cd3adeb97688b5466e82d70ea"
SOURCE_URI="https://github.com/libretro/scummvm/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="d4452b3c66ddc1d928416d4a102823a13cbb2e18b180768fe0ebb372e8bd2f8f"
SOURCE_FILENAME="libretro-scummvm-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="scummvm-$srcGitRev"
ADDITIONAL_FILES="scummvm_libretro.info.in"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
scummvm_libretro$secondaryArchSuffix = $portVersion
addon:scummvm_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/scummvm_libretro.info.in \
> scummvm_libretro.info
cd backends/platform/libretro/build && make $jobArgs
}
INSTALL()
{
install -m 0755 -d "$docDir"
install -m 0644 -t "$docDir" AUTHORS CONTRIBUTING.md COPYING \
COPYING.BSD COPYING.FREEFONT COPYING.LGPL COPYRIGHT \
LIBRETRO_CMDLINE.md NEWS README README.md TODO
install -m 0755 -d "$addOnsDir"/libretro
install -m 0644 -t "$addOnsDir"/libretro \
scummvm_libretro.info \
backends/platform/libretro/build/scummvm_libretro.so
}