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
-D CMAKE_POLICY_VERSION_MINIMUM=3.5— theCMakeLists.txtdeclarescmake_minimum_required(VERSION 3.1.0), and the tree’s CMake 4 refuses a floor below 3.5 (see An old CMake policy floor).-D BUILD_SHARED_LIBS=True— buildlibmad.so, upstream’s default, named.-D FPM_64BIT=ON— fixed-point arithmetic on 64-bit integers. On a 64-bit target theCMakeLists.txtchooses it by itself; named, it is the recipe’s own choice.-D ASO=ON— architecture-specific optimisations, upstream’s default. ItsASO_*definitions are set only in the x86 (32-bit), ARM and MIPS branches, so on x86-64 it changes nothing.-D EXAMPLE=OFF— skipmad_example, a small decoder built fromminimad.c.
Libraries: libmad.so.
Directories: /usr/lib/cmake/mad, /usr/share/licenses/libmad.