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

135.6. lame-4.0

LAME MP3 encoder

4.0-1 · LGPL-2.0-or-later · 0.5 SBU · 732.4 KiB, 9 files · 41_system, 23 of 1047 · ports/core/audio-codecs/lame

Homepage: https://lame.sourceforge.io/

Why it is in KDOS. The comment above the 5 ports from libogg to lame in script/phases/41_system/packages.d/audio-codecs.txt:

ffmpeg, libsndfile and the gst plugin packages are configured against these and are only as capable as what is installed: each of those build systems answers a missing library by disabling the feature rather than failing. One encoder per format — adding a second earns nothing.

LAME is the MP3 encoder: the library libmp3lame and the lame command. ffmpeg, libsndfile, gst-plugins-good, sox, audacity, k3b and handbrake write MP3 through the library. It decodes MP3 too, through mpg123, for lame --decode, MP3 input and its hip_* decoding API.

Depends on: mpg123, ncurses.

Required by (18): audacious-plugins, audacity, audex, audiocd-kio, avidemux, cdrdao, ffmpeg, gst-plugins-good, handbrake, k3b, kwave, libsndfile, lmms, mpd, musescore, sox, tenacity, vice.

Sources: lame-4.0.tar.gz (1.4 MiB). Every step kpkg takes applies to this port.

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

build.sh:

export CFLAGS="$CFLAGS -Wno-implicit-function-declaration -Wno-implicit-int \
	-Wno-int-conversion -Wno-incompatible-pointer-types"

./configure --prefix=/usr --libdir=/usr/lib --enable-static \
	--enable-nasm=no \
	--enable-frontend \
	--enable-decoder \
	--disable-gtktest
make
make DESTDIR=$PKG install
rm -f "$PKG/usr/lib/libmp3lame.a"

Programs: lame.

Libraries: libmp3lame.so.

Directories: /usr/include/lame, /usr/share/licenses/lame.

The lame command reads the terminal’s capabilities through the termcap functions of ncurses (tgetent, tgetstr) for its console output, and configure links ncurses whenever it finds it, so ncurses is in depends; the installed lame needs libncursesw.so.6.