1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/emulators/mgba/Makefile
James Wright d482245238 emulators/mgba: Update to 0.9.2
Changelog:	https://mgba.io/2021/07/10/mgba-0.9.2/

PR:		257166
Approved by:	lwhsu (mentor, implicit), Greg V (maintainer)
2021-07-18 17:39:19 -04:00

74 lines
2.0 KiB
Makefile

PORTNAME= mgba
DISTVERSION= 0.9.2
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 \
libpng.so:graphics/png
USES= cmake compiler:c++11-lang gl gnome localbase:ldflags pkgconfig \
sdl sqlite:3
USE_GITHUB= yes
GH_ACCOUNT= mgba-emu
USE_GL= gl glu
USE_LDCONFIG= yes
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 \
-DUSE_DISCORD_RPC:BOOL=OFF \
-DBUILD_GL:BOOL=ON \
-DBUILD_GLES2:BOOL=OFF
LDFLAGS+= -Wl,--as-needed # glu
OPTIONS_DEFINE= DEBUGGERS FFMPEG LIBRETRO MAGICK QT5 DOCS
OPTIONS_DEFAULT= DEBUGGERS FFMPEG LIBRETRO MAGICK QT5
OPTIONS_SUB= yes
DEBUGGERS_DESC= Debugging infrastructure (CLI debugger, GDB remote stub)
FFMPEG_DESC= FFmpeg video recording support
LIBRETRO_DESC= libretro core
MAGICK_DESC= ImageMagick GIF recording support
QT5_DESC= Qt 5 frontend
DEBUGGERS_USES= libedit
DEBUGGERS_CMAKE_BOOL= USE_DEBUGGERS USE_EDITLINE USE_GDB_STUB
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
libavformat.so:multimedia/ffmpeg \
libavresample.so:multimedia/ffmpeg \
libavutil.so:multimedia/ffmpeg \
libswscale.so:multimedia/ffmpeg
FFMPEG_CMAKE_BOOL= USE_FFMPEG
LIBRETRO_CMAKE_BOOL= BUILD_LIBRETRO
LIBRETRO_CMAKE_ON= -DLIBRETRO_LIBDIR:PATH="${PREFIX}/lib/libretro"
LIBRETRO_CONFLICTS_INSTALL= libretro-mgba
MAGICK_LIB_DEPENDS= libMagickWand-6.so:graphics/ImageMagick6 \
libMagickCore-6.so:graphics/ImageMagick6
MAGICK_CMAKE_BOOL= USE_MAGICK
QT5_USES= desktop-file-utils qt:5
QT5_USE= qt=qmake_build,buildtools_build,core,gui,widgets,network,opengl,multimedia
QT5_CMAKE_BOOL= BUILD_QT
QT5_VARS= installs_icons=yes
.include <bsd.port.mk>