Add libsndfile and fftw support to libsamplerate
svn path=/nixpkgs/trunk/; revision=22831
This commit is contained in:
parent
2835a98378
commit
65f0b956a2
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, pkgconfig, fftw, libsndfile }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libsamplerate-0.1.7";
|
name = "libsamplerate-0.1.7";
|
||||||
@ -8,17 +8,13 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1m1iwzpcny42kcqv5as2nyb0ggrb56wzckpximqpp2y74dipdf4q";
|
sha256 = "1m1iwzpcny42kcqv5as2nyb0ggrb56wzckpximqpp2y74dipdf4q";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pkgconfig ];
|
||||||
|
propagatedBuildInputs = [ fftw libsndfile ];
|
||||||
|
|
||||||
# maybe interesting configure flags:
|
# maybe interesting configure flags:
|
||||||
#--disable-fftw disable usage of FFTW
|
#--disable-fftw disable usage of FFTW
|
||||||
#--disable-cpu-clip disable tricky cpu specific clipper
|
#--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 = {
|
meta = {
|
||||||
description = "Sample Rate Converter for audio";
|
description = "Sample Rate Converter for audio";
|
||||||
homepage = http://www.mega-nerd.com/SRC/index.html;
|
homepage = http://www.mega-nerd.com/SRC/index.html;
|
||||||
|
@ -4684,7 +4684,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
libsamplerate = import ../development/libraries/libsamplerate {
|
libsamplerate = import ../development/libraries/libsamplerate {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv libsndfile fftw pkgconfig;
|
||||||
};
|
};
|
||||||
|
|
||||||
libspectre = import ../development/libraries/libspectre {
|
libspectre = import ../development/libraries/libspectre {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user