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

324.5. ironwail-0.8.2

Quake engine from the QuakeSpasm line, with an OpenGL renderer that keeps the original look

Version 0.8.2, release 1
Shelf games-shooter — First-person shooters, Doom and Quake engines, and their data
Phase 44_apps (Applications), 197 of 422 in build order
Licence GPL-2.0-or-later
Homepage https://github.com/andrei-drexler/ironwail
Build time 2.7 SBU
Installed size 1.4 MiB in 9 files
Recipe ports/core/games-shooter/ironwail/kpkgbuild

About

Ironwail is a Quake engine from the QuakeSpasm line, with a rewritten OpenGL renderer that keeps the original game’s look while drawing large modern maps quickly. The game data is not free and is not shipped: a player puts their own pak0.pak (and pak1.pak) in ~/.ironwail/id1, one of the places the engine searches and the directory the desktop entry’s comment names.

Sources

Dependencies

Depends on: pkgconf, sdl2-compat, mesa, libglvnd, flac, mpg123, libvorbis, libogg, opusfile, libxmp.

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 ironwail'

What kpkg does

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

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/ironwail
echo 'aedfaed286365bb533b0852ce53bdddc87015ec3366745047d73552de8dcd3a5  ironwail-0.8.2.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/ironwail
SRC=$SRC_ROOT/ironwail-0.8.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf ironwail-0.8.2.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:

make -C Misc/pak
cp Misc/pak/ironwail.pak Quake/ironwail.pak

make -C Quake \
	SDL_CONFIG='pkg-config sdl2' \
	DO_USERDIRS=1 \
	USE_SDL2=1 \
	USE_CURL=0 \
	USE_CODEC_WAVE=1 \
	USE_CODEC_FLAC=1 \
	USE_CODEC_MP3=1 \
	MP3LIB=mpg123 \
	USE_CODEC_VORBIS=1 \
	VORBISLIB=vorbis \
	USE_CODEC_OPUS=1 \
	USE_CODEC_XMP=1 \
	USE_CODEC_MIKMOD=0 \
	USE_CODEC_MODPLUG=0 \
	USE_CODEC_UMX=1 \
	STRIP=true

install -Dm755 Quake/ironwail "$PKG/usr/lib/ironwail/ironwail"
install -Dm644 Quake/ironwail.pak "$PKG/usr/lib/ironwail/ironwail.pak"
install -d "$PKG/usr/bin"
cat > "$PKG/usr/bin/ironwail" <<'SCRIPT'
#!/bin/sh
exec /usr/lib/ironwail/ironwail "$@"
SCRIPT
chmod 755 "$PKG/usr/bin/ironwail"
install -Dm644 README.md Quakespasm.txt Quakespasm-Music.txt \
	-t "$PKG/usr/share/doc/ironwail"

install -Dm644 Misc/QuakeSpasm_512.png \
	"$PKG/usr/share/icons/hicolor/512x512/apps/ironwail.png"
install -d "$PKG/usr/share/applications"
cat > "$PKG/usr/share/applications/ironwail.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Ironwail
GenericName=First Person Shooter
Comment=Play Quake; needs the game data in ~/.ironwail/id1
Exec=ironwail
Icon=ironwail
Terminal=false
StartupWMClass=ironwail
Categories=Game;ActionGame;
Keywords=first;person;shooter;quake;quakespasm;
DESKTOP
chmod 644 "$PKG/usr/share/applications/ironwail.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/ironwail, 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 ironwail-0.8.2-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/ironwail, and runs the triggers its paths call for.

Contents

Installed programs: ironwail.

Installed directories: /usr/lib/ironwail, /usr/share/doc/ironwail, /usr/share/licenses/ironwail.

Notes

build.sh first runs make -C Misc/pak, which packs the engine’s own menu graphics lumps and its default.cfg into ironwail.pak with upstream’s mkpak.sh, and copies the result over the prebuilt Quake/ironwail.pak in the source before the engine is built.

The engine finds ironwail.pak beside the path it was started by, so the program and the pak are installed together in /usr/lib/ironwail, and /usr/bin/ironwail is a small script that starts the program by its full path; a symbolic link would leave the engine looking in /usr/bin. The window’s Wayland app id is the executable’s name, ironwail.