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

324.2. crispy-doom-7.1

Limit-removing Doom engine — Chocolate Doom with higher resolution and quality-of-life fixes

Version 7.1, release 2
Shelf games-shooter — First-person shooters, Doom and Quake engines, and their data
Phase 44_apps (Applications), 194 of 422 in build order
Licence GPL-2.0-or-later
Homepage https://fabiangreffrath.github.io/crispy-homepage/
Build time 2.9 SBU
Installed size 6.5 MiB in 53 files
Recipe ports/core/games-shooter/crispy-doom/kpkgbuild

About

Crispy Doom is a limit-removing Doom source port built on Chocolate Doom: it keeps the original’s look and behaviour but renders at higher resolution, raises the engine’s static limits so larger maps load, and adds quality-of-life features. Like Chocolate Doom it plays Heretic, Hexen and Strife too, and it installs crispy-doom, crispy-heretic, crispy-hexen, crispy-strife, a setup program for each, and crispy-server. With freedoom in depends, the Freedoom IWADs in /usr/share/games/doom give crispy-doom a game to play.

Sources

Dependencies

Depends on: autoconf, automake, pkgconf, python3, python3-pillow, sdl2-compat, sdl2-mixer, sdl2-net, libsamplerate, libpng, fluidsynth, zlib, freedoom.

Required by: no port names it.

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 crispy-doom'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/games-shooter/crispy-doom.

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/games-shooter/crispy-doom
echo 'f0eb02afb81780165ddc81583ed5648cbee8b3205bcc27e181b3f61eb26f8416  crispy-doom-7.1.tar.gz' | 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/crispy-doom
SRC=$SRC_ROOT/crispy-doom-7.1
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf crispy-doom-7.1.tar.gz -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:

autoreconf -fi

export CFLAGS="$CFLAGS -g0"

./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
	--enable-sdl2mixer \
	--enable-sdl2net \
	--enable-doc \
	--enable-bash-completion \
	--enable-fonts \
	--enable-icons \
	--with-libsamplerate \
	--with-libpng \
	--with-fluidsynth \
	--with-zlib \
	--enable-truecolor \
	--disable-werror
make
make appdatadir=/usr/share/metainfo DESTDIR=$PKG install

rm -f "$PKG/usr/share/applications/io.github.fabiangreffrath".{Heretic,Hexen,Strife}.desktop
cat > "$PKG/usr/share/applications/io.github.fabiangreffrath.Doom.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Crispy Doom
GenericName=First Person Shooter
Comment=Play Doom in higher resolution, true to the original
Exec=crispy-doom
Icon=crispy-doom
Terminal=false
StartupWMClass=crispy-doom
Categories=Game;ActionGame;
Keywords=first;person;shooter;doom;freedoom;vanilla;
DESKTOP
cat > "$PKG/usr/share/applications/io.github.fabiangreffrath.Setup.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Crispy Doom Setup
Comment=Controls, sound, video and network settings for Crispy Doom
Exec=crispy-doom-setup
Icon=crispy-setup
Terminal=false
StartupWMClass=crispy-doom-setup
Categories=Settings;Game;
Keywords=doom;setup;controls;joystick;
DESKTOP
chmod 644 "$PKG/usr/share/applications/"*.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/crispy-doom, 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 crispy-doom-7.1-2.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/crispy-doom, and runs the triggers its paths call for.

Contents

Installed programs: crispy-doom, crispy-doom-setup, crispy-heretic, crispy-heretic-setup, crispy-hexen, crispy-hexen-setup, crispy-server, crispy-strife, crispy-strife-setup.

Installed directories: /usr/share/doc/crispy-doom, /usr/share/doc/crispy-heretic, /usr/share/doc/crispy-hexen, /usr/share/doc/crispy-strife, /usr/share/licenses/crispy-doom.

Short descriptions

crispy-doom historically compatible Doom engine
crispy-doom-setup configuration tool for crispy-doom
crispy-heretic historically compatible Heretic engine
crispy-heretic-setup configuration tool for crispy-heretic
crispy-hexen historically compatible Hexen engine
crispy-hexen-setup configuration tool for crispy-hexen
crispy-server dedicated server for crispy-doom
crispy-strife historically compatible Strife engine
crispy-strife-setup configuration tool for crispy-strife

Notes

The source is GitHub’s archive of the release tag, which carries configure.ac but no generated configure, so build.sh runs autoreconf -fi first.

Upstream installs a desktop entry for each of the four games, the setup program and a Doom screensaver. build.sh removes the Heretic, Hexen and Strife entries, whose games need data KDOS does not ship (their programs stay, for a player with the data), and writes the Doom and setup entries itself with StartupWMClass set to each program’s name, which is its Wayland app id.