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

328.4. mednafen-1.32.1

Command-line multi-system emulator: NES, SNES, Game Boy, GBA, Mega Drive, PC Engine, PlayStation, Saturn and more

1.32.1-1 · GPL-2.0-or-later · 14.7 SBU · 22.4 MiB, 34 files · 44_apps, 111 of 422 · ports/core/emulators/mednafen

Homepage: https://mednafen.github.io

Depends on: pkgconf, sdl2-compat, alsa-lib, flac, zlib, lzo, zstd.

Required by: no port names it.

Sources: mednafen-1.32.1.tar.xz (3.4 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install mednafen'

build.sh:

export CFLAGS="${CFLAGS//-fPIC/}" CXXFLAGS="${CXXFLAGS//-fPIC/}"
./configure \
	--prefix=/usr \
	--disable-nls \
	--disable-rpath \
	--enable-alsa \
	--disable-jack \
	--disable-sdltest \
	--with-external-lzo \
	--with-external-libzstd \
	--with-libflac
make
make DESTDIR=$PKG install

install -d "$PKG/usr/share/doc/mednafen"
install -m644 Documentation/*.html Documentation/*.css Documentation/*.png \
	"$PKG/usr/share/doc/mednafen/"

Programs: mednafen.

Directories: /usr/share/doc/mednafen, /usr/share/licenses/mednafen.