234.1. libkcddb-26.08.2
KDE CDDB client library — audio CD track names for K3b
26.08.2-1 · LGPL-2.0-or-later AND GPL-2.0-or-later · 1.8 SBU · 682.6 KiB, 37 files · 43_toolkits, 240 of 344 · ports/core/optical/libkcddb
Homepage: https://invent.kde.org/multimedia/libkcddb
libkcddb is KDE’s CD database client: it identifies an audio CD from its table of contents and fetches the album, artist and track names from a freedb-style CDDB server or from MusicBrainz, with a local cache. k3b, audex and the audiocd:/ worker of audiocd-kio name the tracks they rip through it. It also builds the CDDB Retrieval page of System Settings, where the servers and the cache are set.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kconfig, ki18n, kio, kwidgetsaddons, kcmutils, kdoctools, libmusicbrainz5.
Required by (3): audex, audiocd-kio, k3b.
Sources: libkcddb-26.08.2.tar.xz (437.2 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install libkcddb'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D BUILD_DOC=ON \
-D KF_SKIP_PO_PROCESSING=ON \
-Wno-dev
grep -q '^#define HAVE_MUSICBRAINZ5 1' build/config-musicbrainz.h
cmake --build build
DESTDIR=$PKG cmake --install build
-D BUILD_DOC=ON— Builds the settings page’s handbook through kdoctools. Upstream’s default, named.-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations inpo/; the image is English only (see Size and language policy).
Libraries: libKCddb6.so.
Directories: /usr/include/KCddb6, /usr/lib/cmake/KCddb6, /usr/share/doc/HTML/en/kcontrol/cddbretrieval5, /usr/share/licenses/libkcddb.
The MusicBrainz lookup is built only when the configure finds libmusicbrainz 5, and upstream treats it as optional. The grep after the configure stops the build unless build/config-musicbrainz.h defines HAVE_MUSICBRAINZ5 as 1, so a missing libmusicbrainz5 fails the build instead of leaving CDDB servers as the only source.
The settings page, kcm_cddb, installs a hidden kcm_cddb.desktop that opens it in System Settings, through which KRunner and the application launcher’s search find it.