318.5. tenacity-1.3.5
Multitrack audio editor on wxWidgets — the Audacity 3 lineage with the network code removed
| Version | 1.3.5, release 1 |
| Shelf | studio — Music production: DAWs, audio editors, trackers, drum machines and notation |
| Phase | 44_apps (Applications), 375 of 422 in build order |
| Licence | GPL-2.0-or-later |
| Homepage | https://tenacityaudio.org/ |
| Build time | 21.1 SBU |
| Installed size | 24.7 MiB in 110 files |
| Recipe | ports/core/studio/tenacity/kpkgbuild |
About
Tenacity is a multitrack audio editor and recorder on wxWidgets, a fork of the Audacity 3 code base with Audacity’s network features removed. KDOS carries it beside Audacity, which is the Qt 6 Audacity 4. Its formats and effects come from libraries in depends: libsndfile for uncompressed formats, libmad for MP3 import and libid3tag for MP3 tags, LAME for MP3 export, twolame for MP2 export, Ogg, Vorbis, FLAC and Matroska, SoundTouch and SBSMS for pitch and tempo, and the LV2 and Vamp plugin hosts. The LADSPA and VST2 hosts are compiled from Tenacity’s own tree and need no library.
Sources
tenacity-1.3.5.tar.gz(53.8 MiB)
sha2560446e14e09046a0c72d0fdfbbf3823a2ba3451204de7b93f715cc4fe2333e781
upstream: https://codeberg.org/tenacityteam/tenacity/releases/download/v1.3.5/tenacity-1.3.5-src.tar.gz
archive copy: sources-4/studio--tenacity-1.3.5.tar.gz
Dependencies
Depends on: cmake, ninja, pkgconf, gettext, wxwidgets, gtk3, glib, zlib, expat, lame, libsndfile, soxr, sqlite, portaudio, libid3tag, libmad, libogg, libvorbis, flac, soundtouch, libsbsms, vamp-sdk, lv2, lilv, suil, portmidi, portsmf, libmatroska, libebml, twolame.
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 tenacity'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/studio/tenacity.
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/tenacity
echo '0446e14e09046a0c72d0fdfbbf3823a2ba3451204de7b93f715cc4fe2333e781 tenacity-1.3.5.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/tenacity
SRC=$SRC_ROOT/tenacity-1.3.5
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf tenacity-1.3.5.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:
cmake -S . -B build -G Ninja \
-D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_SKIP_BUILD_RPATH=ON \
-D VCPKG=OFF \
-D SCCACHE=OFF \
-D CCACHE=OFF \
-D BUILD_STATIC_LIBS=OFF \
-D ID3TAG=ON \
-D MP3_DECODING=ON \
-D OGG=ON \
-D VORBIS=ON \
-D FLAC=ON \
-D SBSMS=ON \
-D SOUNDTOUCH=ON \
-D VAMP=ON \
-D LV2=ON \
-D LADSPA=ON \
-D VST2=ON \
-D MIDI=ON \
-D MATROSKA=ON \
-D MP2=ON \
-D FFMPEG=OFF \
-D PERFORM_CODESIGN=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
for _size in 16 22 24 32 48; do
_dir="$PKG/usr/share/icons/hicolor/${_size}x${_size}"
install -d "$_dir/apps"
mv "$_dir/tenacity.png" "$_dir/apps/tenacity.png"
done
cat > "$PKG/usr/share/applications/tenacity.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Tenacity
GenericName=Sound Editor
Comment=Record and edit audio files
TryExec=tenacity
Exec=tenacity %F
Icon=tenacity
Terminal=false
StartupNotify=false
StartupWMClass=tenacity
Categories=AudioVideo;Audio;AudioVideoEditing;Recorder;
Keywords=audio;editor;sound;wave;record;multitrack;audacity;tenacity;
DESKTOP
chmod 644 "$PKG/usr/share/applications/tenacity.desktop"
The switches, and why each is set:
-D CMAKE_SKIP_BUILD_RPATH=ON— link the build tree’s binaries with noRPATH. Tenacity copies its own libraries into place withinstall(DIRECTORY), which ships them with theRPATHthey were built with, a build directory the package lint refuses (see what the package lint refuses).-D VCPKG=OFF— take every dependency from the system instead of building it with vcpkg. Upstream’s default isONonly on Windows and macOS; the switch states the Linux default.-D SCCACHE=OFF— and-D CCACHE=OFF: when sccache or ccache is on thePATH, upstream puts it in front of the compiler; off, the tree’s compiler is called directly.-D BUILD_STATIC_LIBS=OFF— Tenacity’s internal libraries are shared libraries, upstream’s default.-D ID3TAG=ON— andMP3_DECODING,OGG,VORBIS,FLAC,SOUNDTOUCH,VAMP,LV2,MIDI,MATROSKA,MP2: each feature by name. Every one of these is acmake_dependent_optionthat turns itself off when its library is not found and says so only in a status line, so naming itONdocuments the intent but does not make a missing library fail the build; the libraries are all independs. MIDI needs portmidi and portsmf, Matroska libmatroska over libebml, and MP2 export twolame.-D SBSMS=ON— SBSMS time-stretching from the libsbsms port. Without vcpkg its default isOFF, so this switch is what turns it on.-D LADSPA=ON— and-D VST2=ON: hosting of LADSPA and VST2 effect plugins. VST2 hosting loads plugin shared objects the user installs; none ships with it.-D FFMPEG=OFF— no FFmpeg import and export. Tenacity loads FFmpeg’s libraries at run time and can use only the libavformat major versions it has an implementation for, one directory each underlibraries/lib-ffmpeg-support/impl/avformat/. The ffmpeg port’s is newer than all of them, so the loader would never find a library it can use.-D PERFORM_CODESIGN=OFF— no code signing step, which applies to Windows and macOS builds.
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/tenacity, 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 tenacity-1.3.5-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/tenacity, and runs the triggers its paths call for.
Contents
Installed programs: tenacity.
Installed directories: /usr/lib/tenacity, /usr/share/doc/tenacity, /usr/share/licenses/tenacity, /usr/share/tenacity.
Short descriptions
tenacity |
Graphical cross-platform audio editor based on Audacity |
Notes
Upstream installs its PNG icons into hicolor/<size>/ with no apps/ level, where no icon lookup finds them; build.sh moves each into hicolor/<size>/apps/.
The recipe writes its own tenacity.desktop. The Wayland app id is GLib’s program name, tenacity, which the entry names in StartupWMClass, and Exec runs tenacity itself rather than upstream’s env UBUNTU_MENUPROXY=0 wrapper, a setting for Ubuntu’s Unity menu proxy. The entry has no MimeType line, so Tenacity is offered as the opener of no file type.