ffmpeg: Add option to enable x11grab support.

This is especially useful if you want to do screencasts and other sorts of
things like that.
This commit is contained in:
aszlig 2012-07-18 13:35:16 +02:00
parent c6a2a1f885
commit 05831d3a66
1 changed files with 6 additions and 2 deletions

View File

@ -9,6 +9,7 @@
, vdpauSupport ? true, libvdpau ? null , vdpauSupport ? true, libvdpau ? null
, faacSupport ? false, faac ? null , faacSupport ? false, faac ? null
, dc1394Support ? false, libdc1394 ? null , dc1394Support ? false, libdc1394 ? null
, x11grabSupport ? false, libXext ? null, libXfixes ? null
}: }:
assert speexSupport -> speex != null; assert speexSupport -> speex != null;
@ -19,6 +20,7 @@ assert x264Support -> x264 != null;
assert xvidSupport -> xvidcore != null; assert xvidSupport -> xvidcore != null;
assert vdpauSupport -> libvdpau != null; assert vdpauSupport -> libvdpau != null;
assert faacSupport -> faac != null; assert faacSupport -> faac != null;
assert x11grabSupport -> libXext != null && libXfixes != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ffmpeg-0.11.1"; name = "ffmpeg-0.11.1";
@ -48,7 +50,8 @@ stdenv.mkDerivation rec {
++ stdenv.lib.optional xvidSupport "--enable-libxvid" ++ stdenv.lib.optional xvidSupport "--enable-libxvid"
++ stdenv.lib.optional vdpauSupport "--enable-vdpau" ++ stdenv.lib.optional vdpauSupport "--enable-vdpau"
++ stdenv.lib.optional faacSupport "--enable-libfaac --enable-nonfree" ++ stdenv.lib.optional faacSupport "--enable-libfaac --enable-nonfree"
++ stdenv.lib.optional dc1394Support "--enable-libdc1394"; ++ stdenv.lib.optional dc1394Support "--enable-libdc1394"
++ stdenv.lib.optional x11grabSupport "--enable-x11grab";
buildInputs = [ pkgconfig lame yasm zlib bzip2 ] buildInputs = [ pkgconfig lame yasm zlib bzip2 ]
++ stdenv.lib.optional mp3Support lame ++ stdenv.lib.optional mp3Support lame
@ -60,7 +63,8 @@ stdenv.mkDerivation rec {
++ stdenv.lib.optional xvidSupport xvidcore ++ stdenv.lib.optional xvidSupport xvidcore
++ stdenv.lib.optional vdpauSupport libvdpau ++ stdenv.lib.optional vdpauSupport libvdpau
++ stdenv.lib.optional faacSupport faac ++ stdenv.lib.optional faacSupport faac
++ stdenv.lib.optional dc1394Support libdc1394; ++ stdenv.lib.optional dc1394Support libdc1394
++ stdenv.lib.optionals x11grabSupport [ libXext libXfixes ];
enableParallelBuilding = true; enableParallelBuilding = true;