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

135.22. libmad-0.16.4

MPEG audio decoder library

0.16.4-1 · GPL-2.0-or-later · 0.3 SBU · 202.3 KiB, 11 files · 41_system, 124 of 1047 · ports/core/audio-codecs/libmad

Homepage: https://codeberg.org/tenacityteam/libmad

libmad is an MPEG audio decoder library, for MPEG-1 and MPEG-2 layers I, II and III, that computes in fixed-point arithmetic. sox, cmus, scummvm, vlc, k3b and the other ports that name it in depends decode MP3 with it.

The source is the fork maintained by the Tenacity project on Codeberg, which builds with CMake.

Depends on: cmake, ninja, pkgconf.

Required by (11): avidemux, cdrdao, cmus, dsda-doom, endless-sky, k3b, kwave, scummvm, sox, tenacity, vlc.

Sources: libmad-0.16.4.tar.gz (199.7 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libmad'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-D CMAKE_BUILD_TYPE=Release \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D CMAKE_INSTALL_LIBDIR=lib \
	-D BUILD_SHARED_LIBS=True \
	-D ASO=ON \
	-D FPM_64BIT=ON \
	-D EXAMPLE=OFF

cmake --build build
DESTDIR=$PKG cmake --install build

Libraries: libmad.so.

Directories: /usr/lib/cmake/mad, /usr/share/licenses/libmad.