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
ironwail-0.8.2.tar.gz(9.2 MiB)
sha256aedfaed286365bb533b0852ce53bdddc87015ec3366745047d73552de8dcd3a5
upstream: https://github.com/andrei-drexler/ironwail/archive/refs/tags/v0.8.2.tar.gz
archive copy: sources-2/games-shooter--ironwail-0.8.2.tar.gz
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:
SDL_CONFIG='pkg-config sdl2'— the command the Makefile runs for SDL2’s compile and link flags. Its default issdl2-config, which sdl2-compat does not install.DO_USERDIRS=1— withUSE_SDL2=1: keep configuration, saves and screenshots in~/.ironwailrather than the game directory, and build on SDL2. Both are upstream’s defaults, named.USE_CURL=0— build without cURL, which upstream uses only to download the official add-ons of the Quake re-release, from the re-release’s own add-on server, into the in-game mods menu. curl is not independs.USE_CODEC_WAVE=1— withUSE_CODEC_FLAC=1,USE_CODEC_MP3=1,USE_CODEC_VORBIS=1,USE_CODEC_OPUS=1,USE_CODEC_XMP=1andUSE_CODEC_UMX=1: play streamed music as WAV, FLAC (flac), MP3, Ogg Vorbis (libvorbis), Opus (opusfile), tracker modules (libxmp) and Unreal UMX. FLAC, Opus, XMP and UMX are off upstream.MP3LIB=mpg123— withVORBISLIB=vorbis: decode MP3 with mpg123 rather than libmad, and Ogg with libvorbis rather than Tremor. Both are upstream’s defaults, named.USE_CODEC_MIKMOD=0— withUSE_CODEC_MODPLUG=0: tracker modules go through libxmp alone; the Makefile takes one of the three module libraries.STRIP=true— make the Makefile’s strip step a no-op. A release build runsstripon the program, and the tree keeps symbols in every program of this size, so a backtrace names its functions (see Size and language policy).
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.