a9db2a9b6a
0.9.3: (2021-12-17) Emulation fixes: - GB I/O: Fix incrementing SGB controller when P14 is low (fixes mgba.io/i/2202) - GB Video: Render SGB border when unmasking with ATTR/PAL_SET (fixes mgba.io/i/2261) - GBA SIO: Fix SI value for unattached MULTI mode - GBA Video: Fix backdrop color if DISPCNT is first set to 0 (fixes mgba.io/i/2260) - GBA Video: Don't iterate affine backgrounds when disabled - GBA Video: Delay enabling backgrounds in bitmap modes (fixes mgba.io/i/1668) Other fixes: - ARM Decoder: Fix decoding of lsl r0 (fixes mgba.io/i/2349) - FFmpeg: Don't attempt to use YUV 4:2:0 for lossless videos (fixes mgba.io/i/2084) - GB Video: Fix memory leak when reseting SGB games - GBA: Fix out of bounds ROM accesses on patched ROMs smaller than 32 MiB - GBA: Fix maximum tile ID in caching for 256-color modes - GBA Video: Fix cache updating with proxy and GL renderers - Libretro: Fix crash when using Game Boy codes (fixes mgba.io/i/2281) - mGUI: Fix crash if autosave file can't be opened (fixes mgba.io/i/2268) - Qt: Remove potentially deadlocking optimization - Qt: Fix corrupted savestate and fatal error text - Qt: Fix sprite compositing when sprite tiles go out of bounds (fixes mgba.io/i/2348) Misc: - GBA I/O: Update KEYINPUT in internal I/O memory (fixes mgba.io/i/2235) - SDL: Use SDL_JoystickRumble where available
58 lines
1.5 KiB
Makefile
58 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2021/12/19 11:37:10 nia Exp $
|
|
|
|
DISTNAME= mgba-0.9.3
|
|
PKGNAME= libretro-${DISTNAME}
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=mgba-emu/}
|
|
GITHUB_PROJECT= mgba
|
|
|
|
MAINTAINER= nia@NetBSD.org
|
|
HOMEPAGE= https://docs.libretro.com/library/mgba/
|
|
COMMENT= Libretro core based on the mGBA emulator
|
|
LICENSE= mpl-2.0
|
|
|
|
USE_CMAKE= yes
|
|
USE_TOOLS+= pkg-config
|
|
USE_LANGUAGES= c c++
|
|
|
|
OPSYSVARS+= SOEXT
|
|
SOEXT.Darwin= dylib
|
|
SOEXT.*= so
|
|
PLIST_SUBST+= SOEXT=${SOEXT}
|
|
|
|
WRKSRC= ${WRKDIR}/mgba-${PKGVERSION_NOREV}
|
|
|
|
CMAKE_ARGS+= -DUSE_DEBUGGERS=OFF
|
|
CMAKE_ARGS+= -DUSE_GDB_STUB=OFF
|
|
|
|
CMAKE_ARGS+= -DUSE_EDITLINE=OFF
|
|
CMAKE_ARGS+= -DUSE_FFMPEG=OFF
|
|
CMAKE_ARGS+= -DUSE_ZLIB=OFF
|
|
CMAKE_ARGS+= -DUSE_MINIZIP=OFF
|
|
CMAKE_ARGS+= -DUSE_PNG=OFF
|
|
CMAKE_ARGS+= -DUSE_LIBZIP=OFF
|
|
CMAKE_ARGS+= -DUSE_SQLITE3=OFF
|
|
CMAKE_ARGS+= -DUSE_LZMA=OFF
|
|
CMAKE_ARGS+= -DUSE_EPOXY=OFF
|
|
|
|
CMAKE_ARGS+= -DBUILD_QT=OFF
|
|
CMAKE_ARGS+= -DBUILD_SDL=OFF
|
|
CMAKE_ARGS+= -DBUILD_GL=OFF
|
|
CMAKE_ARGS+= -DBUILD_GLES2=OFF
|
|
CMAKE_ARGS+= -DBUILD_GLES3=OFF
|
|
|
|
CMAKE_ARGS+= -DBUILD_LIBRETRO=ON
|
|
CMAKE_ARGS+= -DSKIP_LIBRARY=ON
|
|
CMAKE_ARGS+= -DLIBRETRO_LIBDIR=${PREFIX}/lib/libretro
|
|
|
|
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
|
|
|
|
# Avoid conflicting with emulators/mgba.
|
|
post-install:
|
|
${RM} -rf ${DESTDIR}${PREFIX}/share/doc/mGBA
|
|
${RM} -rf ${DESTDIR}${PREFIX}/include/mgba*
|
|
|
|
.include "../../devel/libelf/buildlink3.mk"
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|