2012-08-23 17:57:31 +00:00
|
|
|
{ stdenv, fetchurl, libogg }:
|
2009-02-09 16:51:03 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "flac-1.2.1";
|
2012-08-23 17:57:31 +00:00
|
|
|
|
2009-02-09 16:51:03 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://sourceforge/flac/flac-1.2.1.tar.gz;
|
|
|
|
sha256 = "1pry5lgzfg57pga1zbazzdd55fkgk3v5qy4axvrbny5lrr5s8dcn";
|
|
|
|
};
|
|
|
|
|
2012-08-23 17:57:31 +00:00
|
|
|
buildInputs = [ libogg ];
|
|
|
|
|
|
|
|
patches =
|
|
|
|
[ # Fix for building on GCC 4.3.
|
|
|
|
(fetchurl {
|
|
|
|
url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-libs/flac/files/flac-1.2.1-gcc-4.3-includes.patch?rev=1.1";
|
|
|
|
sha256 = "1m6ql5vyjb2jlp5qiqp6w0drq1m6x6y3i1dnl5ywywl3zd36k0mr";
|
|
|
|
})
|
|
|
|
];
|
2009-02-12 21:19:31 +00:00
|
|
|
|
2012-08-23 19:01:00 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
outputs = [ "dev" "out" "bin" "doc" ];
|
|
|
|
|
|
|
|
configureFlags = [ "--bindir=$(bin)/bin" "--includedir=$(dev)/include" "--mandir=$(bin)/share/man" ];
|
|
|
|
|
|
|
|
installFlags = [ "pkgconfigdir=$(dev)/lib/pkgconfig m4datadir=$(dev)/share/aclocal" ];
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
if [ -e $out/share/doc ]; then
|
|
|
|
mkdir -p $doc/share/doc
|
|
|
|
mv $out/share/doc/* $doc/share/doc
|
|
|
|
rmdir $out/share/doc
|
|
|
|
fi
|
|
|
|
''; # */
|
|
|
|
|
2009-02-09 16:51:03 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://flac.sourceforge.net;
|
2012-08-23 17:57:31 +00:00
|
|
|
description = "Library and tools for encoding and decoding the FLAC lossless audio file format";
|
2009-02-09 16:51:03 +00:00
|
|
|
};
|
|
|
|
}
|