From 0dcd6214084f242f479d8f1af4c445efa1777d21 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 3 Feb 2009 16:31:11 +0000 Subject: [PATCH] * libmad: build on GCC 4.3. svn path=/nixpkgs/branches/stdenv-updates/; revision=13973 --- pkgs/development/libraries/libmad/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/libmad/default.nix b/pkgs/development/libraries/libmad/default.nix index 458945e102dd..6387be4b4cbe 100644 --- a/pkgs/development/libraries/libmad/default.nix +++ b/pkgs/development/libraries/libmad/default.nix @@ -2,15 +2,19 @@ stdenv.mkDerivation { name = "libmad-0.15.1b"; + src = fetchurl { url = mirror://sourceforge/mad/libmad-0.15.1b.tar.gz; sha256 = "bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690"; }; - buildInputs = []; + # The -fforce-mem flag has been removed in GCC 4.3. + preConfigure = '' + substituteInPlace configure --replace "-fforce-mem" "" + ''; meta = { - description = "MAD, a high-quality, fixed-point, MPEG audio decoder - supporting MPEG-1 and MPEG-2."; + homepage = http://sourceforge.net/projects/mad/; + description = "MAD, a high-quality, fixed-point, MPEG audio decoder supporting MPEG-1 and MPEG-2."; }; }