Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

148.3. libretro-mgba-0.10.5

mGBA as a libretro core — Game Boy Advance, Game Boy and Game Boy Color in RetroArch

0.10.5-1 · MPL-2.0 · 1.1 SBU · 2.9 MiB, 2 files · 41_system, 491 of 1047 · ports/core/emulators/libretro-mgba

Homepage: https://mgba.io

Depends on: cmake, ninja.

Required by: no port names it.

Sources: mgba-0.10.5.tar.gz (13.7 MiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libretro-mgba'

build.sh:

cmake -B build -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DBUILD_LIBRETRO=ON \
	-DSKIP_LIBRARY=ON \
	-DBUILD_SHARED=OFF \
	-DBUILD_STATIC=OFF \
	-DBUILD_SDL=OFF \
	-DBUILD_QT=OFF \
	-DBUILD_TEST=OFF \
	-DBUILD_SUITE=OFF \
	-DDISABLE_DEPS=ON \
	-DUSE_EPOXY=OFF \
	-DUSE_FFMPEG=OFF \
	-DUSE_LUA=OFF \
	-DENABLE_SCRIPTING=OFF \
	-DUSE_DISCORD_RPC=OFF \
	-DUSE_LIBZIP=OFF \
	-DUSE_MINIZIP=OFF \
	-DUSE_ELF=OFF \
	-DUSE_EDITLINE=OFF
ninja -C build mgba_libretro
install -Dm755 build/mgba_libretro.so "$PKG/usr/lib/libretro/mgba_libretro.so"

Directories: /usr/share/licenses/libretro-mgba.