craft_libretro: a Minecraft clone libretro core (#2304)

This commit is contained in:
Benjamin FRANCOIS
2018-03-10 17:39:52 -08:00
committed by fbrosson
parent e7462a854d
commit d9bf9b556b
2 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
display_name = "Minecraft (Craft)"
authors = "Michael Fogleman"
supported_extensions = ""
corename = "Craft"
categories = "Game"
systemname = "Minecraft Game Clone"
license = "MIT"
permissions = ""
display_version = "@DISPLAY_VERSION@"
supports_no_game = "true"

View File

@@ -0,0 +1,55 @@
SUMMARY="A port of Craft, a Minecraft clone, to the libretro architecture"
DESCRIPTION="A very performant Minecraft clone written in just a few thousand \
lines of C using modern OpenGL (shaders). Online multiplayer support is \
included using a Python-based server. Many people have used this as a base \
upon which a more complex game was built."
HOMEPAGE="https://www.michaelfogleman.com/projects/craft/"
COPYRIGHT="2014-2018 Michael Fogleman, the libretro team"
LICENSE="MIT"
REVISION="1"
srcGitRev="7421f7921a7a52b65100e7c2189aa764cdd5de60"
SOURCE_URI="https://github.com/libretro/Craft/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="bea0743bddd8e1d91584a89ff4a6bbca4d9e54547181f833403569321b3ab319"
SOURCE_FILENAME="libretro-craft-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="Craft-$srcGitRev"
ADDITIONAL_FILES="craft_libretro.info.in"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
craft_libretro$secondaryArchSuffix = $portVersion
addon:craft_libretro$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
retroarch$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
mesa${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
$portDir/additional-files/craft_libretro.info.in \
> craft_libretro.info
make -f Makefile.libretro $jobArgs GIT_VERSION=${srcGitRev:0:7}
}
INSTALL()
{
install -m 0755 -d "$docDir"
install -m 0644 -t "$docDir" README.md LICENSE.md
install -m 0755 -d "$addOnsDir"/libretro
install -m 0644 -t "$addOnsDir"/libretro \
craft_libretro.info \
craft_libretro.so
}