mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
speex: add mingw support
Part of a larger effort to provide mingw support for qtmultimedia
This commit is contained in:
parent
4072f686d7
commit
93e1c2d084
@ -1,4 +1,12 @@
|
|||||||
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, fftw, speexdsp }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, autoreconfHook
|
||||||
|
, pkg-config
|
||||||
|
, fftw
|
||||||
|
, speexdsp
|
||||||
|
, withFft ? !stdenv.hostPlatform.isMinGW
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "speex";
|
pname = "speex";
|
||||||
@ -16,12 +24,13 @@ stdenv.mkDerivation rec {
|
|||||||
outputs = [ "out" "dev" "doc" ];
|
outputs = [ "out" "dev" "doc" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||||
buildInputs = [ fftw speexdsp ];
|
buildInputs = lib.optionals withFft [ fftw ]
|
||||||
|
++ [ speexdsp ];
|
||||||
|
|
||||||
# TODO: Remove this will help with immediate backward compatibility
|
# TODO: Remove this will help with immediate backward compatibility
|
||||||
propagatedBuildInputs = [ speexdsp ];
|
propagatedBuildInputs = [ speexdsp ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = lib.optionals withFft [
|
||||||
"--with-fft=gpl-fftw3"
|
"--with-fft=gpl-fftw3"
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -29,6 +38,6 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = "https://www.speex.org/";
|
homepage = "https://www.speex.org/";
|
||||||
description = "An Open Source/Free Software patent-free audio compression format designed for speech";
|
description = "An Open Source/Free Software patent-free audio compression format designed for speech";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix ++ platforms.windows;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user