mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 14:08:51 +02:00
91 lines
3.0 KiB
Bash
91 lines
3.0 KiB
Bash
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="3"
|
|
SOURCE_URI="https://github.com/mgba-emu/mgba/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="7c78feb0aa12930b993ca1b220d282ed178e306621559e48bb168623030eb876"
|
|
|
|
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
|
|
lib:libavcodec$secondaryArchSuffix
|
|
lib:libavformat$secondaryArchSuffix
|
|
lib:libavresample$secondaryArchSuffix
|
|
lib:libavutil$secondaryArchSuffix
|
|
lib:libedit$secondaryArchSuffix
|
|
lib:libncurses$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Multimedia$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
lib:libswscale$secondaryArchSuffix
|
|
lib:libz$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
|
|
devel:libavcodec$secondaryArchSuffix
|
|
devel:libavformat$secondaryArchSuffix
|
|
devel:libavresample$secondaryArchSuffix
|
|
devel:libavutil$secondaryArchSuffix
|
|
devel:libedit$secondaryArchSuffix
|
|
devel:libncurses$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Multimedia$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
devel:libSDL_1.2$secondaryArchSuffix
|
|
devel:libswscale$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
devel:libzip$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"
|
|
}
|