add jpeg support to mplayer and mplayer2

Closes #4288

authored by muflax and committed by Mateusz Kowalczyk 5861898f ff8f23ab

+6
+3
pkgs/applications/video/mplayer/default.nix
··· 21 21 , bs2bSupport ? false, libbs2b ? null 22 22 # For screenshots 23 23 , libpngSupport ? true, libpng ? null 24 + , libjpegSupport ? true, libjpeg ? null 24 25 , useUnfreeCodecs ? false 25 26 }: 26 27 ··· 46 47 assert pulseSupport -> pulseaudio != null; 47 48 assert bs2bSupport -> libbs2b != null; 48 49 assert libpngSupport -> libpng != null; 50 + assert libjpegSupport -> libjpeg != null; 49 51 50 52 let 51 53 ··· 121 123 ++ optional vdpauSupport libvdpau 122 124 ++ optional speexSupport speex 123 125 ++ optional libpngSupport libpng 126 + ++ optional libjpegSupport libjpeg 124 127 ++ optional bs2bSupport libbs2b 125 128 ; 126 129
+3
pkgs/applications/video/mplayer2/default.nix
··· 15 15 , bs2bSupport ? false, libbs2b ? null 16 16 # For screenshots 17 17 , libpngSupport ? true, libpng ? null 18 + , libjpegSupport ? true, libjpeg ? null 18 19 , useUnfreeCodecs ? false 19 20 }: 20 21 ··· 32 33 assert pulseSupport -> pulseaudio != null; 33 34 assert bs2bSupport -> libbs2b != null; 34 35 assert libpngSupport -> libpng != null; 36 + assert libjpegSupport -> libjpeg != null; 35 37 36 38 let 37 39 ··· 96 98 ++ optional speexSupport speex 97 99 ++ optional bs2bSupport libbs2b 98 100 ++ optional libpngSupport libpng 101 + ++ optional libjpegSupport libjpeg 99 102 ; 100 103 101 104 nativeBuildInputs = [ yasm python3 ];