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

137.5. libgme-0.6.5

Play video-game console music: NES, SNES, Game Boy, Genesis, PC Engine and more

0.6.5-1 · LGPL-2.1-or-later AND MIT · 1.1 SBU · 494.9 KiB, 7 files · 41_system, 767 of 1047 · ports/core/music-libs/libgme

Homepage: https://github.com/libgme/game-music-emu

Depends on: cmake, ninja, zlib.

Required by (5): love, sdl2-mixer, sdl3-mixer, srb2, vlc.

Sources: libgme-0.6.5.tar.gz (339.6 KiB). Every step kpkg takes applies to this port.

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

build.sh:

mkdir -p build && cd build
cmake .. -G Ninja \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DGME_BUILD_SHARED=ON \
	-DGME_BUILD_STATIC=OFF \
	-DGME_BUILD_TESTING=OFF \
	-DGME_BUILD_EXAMPLES=OFF \
	-DGME_ENABLE_UBSAN=OFF \
	-DGME_ZLIB=ON
ninja
DESTDIR=$PKG ninja install

Libraries: libgme.so.

Directories: /usr/include/gme, /usr/share/licenses/libgme.