New port: emulators/mgba

A modern open source Game Boy Advance emulator, with support for Game
Boy and Game Boy Color games as well.  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.  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.

WWW: https://mgba.io

PR:		222779
Submitted by:	Greg V <greg@unrelenting.technology>
This commit is contained in:
Tobias Kortkamp 2017-10-05 16:35:17 +00:00
parent 76ba57b765
commit bbbbee48dd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=451322
5 changed files with 129 additions and 0 deletions

View file

@ -79,6 +79,7 @@
SUBDIR += mastergear
SUBDIR += mednafen
SUBDIR += mess
SUBDIR += mgba
SUBDIR += mtools
SUBDIR += mupen64plus
SUBDIR += mupen64plus-audio-sdl

65
emulators/mgba/Makefile Normal file
View file

@ -0,0 +1,65 @@
# $FreeBSD$
PORTNAME= mgba
DISTVERSION= 0.6.1
CATEGORIES= emulators
MAINTAINER= greg@unrelenting.technology
COMMENT= Game Boy Advance (GBA) emulator/debugger
LICENSE= MPL20 BSD3CLAUSE LGPL21+
LICENSE_COMB= multi
LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/src/third-party/inih/LICENSE.txt
LICENSE_FILE_LGPL21+= ${WRKSRC}/src/third-party/blip_buf/license.txt
LICENSE_FILE_MPL20= ${WRKSRC}/LICENSE
LIB_DEPENDS= libepoxy.so:graphics/libepoxy \
libpng16.so:graphics/png
USES= cmake:outsource compiler:c++11-lang localbase:ldflags pkgconfig sqlite:3
USE_GITHUB= yes
GH_ACCOUNT= mgba-emu
USE_GL= gl glu
USE_SDL= sdl2
CMAKE_ARGS= -DCMAKE_INSTALL_DOCDIR:STRING="${DOCSDIR}" \
-DUSE_MINIZIP:BOOL=OFF \
-DUSE_LIBZIP:BOOL=OFF \
-DUSE_ZLIB:BOOL=ON \
-DUSE_LZMA:BOOL=ON \
-DUSE_SQLITE3:BOOL=ON \
-DBUILD_GL:BOOL=ON \
-DBUILD_GLES2:BOOL=OFF
LDFLAGS+= -Wl,--as-needed # glu
OPTIONS_DEFINE= DEBUGGERS FFMPEG MAGICK QT5
OPTIONS_DEFAULT= DEBUGGERS FFMPEG MAGICK QT5
OPTIONS_SUB= yes
DEBUGGERS_DESC= Debugging infrastructure (CLI debugger, GDB remote stub)
FFMPEG_DESC= FFmpeg video recording support
MAGICK_DESC= ImageMagick GIF recording support
QT5_DESC= Qt 5 frontend
DEBUGGERS_CMAKE_BOOL= USE_DEBUGGERS USE_EDITLINE USE_GDB_STUB
DEBUGGERS_USES= libedit
FFMPEG_CMAKE_BOOL= USE_FFMPEG
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
libavformat.so:multimedia/ffmpeg \
libavresample.so:multimedia/ffmpeg \
libavutil.so:multimedia/ffmpeg \
libswscale.so:multimedia/ffmpeg
MAGICK_CMAKE_BOOL= USE_MAGICK
MAGICK_LIB_DEPENDS= libMagickWand-6.so:graphics/ImageMagick \
libMagickCore-6.so:graphics/ImageMagick
QT5_CMAKE_BOOL= BUILD_QT
QT5_USE= qt5=qmake_build,buildtools_build,core,gui,widgets,network,opengl,multimedia
QT5_USES= desktop-file-utils
QT5_VARS= installs_icons=yes
.include <bsd.port.mk>

3
emulators/mgba/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1507126883
SHA256 (mgba-emu-mgba-0.6.1_GH0.tar.gz) = 7c78feb0aa12930b993ca1b220d282ed178e306621559e48bb168623030eb876
SIZE (mgba-emu-mgba-0.6.1_GH0.tar.gz) = 7437240

10
emulators/mgba/pkg-descr Normal file
View file

@ -0,0 +1,10 @@
A modern open source Game Boy Advance emulator, with support for Game
Boy and Game Boy Color games as well. 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. 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.
WWW: https://mgba.io

50
emulators/mgba/pkg-plist Normal file
View file

@ -0,0 +1,50 @@
bin/mgba
%%QT5%%bin/mgba-qt
include/mgba/flags.h
lib/libmgba.so.0.6
lib/libmgba.so.0.6.1
%%QT5%%man/man6/mgba-qt.6.gz
man/man6/mgba.6.gz
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
%%PORTDOCS%%%%DOCSDIR%%/README.md
%%QT5%%share/applications/mgba-qt.desktop
share/icons/hicolor/128x128/apps/mgba.png
share/icons/hicolor/16x16/apps/mgba.png
share/icons/hicolor/24x24/apps/mgba.png
share/icons/hicolor/256x256/apps/mgba.png
share/icons/hicolor/32x32/apps/mgba.png
share/icons/hicolor/48x48/apps/mgba.png
share/icons/hicolor/512x512/apps/mgba.png
share/icons/hicolor/64x64/apps/mgba.png
share/icons/hicolor/96x96/apps/mgba.png
%%QT5%%%%DATADIR%%/nointro.dat
%%QT5%%%%DATADIR%%/shaders/agb001.shader/agb001.fs
%%QT5%%%%DATADIR%%/shaders/agb001.shader/manifest.ini
%%QT5%%%%DATADIR%%/shaders/ags001.shader/ags001-light.fs
%%QT5%%%%DATADIR%%/shaders/ags001.shader/ags001.fs
%%QT5%%%%DATADIR%%/shaders/ags001.shader/manifest.ini
%%QT5%%%%DATADIR%%/shaders/fish.shader/fish.fs
%%QT5%%%%DATADIR%%/shaders/fish.shader/manifest.ini
%%QT5%%%%DATADIR%%/shaders/gba-color.shader/gba-color.fs
%%QT5%%%%DATADIR%%/shaders/gba-color.shader/manifest.ini
%%QT5%%%%DATADIR%%/shaders/lcd.shader/lcd.fs
%%QT5%%%%DATADIR%%/shaders/lcd.shader/manifest.ini
%%QT5%%%%DATADIR%%/shaders/motion_blur.shader/manifest.ini
%%QT5%%%%DATADIR%%/shaders/motion_blur.shader/motion_blur.fs
%%QT5%%%%DATADIR%%/shaders/pixelate.shader/manifest.ini
%%QT5%%%%DATADIR%%/shaders/scanlines.shader/manifest.ini
%%QT5%%%%DATADIR%%/shaders/scanlines.shader/scanlines.fs
%%QT5%%%%DATADIR%%/shaders/soften.shader/manifest.ini
%%QT5%%%%DATADIR%%/shaders/soften.shader/soften.fs
%%QT5%%%%DATADIR%%/shaders/vba_pixelate.shader/manifest.ini
%%QT5%%%%DATADIR%%/shaders/vba_pixelate.shader/vba_pixelate.fs
%%QT5%%%%DATADIR%%/shaders/vignette.shader/manifest.ini
%%QT5%%%%DATADIR%%/shaders/vignette.shader/vignette.fs
%%QT5%%%%DATADIR%%/shaders/wiiu.shader/manifest.ini
%%QT5%%%%DATADIR%%/shaders/wiiu.shader/wiiu.fs
%%QT5%%%%DATADIR%%/shaders/xbr-lv2.shader/manifest.ini
%%QT5%%%%DATADIR%%/shaders/xbr-lv2.shader/xbr.fs
%%QT5%%%%DATADIR%%/shaders/xbr-lv2.shader/xbr.vs
%%QT5%%%%DATADIR%%/shaders/xbr-lv3.shader/manifest.ini
%%QT5%%%%DATADIR%%/shaders/xbr-lv3.shader/xbr.fs
%%QT5%%%%DATADIR%%/shaders/xbr-lv3.shader/xbr.vs