BSD Ports

audio/libmad 0.16.4 FreeBSD

MPEG audio decoder library

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
df543fb6da
License
GPLv2+
Categories
audio
Package size
73.8 KiB, 176.4 KiB installed

Description

MAD (libmad) is a high-quality MPEG audio decoder. It currently supports MPEG-1 and the MPEG-2 extension to Lower Sampling Frequencies, as well as the so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II, and Layer III a.k.a. MP3) are fully implemented.

MAD does not yet support MPEG-2 multichannel audio (although it should be backward compatible with such streams) nor does it currently support AAC.

MAD has the following special features:

  • 24-bit PCM output
  • 100% fixed-point (integer) computation
  • completely new implementation based on the ISO/IEC standards
  • distributed under the terms of the GNU General Public License (GPL)

Because MAD provides full 24-bit PCM output, applications using MAD are able to produce high quality audio. Even when the output device supports only 16-bit PCM, applications can use the extra resolution to increase the audible dynamic range through the use of dithering or noise shaping.

In the other systems

SystemPortVersion
FreeBSDaudio/libmad0.16.4
OpenBSDaudio/libmad0.15.1bp7
NetBSDaudio/libmad0.15.1bnb3
DragonFlyaudio/libmad0.16.4
MidnightBSDaudio/libmad0.16.4

Install

Binary package:

pkg install libmad

From the ports tree:

cd /usr/ports/audio/libmad/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	libmad>0:audio/libmad
LIB_DEPENDS=	libmad.so:audio/libmad

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.16.40.16.40.16.30.16.40.16.4
FreeBSD:14:quarterly0.16.40.16.4n/a0.16.40.16.4
FreeBSD:15:latest0.16.40.16.4n/a0.16.40.16.4
FreeBSD:15:quarterly0.16.40.16.4n/an/an/a
FreeBSD:16:latest0.16.40.16.4n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 15
Required by 88

Configuration

Options name: audio_libmad

OptionDefaultDescription
ACCURACYoffOptimize for accuracy over speed
SPEEDonOptimize for speed over accuracy
USES
cmake cpe
Service scripts
none

Files

pkg-plist 9
  • include/mad.h
  • lib/cmake/mad/madConfig.cmake
  • lib/cmake/mad/madConfigVersion.cmake
  • lib/cmake/mad/madTargets-.cmake
  • lib/cmake/mad/madTargets.cmake
  • lib/libmad.so
  • lib/libmad.so.0
  • lib/libmad.so.
  • libdata/pkgconfig/mad.pc
distinfo 1
FileSizeSHA256
libmad-0.16.4.tar.gz9210480f6bfb36c554075494b5fc2c646d08de7364819540f23bab30ae73fa1b5cfe65
Master sites 1
  • https://codeberg.org/tenacityteam/libmad/releases/download/0.16.4/

Commit history 1

DateCommitCreditsLog message
df543fb6da Gleb Popov audio/libmad: Fix building with CMake 4
Approved by: portmgr (fixit blanket)