libmad: Added patch to install mad.pc, stolen from Arch Linux.

svn path=/nixpkgs/trunk/; revision=21144
This commit is contained in:
Alexander Tsamutali
2010-04-18 18:07:03 +00:00
parent f18af16dfe
commit 64249d4372
3 changed files with 122 additions and 2 deletions
@@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{stdenv, fetchurl, autoconf}:
stdenv.mkDerivation {
name = "libmad-0.15.1b";
@@ -8,8 +8,11 @@ stdenv.mkDerivation {
sha256 = "bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690";
};
patches = [ ./pkgconfig.patch ];
# The -fforce-mem flag has been removed in GCC 4.3.
preConfigure = ''
${autoconf}/bin/autoconf
substituteInPlace configure --replace "-fforce-mem" ""
'';