135.5. mpg123-1.33.7
MPEG audio decoder — libmpg123, libout123, libsyn123 and the mpg123 and out123 commands
1.33.7-1 · LGPL-2.1-only · 0.2 SBU · 1.3 MiB, 25 files · 41_system, 22 of 1047 · ports/core/audio-codecs/mpg123
Homepage: https://www.mpg123.de/
mpg123 decodes MPEG audio, MP3 above all: libmpg123 is the decoder, libout123 plays audio through an output module, and libsyn123 generates and converts sample formats, with the mpg123 player, the out123 command and the mpg123-id3dump and mpg123-strip tools on top. lame decodes through it, and libsndfile, gst-plugins-good, sdl2-mixer, mpd and vlc read MP3 with it.
Depends on: alsa-lib, pkgconf.
Required by (15): amiberry, audacious-plugins, audacity, gst-plugins-good, ironwail, lagrange, lame, libopenmpt, libsndfile, love, mpd, sdl2-mixer, sdl3-mixer, vice, vlc.
Sources: mpg123-1.33.7.tar.bz2 (1.1 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 mpg123'
build.sh:
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --disable-static \
--enable-components \
--enable-modules \
--with-audio=alsa \
--with-default-audio=alsa \
--with-network=exec \
--enable-ipv6
make
make DESTDIR=$PKG install
--enable-components— build the three libraries and the programs,mpg123,out123,mpg123-id3dumpandmpg123-strip, with their default components; configure’s default, named.--enable-modules— build the audio outputs as modules thatlibout123loads at run time, the default for a shared-library build, named.--with-audio=alsa— build only the ALSA output module, against alsa-lib, the one audio library independs. The PulseAudio and PortAudio outputs would need libpulse or portaudio, and each of those depends on libsndfile, directly or through pipewire, which depends on this port. ALSA’s default device reaches the session’s PipeWire (see Reaching the graph from a plain ALSA program on the host).--with-default-audio=alsa— the modules to try at run time: ALSA alone, so no module the package does not carry is probed. The package carriesoutput_alsa.soand the silentoutput_dummy.so.--with-network=exec— streams over HTTPS go through anexecofcurlorwget; plain HTTP, as Shoutcast uses, goes through mpg123’s internal code, which is always built.--enable-ipv6— IPv6 support in that internal network code.
Programs: mpg123, mpg123-id3dump, mpg123-strip, out123.
Libraries: libmpg123.so, libout123.so, libsyn123.so.
Directories: /usr/lib/mpg123, /usr/share/licenses/mpg123.