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:
parent
2835a98378
commit
65f0b956a2
|
@ -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;
|
||||
|
|
|
@ -4684,7 +4684,7 @@ let
|
|||
};
|
||||
|
||||
libsamplerate = import ../development/libraries/libsamplerate {
|
||||
inherit fetchurl stdenv;
|
||||
inherit fetchurl stdenv libsndfile fftw pkgconfig;
|
||||
};
|
||||
|
||||
libspectre = import ../development/libraries/libspectre {
|
||||
|
|
Loading…
Reference in a new issue