2009-12-30 00:02:40 +00:00
|
|
|
# Template file for 'libmad'
|
|
|
|
pkgname=libmad
|
|
|
|
version=0.15.1b
|
2013-04-13 08:15:49 +00:00
|
|
|
revision=6
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-04-13 08:15:49 +00:00
|
|
|
hostmakedepends="automake pkg-config"
|
2009-12-30 00:02:40 +00:00
|
|
|
short_desc="High-quality MPEG audio decoder"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-03-21 18:55:43 +00:00
|
|
|
homepage="http://www.underbit.com/products/mad/"
|
|
|
|
license="GPL-2"
|
2012-10-11 09:07:11 +00:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/mad/$pkgname-$version.tar.gz"
|
2009-12-30 00:02:40 +00:00
|
|
|
checksum=bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690
|
|
|
|
long_desc="
|
|
|
|
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."
|
|
|
|
|
2012-10-11 09:07:11 +00:00
|
|
|
pre_configure() {
|
2013-03-21 18:55:43 +00:00
|
|
|
sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.ac
|
2012-10-11 09:07:11 +00:00
|
|
|
autoconf
|
2009-12-30 00:02:40 +00:00
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
libmad-devel_package() {
|
|
|
|
depends="${sourcepkg}-${version}_${revision}"
|
2014-01-01 15:10:11 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|