@ -21,6 +21,7 @@
, jackaudioSupport ? false , libjack2 ? null
, pulseSupport ? config . pulseaudio or false , libpulseaudio ? null
, bs2bSupport ? false , libbs2b ? null
, v4lSupport ? false , libv4l ? null
# For screenshots
, libpngSupport ? true , libpng ? null
, libjpegSupport ? true , libjpeg ? null
@ -53,6 +54,7 @@ assert pulseSupport -> libpulseaudio != null;
assert bs2bSupport -> libbs2b != null ;
assert libpngSupport -> libpng != null ;
assert libjpegSupport -> libjpeg != null ;
assert v4lSupport -> libv4l != null ;
let
@ -132,6 +134,7 @@ stdenv.mkDerivation rec {
++ optional libpngSupport libpng
++ optional libjpegSupport libjpeg
++ optional bs2bSupport libbs2b
++ optional v4lSupport libv4l
++ ( with darwin . apple_sdk . frameworks ; optionals stdenv . isDarwin [ Cocoa OpenGL ] )
;
@ -156,6 +159,7 @@ stdenv.mkDerivation rec {
( if x264Support then " - - e n a b l e - x 2 6 4 - - d i s a b l e - x 2 6 4 - l a v c " else " - - d i s a b l e - x 2 6 4 - - e n a b l e - x 2 6 4 - l a v c " )
( if jackaudioSupport then " " else " - - d i s a b l e - j a c k " )
( if pulseSupport then " - - e n a b l e - p u l s e " else " - - d i s a b l e - p u l s e " )
( if v4lSupport then " - - e n a b l e - v 4 l 2 - - e n a b l e - t v - v 4 l 2 " else " - - d i s a b l e - v 4 l 2 - - d i s a b l e - t v - v 4 l 2 " )
" - - d i s a b l e - x a n i m "
" - - d i s a b l e - i v t v "
" - - d i s a b l e - x v i d - - d i s a b l e - x v i d - l a v c "