mGBA: New recipe.

This commit is contained in:
Augustin Cavalier
2017-07-16 20:01:27 -04:00
parent fe7fcfa368
commit 98e9909480

View File

@@ -0,0 +1,74 @@
SUMMARY="A new Game Boy, Game Boy Color, and Game Boy Advance emulator written in C"
DESCRIPTION="mGBA is a new generation of Game Boy Advance emulator. The project \
started in April 2013 with the goal of being fast enough to run on lower end \
hardware than other emulators support, without sacrificing accuracy or \
portability. Even in the initial version, games generally played without \
problems. mGBA has only gotten better since then, and now boasts being the \
most accurate GBA emulator around.
Other goals include accurate enough emulation to provide a development \
environment for homebrew software, a good workflow for tool-assist runners, \
and a modern feature set for emulators that older emulators may not support."
HOMEPAGE="https://mgba.io"
COPYRIGHT="2013-2017 Jeffrey Pfau"
LICENSE="MPL v2.0"
REVISION="1"
SOURCE_URI="https://github.com/mgba-emu/mgba/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="d8cf01befd7f452415a9191b058bc21e47e39c7f2c865257cd93c2780b17fe07"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
mgba$secondaryArchSuffix = $portVersion
cmd:mgba$secondaryArchSuffix = $portVersion
cmd:mgba_qt$secondaryArchSuffix = $portVersion
lib:libmgba$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
qt5$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libedit$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libavcodec$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libzip$secondaryArchSuffix
# If you have come here to upgrade mGBA to use SDL2, know this:
# Haiku's SDL2 port is (at time of writing) TOTALLY INCOMPATIBLE with
# Qt and cannot be run in the same binary as it, as both create
# BApplication objects independent of the other.
# SDL1.2 checks if one already exists first, so it's OK.
lib:libsdl_1.2$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
qt5${secondaryArchSuffix}_devel
devel:libz$secondaryArchSuffix
devel:libedit$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
devel:libavcodec$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libzip$secondaryArchSuffix
devel:libsdl_1.2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:pkg_config$secondaryArchSuffix
cmd:ninja
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
"
BUILD()
{
cmake . -GNinja -DBUILD_GL=OFF $cmakeDirArgs
ninja $jobArgs
}
INSTALL()
{
ninja install
addAppDeskbarSymlink $binDir/mgba-qt "mGBA"
}