3
0
Fork 0
forked from mirrors/nixpkgs

Add libpng dependency to MPlayer - screenshots now work

This commit is contained in:
Michael Raskin 2012-11-04 21:58:13 +04:00
parent 6e779cbe0a
commit 6c48c3c230

View file

@ -16,6 +16,8 @@
, x264Support ? false, x264 ? null , x264Support ? false, x264 ? null
, jackaudioSupport ? false, jackaudio ? null , jackaudioSupport ? false, jackaudio ? null
, pulseSupport ? false, pulseaudio ? null , pulseSupport ? false, pulseaudio ? null
# For screenshots
, libpngSupport ? true, libpng ? null
}: }:
assert x11Support -> (libX11 != null && libXext != null && mesa != null); assert x11Support -> (libX11 != null && libXext != null && mesa != null);
@ -35,7 +37,7 @@ assert theoraSupport -> libtheora != null;
assert x264Support -> x264 != null; assert x264Support -> x264 != null;
assert jackaudioSupport -> jackaudio != null; assert jackaudioSupport -> jackaudio != null;
assert pulseSupport -> pulseaudio != null; assert pulseSupport -> pulseaudio != null;
assert libpngSupport -> libpng != null;
let let
@ -109,7 +111,9 @@ stdenv.mkDerivation rec {
++ optional screenSaverSupport libXScrnSaver ++ optional screenSaverSupport libXScrnSaver
++ optional lameSupport lame ++ optional lameSupport lame
++ optional vdpauSupport libvdpau ++ optional vdpauSupport libvdpau
++ optional speexSupport speex; ++ optional speexSupport speex
++ optional libpngSupport libpng
;
buildNativeInputs = [ yasm ]; buildNativeInputs = [ yasm ];