2010-04-18 19:07:03 +01:00
|
|
|
{stdenv, fetchurl, autoconf}:
|
2004-04-02 16:36:14 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2006-06-29 13:41:25 +01:00
|
|
|
name = "libmad-0.15.1b";
|
2009-02-03 16:31:11 +00:00
|
|
|
|
2003-12-03 21:58:16 +00:00
|
|
|
src = fetchurl {
|
2008-02-11 21:02:38 +00:00
|
|
|
url = mirror://sourceforge/mad/libmad-0.15.1b.tar.gz;
|
|
|
|
sha256 = "bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690";
|
|
|
|
};
|
|
|
|
|
2010-08-21 17:53:25 +01:00
|
|
|
patches = [ ./001-mips_removal_h_constraint.patch ./pkgconfig.patch ];
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ autoconf ];
|
2010-04-18 19:07:03 +01:00
|
|
|
|
2009-02-03 16:31:11 +00:00
|
|
|
# The -fforce-mem flag has been removed in GCC 4.3.
|
|
|
|
preConfigure = ''
|
2010-08-21 17:53:25 +01:00
|
|
|
autoconf
|
2009-02-03 16:31:11 +00:00
|
|
|
substituteInPlace configure --replace "-fforce-mem" ""
|
|
|
|
'';
|
2008-02-11 21:02:38 +00:00
|
|
|
|
|
|
|
meta = {
|
2009-02-03 16:31:11 +00:00
|
|
|
homepage = http://sourceforge.net/projects/mad/;
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "A high-quality, fixed-point MPEG audio decoder supporting MPEG-1 and MPEG-2";
|
2003-12-03 21:58:16 +00:00
|
|
|
};
|
|
|
|
}
|