ffmpeg: Add optional Jack audio support.

The author of this commit is @cillianderoiste because he made the patch and I'm
just committing it.

This change adds support for Jack audio "while we're at it", see discussion at
pull request #54.
This commit is contained in:
Cillian de Róiste 2012-07-19 04:37:33 +02:00 committed by aszlig
parent d9f08cf6f2
commit fe42f8add9

View File

@ -1,4 +1,5 @@
{ stdenv, fetchurl, pkgconfig, yasm, zlib, bzip2, alsaLib
, jackSupport ? false, jackaudio ? null
, mp3Support ? true, lame ? null
, speexSupport ? true, speex ? null
, theoraSupport ? true, libtheora ? null
@ -12,6 +13,7 @@
, x11grabSupport ? false, libXext ? null, libXfixes ? null
}:
assert jackSupport -> jackaudio != null;
assert speexSupport -> speex != null;
assert theoraSupport -> libtheora != null;
assert vorbisSupport -> libvorbis != null;
@ -54,6 +56,7 @@ stdenv.mkDerivation rec {
++ stdenv.lib.optional x11grabSupport "--enable-x11grab";
buildInputs = [ pkgconfig lame yasm zlib bzip2 alsaLib ]
++ stdenv.lib.optional jackSupport jackaudio
++ stdenv.lib.optional mp3Support lame
++ stdenv.lib.optional speexSupport speex
++ stdenv.lib.optional theoraSupport libtheora