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
ardour-9.8.0.tar.bz2(17.3 MiB)
sha2561f1a0ae658fb3b10e3fa6f9cab952ab6500955594c3773c5e9421f5e42b23d59
upstream: https://community.ardour.org/src/Ardour-9.8.0.tar.bz2
archive copy: sources-4/studio--ardour-9.8.0.tar.bz2
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.
musl.patch— Inlibs/tk/ytk/gtksearchenginesimple.c, the file search of YTK’s file chooser, changes the three#ifdef HAVE_GNU_FTWtests to also requireFTW_ACTIONRETVAL. YTK’s hard-codedconfig.hdefinesHAVE_GNU_FTWon every system but macOS and NetBSD, but musl’snftw()has none of glibc’sFTW_ACTIONRETVAL,FTW_STOPandFTW_SKIP_SUBTREE; with the patch the search uses the plainnftw()return values there.
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:
--configdir=/etc— waf’s name for the system configuration directory, the counterpart of--sysconfdir.--optimize— an optimized build. Without it Ardour’s waf builds a debug build, and a debug build that is not given--keepflagsempties the exportedCFLAGSandCXXFLAGS, so the tree’s compiler flags would not reach the compile.--freedesktop— build the freedesktop.org MIME type and desktop files. With this switch the configure runsitstool --versionand stops unless it finds itstool 2 or later; itstool is not independsbut is installed by the30_foundationphase.--no-phone-home— do not contact ardour.org at start-up for announcements.--no-nls— no translations; the package is English only under the size and language policy.--with-backends=jack,alsa,pulseaudio,dummy— the audio back ends: JACK, ALSA, PulseAudio and the dummy back end that needs no device. PipeWire serves all three real ones on KDOS (see JACK programs on the host).--libjack=link— link the JACK back end againstlibjackdirectly, which the pipewire port provides, rather than loading it at run time (weak).linkis also whatautopicks on Linux, and the configure’sjack_port_rename()check runs only in this mode.--cxx17— compile as C++17 (-std=c++17). GCC 16 compiles C++ as C++20 by default, and C++20 types au8"..."literal asconst char8_t[], which converts to neitherstd::stringnorconst char *; Ardour’s sources assign such literals to both (seeu8literals under C++20).--no-execstack— do not link with-z execstack. Ardour’s waf adds it on Linux by default, and the package lint refuses an executable stack (see what the package lint refuses). Upstream’s help text warns that this may break some plugins.--noconfirm— ask no questions during the build.
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.