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

324.6. ioquake3-1.36.20260917

Quake III Arena engine — the maintained id Tech 3 with SDL, OpenAL, VoIP and current renderers

Version 1.36.20260917, release 2
Shelf games-shooter — First-person shooters, Doom and Quake engines, and their data
Phase 44_apps (Applications), 198 of 422 in build order
Licence GPL-2.0-or-later
Homepage https://ioquake3.org/
Build time 1.9 SBU
Installed size 7.8 MiB in 25 files
Recipe ports/core/games-shooter/ioquake3/kpkgbuild

About

ioquake3 is the maintained id Tech 3 engine, the Quake III Arena engine carried forward with SDL, OpenAL, VoIP, HTTP downloads and current renderers. It installs the client ioquake3, the dedicated server ioq3ded, both renderers and the game modules. The port builds from a commit of upstream’s repository rather than a release, named by the _commit helper, and its version is the last release number followed by a date.

The game data is not free and is not shipped. A player copies pak0.pk3 and the point-release paks from their own Quake III Arena into baseq3 under the engine’s data directory, ${XDG_DATA_HOME:-~/.local/share}/Quake3/baseq3. The desktop entry’s comment names ~/.q3a/baseq3, the engine’s older location, which still works: when ~/.q3a exists and ~/.config/Quake3 does not, the engine offers once to copy its contents into the XDG directories, and keeps using ~/.q3a if the player declines.

Sources

Dependencies

Depends on: cmake, ninja, pkgconf, sdl2-compat, mesa, libglvnd, openal-soft, curl, zlib, libjpeg-turbo, libogg, libvorbis, opus, opusfile, freetype2, librsvg.

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

What kpkg does

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

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/ioquake3
echo 'cff55a0128ddca72aa7ce1dda89c0c946a84324a4472a3a7805d3a4d3c3cf8e4  ioquake3-1.36.20260917.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/ioquake3
SRC=$SRC_ROOT/ioquake3-1.36.20260917
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf ioquake3-1.36.20260917.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 recipe’s helpers _commit and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

cmake -S . -B build -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr/lib/ioquake3 \
	-DPRODUCT_VERSION=$version \
	-DBUILD_CLIENT=ON \
	-DBUILD_SERVER=ON \
	-DBUILD_RENDERER_GL1=ON \
	-DBUILD_RENDERER_GL2=ON \
	-DBUILD_GAME_LIBRARIES=ON \
	-DBUILD_GAME_QVMS=ON \
	-DBUILD_STANDALONE=OFF \
	-DUSE_RENDERER_DLOPEN=ON \
	-DUSE_OPENAL=ON \
	-DUSE_OPENAL_DLOPEN=ON \
	-DUSE_HTTP=ON \
	-DUSE_CODEC_VORBIS=ON \
	-DUSE_CODEC_OPUS=ON \
	-DUSE_VOIP=ON \
	-DUSE_MUMBLE=ON \
	-DUSE_FREETYPE=ON \
	-DUSE_INTERNAL_LIBS=OFF \
	-DUSE_INTERNAL_SDL=OFF \
	-DUSE_INTERNAL_ZLIB=OFF \
	-DUSE_INTERNAL_JPEG=OFF \
	-DUSE_INTERNAL_OGG=OFF \
	-DUSE_INTERNAL_VORBIS=OFF \
	-DUSE_INTERNAL_OPUS=OFF \
	-DCURL_NO_CURL_CMAKE=ON \
	-DCMAKE_REQUIRE_FIND_PACKAGE_CURL=ON \
	-DCMAKE_REQUIRE_FIND_PACKAGE_OpenAL=ON
cmake --build build
DESTDIR=$PKG cmake --install build

install -d "$PKG/usr/bin"
for b in ioquake3 ioq3ded; do
	cat > "$PKG/usr/bin/$b" <<SCRIPT
#!/bin/sh
exec /usr/lib/ioquake3/$b "\$@"
SCRIPT
	chmod 755 "$PKG/usr/bin/$b"
done
install -Dm644 README.md ChangeLog COPYING.txt -t "$PKG/usr/share/doc/ioquake3"
install -Dm644 misc/linux/org.ioquake3.ioquake3.metainfo.xml \
	-t "$PKG/usr/share/metainfo"

install -d "$PKG/usr/share/icons/hicolor/256x256/apps"
rsvg-convert -w 256 -h 256 misc/quake3.svg \
	-o "$PKG/usr/share/icons/hicolor/256x256/apps/ioquake3.png"
install -d "$PKG/usr/share/applications"
cat > "$PKG/usr/share/applications/org.ioquake3.ioquake3.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=ioquake3
GenericName=First Person Shooter
Comment=Play Quake III Arena; needs the game data in ~/.q3a/baseq3
Exec=ioquake3
Icon=ioquake3
Terminal=false
StartupWMClass=ioquake3
Categories=Game;ActionGame;
Keywords=first;person;shooter;quake;quake3;arena;
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.ioquake3.ioquake3.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/ioquake3, 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 ioquake3-1.36.20260917-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/ioquake3, and runs the triggers its paths call for.

Contents

Installed programs: ioq3ded, ioquake3.

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

Notes

Because the engine finds its renderers and modules beside the path it was started by, /usr/bin/ioquake3 and /usr/bin/ioq3ded are small scripts that start the programs by their full paths under /usr/lib/ioquake3; a symbolic link would leave the engine looking in /usr/bin.

Upstream installs no icon and no desktop entry (see Desktop entries belong to the port), so build.sh renders a 256-pixel PNG from upstream’s misc/quake3.svg with rsvg-convert from librsvg and writes the desktop entry; the window’s Wayland app id is the executable’s name, ioquake3.