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
ioquake3-1.36.20260917.tar.gz(7.2 MiB)
sha256cff55a0128ddca72aa7ce1dda89c0c946a84324a4472a3a7805d3a4d3c3cf8e4
upstream: https://github.com/ioquake/ioq3/archive/83a776283bdb958f82db25554b5ed0966aaf6e49.tar.gz
archive copy: sources-2/games-shooter--ioquake3-1.36.20260917.tar.gz
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:
-DCMAKE_INSTALL_PREFIX=/usr/lib/ioquake3— install the engine’s whole tree, programs, renderers and game modules together, under/usr/lib/ioquake3rather than/usr. The engine takes its own directory fromargv[0]and loads the renderers and the game modules from there.-DPRODUCT_VERSION=$version— the version the engine reports. Left unset, upstream takes the project’s version and, in a git checkout that is not on a release tag, appends_gand the short commit hash; an unpacked archive has no repository, so the snapshot would report only the release number.-DBUILD_CLIENT=ON— with-DBUILD_SERVER=ON,-DBUILD_RENDERER_GL1=ON,-DBUILD_RENDERER_GL2=ON,-DBUILD_GAME_LIBRARIES=ONand-DBUILD_GAME_QVMS=ON: the client, the dedicated server, the OpenGL 1 and OpenGL 2 renderers, and the game modules both as native libraries and as QVM bytecode. All are upstream’s defaults, named.-DBUILD_STANDALONE=OFF— build the engine for Quake III Arena itself rather than for a standalone game on the engine. Upstream’s default, named.-DUSE_RENDERER_DLOPEN=ON— load the renderer as a separate library at run time, so the player can switch between them. Upstream’s default, named.-DUSE_OPENAL=ON— with-DUSE_OPENAL_DLOPEN=ON: sound through OpenAL, loaded at run time from openal-soft. Upstream’s defaults, named.-DUSE_HTTP=ON— download the files a server’s game needs over HTTP, through curl. Upstream’s default, named.-DUSE_CODEC_VORBIS=ON— with-DUSE_CODEC_OPUS=ON,-DUSE_VOIP=ONand-DUSE_MUMBLE=ON: Ogg Vorbis and Opus audio, in-game voice chat, and Mumble’s positional-audio link. All are upstream’s defaults, named.-DUSE_FREETYPE=ON— render text with freetype2. Upstream’s default is off.-DUSE_INTERNAL_LIBS=OFF— with-DUSE_INTERNAL_SDL=OFF,-DUSE_INTERNAL_ZLIB=OFF,-DUSE_INTERNAL_JPEG=OFF,-DUSE_INTERNAL_OGG=OFF,-DUSE_INTERNAL_VORBIS=OFFand-DUSE_INTERNAL_OPUS=OFF: link the tree’s SDL2, zlib, libjpeg, Ogg, Vorbis and Opus rather than the copies incode/thirdparty/. Each per-library switch defaults toUSE_INTERNAL_LIBS, which is on upstream.-DCMAKE_REQUIRE_FIND_PACKAGE_CURL=ON— with-DCMAKE_REQUIRE_FIND_PACKAGE_OpenAL=ON: make the cURL and OpenAL lookups required. Upstream looks for eachQUIETand, when it is missing, falls back to the headers bundled incode/thirdparty/, so the build would succeed without the system’s.-DCURL_NO_CURL_CMAKE=ON— keep CMake’s FindCURL from first looking for aCURLConfig.cmake, which the tree’s curl does not install; with the lookup required, that search would itself fail the configure (see A graphical application).
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.