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

318.6. ardour-9.8.0

Digital audio workstation: multitrack recording, editing, mixing and LV2 plugins (YTK, X11)

Version 9.8.0, release 1
Shelf studio — Music production: DAWs, audio editors, trackers, drum machines and notation
Phase 44_apps (Applications), 376 of 422 in build order
Licence GPL-2.0-or-later
Homepage https://ardour.org/
Build time 89.4 SBU
Installed size 120.2 MiB in 1230 files
Recipe ports/core/studio/ardour/kpkgbuild

About

Ardour is a digital audio workstation: it records, edits and mixes multitrack audio and MIDI, hosts LV2 plugins, and automates a mix. Its interface is drawn with YTK, an in-tree fork of GTK 2 whose only Linux back end is X11, so Ardour runs as an Xwayland window. It is built with waf, through python3 ./waf. The installed program and its files carry the major version in their names (ardour9).

Sources

Dependencies

Depends on: python3, pkgconf, boost, glib, glibmm2.66, cairomm1.14, pangomm2.46, libsigc++2, cairo, pango, fontconfig, freetype2, libpng, libjpeg-turbo, libX11, libXext, libXrandr, libXinerama, libXi, libsndfile, libsamplerate, fftw, flac, libogg, curl, libarchive, liblo, taglib, vamp-sdk, rubberband, aubio, lrdf, lv2, serd, sord, sratom, lilv, suil, libxml2, libusb, hidapi, eudev, alsa-lib, libpulse, pipewire, dbus, readline, libcap, libwebsockets.

Required by: no port names it.

Patches

build.sh applies these; kpkg applies nothing by itself.

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

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/studio/ardour.

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/studio/ardour
echo '1f1a0ae658fb3b10e3fa6f9cab952ab6500955594c3773c5e9421f5e42b23d59  ardour-9.8.0.tar.bz2' | 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/ardour
SRC=$SRC_ROOT/ardour-9.8.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf ardour-9.8.0.tar.bz2 -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:

patch -p1 -i "$PORT_SRC/musl.patch"

python3 ./waf configure \
	--prefix=/usr \
	--configdir=/etc \
	--libdir=/usr/lib \
	--optimize \
	--freedesktop \
	--no-phone-home \
	--no-nls \
	--with-backends=jack,alsa,pulseaudio,dummy \
	--libjack=link \
	--cxx17 \
	--no-execstack \
	--noconfirm
python3 ./waf build $MAKEFLAGS
python3 ./waf install --destdir="$PKG"

install -Dm644 ardour.1 "$PKG/usr/share/man/man1/ardour9.1"

cat > "$PKG/usr/share/applications/ardour9.desktop" <<DESKTOP
[Desktop Entry]
Type=Application
Name=Ardour
GenericName=Digital Audio Workstation
Comment=Record, edit and mix multitrack audio and MIDI
Exec=ardour9
Icon=ardour9
Terminal=false
StartupWMClass=Ardour-$version
Categories=AudioVideo;Audio;AudioVideoEditing;Recorder;Mixer;
MimeType=application/x-ardour;
Keywords=daw;audio;recording;mixing;multitrack;midi;lv2;
DESKTOP
chmod 644 "$PKG/usr/share/applications/ardour9.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/ardour, 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 ardour-9.8.0-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/ardour, and runs the triggers its paths call for.

Contents

Installed programs: ardour9, ardour9-export, ardour9-lua, ardour9-new_empty_session, ardour9-new_session.

Installed directories: /etc/ardour9, /usr/lib/ardour9, /usr/share/ardour9, /usr/share/licenses/ardour.

Short descriptions

ardour9 digital audio workstation

Notes

build.sh installs upstream’s ardour.1 as ardour9.1, matching the program’s installed name, and writes its own ardour9.desktop with StartupWMClass=Ardour-<version>. Ardour’s main window sets no X11 window class of its own, so it takes the program’s, from the executable ardour-<version>: ardour-<version> as instance and Ardour-<version> as class. KWin matches an X11 window to an entry by comparing StartupWMClass with the instance name, ignoring case. Its other windows set the class Ardour with an instance name of their own (ardour_mixer, ardour_plugin_editor and so on), which no entry names.