@@ -1,7 +1,7 @@
1{ stdenv, fetchurl, pkgconfig, perl, texinfo, yasm
1{ stdenv, fetchurl, pkgconfig, perl, texinfo, yasm
2−, alsaLib, bzip2, fontconfig, freetype, libiconv, lame, libass, libogg, libtheora
2+, alsaLib, bzip2, fontconfig, freetype, gnutls, libiconv, lame, libass, libogg
3−, libva, libvdpau, libvorbis, libvpx, lzma, pulseaudio, SDL, soxr, x264
3+, libtheora, libva, libvdpau, libvorbis, libvpx, lzma, pulseaudio, SDL, soxr
4−, xvidcore, zlib
4+, x264, xvidcore, zlib
5, openglSupport ? false, mesa ? null
5, openglSupport ? false, mesa ? null
6# Build options
6# Build options
7, runtimeCpuDetectBuild ? true # Detect CPU capabilities at runtime
7, runtimeCpuDetectBuild ? true # Detect CPU capabilities at runtime
@@ -85,6 +85,7 @@ stdenv.mkDerivation rec {
86 "--disable-pthreads --disable-w32threads")
86 "--disable-pthreads --disable-w32threads")
87 (ifMinVer "0.9" "--disable-os2threads") # We don't support OS/2
87 (ifMinVer "0.9" "--disable-os2threads") # We don't support OS/2
88 (ifMinVer "2.4" "--enable-pixelutils")
89 (ifMinVer "2.4" "--enable-pixelutils")
89 # Executables
90 # Executables
90 "--enable-ffmpeg"
91 "--enable-ffmpeg"
@@ -105,6 +106,7 @@ stdenv.mkDerivation rec {
105 (ifMinVer "0.6" "--disable-doc")
106 (ifMinVer "0.6" "--disable-doc")
106 # External Libraries
107 # External Libraries
107 "--enable-bzlib"
108 "--enable-bzlib"
108 (ifMinVer "1.0" "--enable-fontconfig")
110 (ifMinVer "1.0" "--enable-fontconfig")
109 (ifMinVer "0.7" "--enable-libfreetype")
111 (ifMinVer "0.7" "--enable-libfreetype")
110 "--enable-libmp3lame"
112 "--enable-libmp3lame"
@@ -134,8 +136,8 @@ stdenv.mkDerivation rec {
134 nativeBuildInputs = [ perl pkgconfig texinfo yasm ];
136 nativeBuildInputs = [ perl pkgconfig texinfo yasm ];
136 buildInputs = [
138 buildInputs = [
137− bzip2 fontconfig freetype libiconv lame libass libogg libtheora libvdpau
139+ bzip2 fontconfig freetype gnutls libiconv lame libass libogg libtheora
138− libvorbis lzma SDL soxr x264 xvidcore zlib
140+ libvdpau libvorbis lzma SDL soxr x264 xvidcore zlib
139 ] ++ optional openglSupport mesa
141 ] ++ optional openglSupport mesa
140 ++ optionals (!isDarwin) [ libvpx pulseaudio ] # Need to be fixed on Darwin
142 ++ optionals (!isDarwin) [ libvpx pulseaudio ] # Need to be fixed on Darwin
141 ++ optional (isLinux || isFreeBSD) libva
143 ++ optional (isLinux || isFreeBSD) libva