1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00

Add libsndfile and fftw support to libsamplerate

svn path=/nixpkgs/trunk/; revision=22831
This commit is contained in:
Yury G. Kudryashov 2010-07-30 20:17:37 +00:00
parent 2835a98378
commit 65f0b956a2
2 changed files with 5 additions and 9 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, pkgconfig, fftw, libsndfile }:
stdenv.mkDerivation rec {
name = "libsamplerate-0.1.7";
@ -8,17 +8,13 @@ stdenv.mkDerivation rec {
sha256 = "1m1iwzpcny42kcqv5as2nyb0ggrb56wzckpximqpp2y74dipdf4q";
};
buildInputs = [ pkgconfig ];
propagatedBuildInputs = [ fftw libsndfile ];
# maybe interesting configure flags:
#--disable-fftw disable usage of FFTW
#--disable-cpu-clip disable tricky cpu specific clipper
configurePhase =
''
export LIBSAMPLERATE_CFLAGS="-I $libsamplerate/include"
export LIBSAMPLERATE_LIBS="-L $libsamplerate/libs"
./configure --prefix=$out
'';
meta = {
description = "Sample Rate Converter for audio";
homepage = http://www.mega-nerd.com/SRC/index.html;

View file

@ -4684,7 +4684,7 @@ let
};
libsamplerate = import ../development/libraries/libsamplerate {
inherit fetchurl stdenv;
inherit fetchurl stdenv libsndfile fftw pkgconfig;
};
libspectre = import ../development/libraries/libspectre {