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

328.2. scummvm-2026.3.0

Runs classic point-and-click adventure and role-playing games from their original data files

Version 2026.3.0, release 1
Shelf emulators — Standalone emulators of computers and consoles, and compatibility layers
Phase 44_apps (Applications), 109 of 422 in build order
Licence GPL-3.0-or-later
Homepage https://www.scummvm.org
Build time 26.6 SBU
Installed size 186.6 MiB in 235 files
Recipe ports/core/emulators/scummvm/kpkgbuild

About

ScummVM runs classic point-and-click adventure and role-playing games from their original data files by reimplementing each game’s engine: LucasArts’ SCUMM games, Sierra’s, Revolution’s and many others. The player supplies the game data. It is an SDL 2 program, drawn here by sdl2-compat on SDL 3, with its own launcher and menus and no toolkit.

Sources

Dependencies

Depends on: pkgconf, librsvg, sdl2-compat, mesa, libglvnd, alsa-lib, fluidsynth, speech-dispatcher, libogg, libvorbis, flac, libmad, faad2, libtheora, libvpx, libjpeg-turbo, libpng, giflib, freetype2, fribidi, zlib, libmpeg2, a52dec, libopenmpt.

Required by: no port names it.

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.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

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

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/emulators/scummvm.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

cd /ports/core/emulators/scummvm
echo 'b863a81e1598df8bc4aa0c33e3d9b1c8bbede1879d94d91568a4f200057677e7  scummvm-2026.3.0.tar.xz' | sha256sum -c -

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/scummvm
SRC=$SRC_ROOT/scummvm-2026.3.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf scummvm-2026.3.0.tar.xz -C "$SRC" --strip-components=1

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

install -d "$SRC_ROOT/sdl-shim"
cat > "$SRC_ROOT/sdl-shim/sdl2-config" <<'SHIM'
#!/bin/sh
case "$1" in
--cflags) exec pkg-config --cflags sdl2 ;;
--libs) exec pkg-config --libs sdl2 ;;
--version) exec pkg-config --modversion sdl2 ;;
*) exit 1 ;;
esac
SHIM
chmod 755 "$SRC_ROOT/sdl-shim/sdl2-config"
export PATH="$SRC_ROOT/sdl-shim:$PATH"
./configure \
	--prefix=/usr \
	--enable-release \
	--disable-Werror \
	--disable-debug \
	--enable-optimizations \
	--disable-cloud \
	--disable-libcurl \
	--disable-sdlnet \
	--disable-enet \
	--disable-dlc \
	--disable-scummvmdlc \
	--disable-updates \
	--disable-sparkle \
	--disable-discord \
	--disable-libunity \
	--disable-gtk \
	--disable-eventrecorder \
	--enable-tts \
	--disable-translation \
	--enable-alsa \
	--enable-fluidsynth \
	--disable-fluidlite \
	--enable-mt32emu \
	--disable-seq-midi \
	--disable-timidity \
	--disable-sndio \
	--disable-sonivox \
	--enable-ogg \
	--enable-vorbis \
	--disable-tremor \
	--enable-flac \
	--enable-mad \
	--enable-faad \
	--enable-theoradec \
	--enable-vpx \
	--enable-jpeg \
	--enable-png \
	--enable-gif \
	--enable-freetype2 \
	--enable-fribidi \
	--enable-zlib \
	--enable-mpeg2 \
	--enable-a52 \
	--disable-mikmod \
	--enable-openmpt \
	--disable-mpcdec \
	--disable-retrowave \
	--disable-opl2lpt \
	--disable-readline
make
make DESTDIR=$PKG install

install -d "$PKG/usr/share/icons/hicolor/256x256/apps"
rsvg-convert -w 256 -h 256 icons/scummvm.svg \
	-o "$PKG/usr/share/icons/hicolor/256x256/apps/org.scummvm.scummvm.png"

cat > "$PKG/usr/share/applications/org.scummvm.scummvm.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=ScummVM
GenericName=Adventure Game Engine
Comment=Play classic adventure and role-playing games from their original data files
TryExec=scummvm
Exec=scummvm
Icon=org.scummvm.scummvm
Terminal=false
StartupNotify=false
StartupWMClass=scummvm
Categories=Game;AdventureGame;RolePlaying;
Keywords=adventure;point and click;lucasarts;sierra;monkey island;scumm;game;
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.scummvm.scummvm.desktop"

The switches, and why each is set:

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/scummvm, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf scummvm-2026.3.0-1.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/scummvm, and runs the triggers its paths call for.

Contents

Installed programs: scummvm.

Installed directories: /usr/share/doc/scummvm, /usr/share/licenses/scummvm, /usr/share/scummvm.

Short descriptions

scummvm adventure and role-playing game interpreter

Notes

The SDL 2 interface comes from sdl2-compat, whose Provides: sdl2 answers pkg-config. Once pkg-config answers for sdl2, configure takes its SDL flags only from an sdl2-config found on PATH, and there is none here; without one it reads pkg-config’s own version as SDL’s and fails its probe. build.sh writes a small sdl2-config into $SRC_ROOT/sdl-shim, first on PATH, that answers --cflags, --libs and --version from pkg-config.

The menu icon is a 256-pixel PNG that build.sh rasterises from upstream’s SVG. Upstream’s menu entry is replaced, and SDL names the Wayland window after the executable, scummvm.