@@ -1,7 +1,7 @@
11{ stdenv, fetchurl, pkgconfig, perl, texinfo, yasm
22, alsaLib, bzip2, fontconfig, freetype, gnutls, libiconv, lame, libass, libogg
33, libtheora, libva, libvdpau, libvorbis, libvpx, lzma, libpulseaudio, SDL, soxr
4−, x264, xvidcore, zlib
4+, x264, xvidcore, zlib, libopus
55, openglSupport ? false, mesa ? null
66# Build options
77, runtimeCpuDetectBuild ? true # Detect CPU capabilities at runtime
@@ -126,6 +126,7 @@ stdenv.mkDerivation rec {
126126 "--enable-libx264"
127127 "--enable-libxvid"
128128 "--enable-zlib"
129+ (ifMinVer "2.8" "--enable-libopus")
129130 # Developer flags
130131 (enableFeature debugDeveloper "debug")
131132 (enableFeature optimizationsDeveloper "optimizations")
@@ -139,7 +140,7 @@ stdenv.mkDerivation rec {
139140
140141 buildInputs = [
141142 bzip2 fontconfig freetype gnutls libiconv lame libass libogg libtheora
142− libvdpau libvorbis lzma SDL soxr x264 xvidcore zlib
143+ libvdpau libvorbis lzma SDL soxr x264 xvidcore zlib libopus
143144 ] ++ optional openglSupport mesa
144145 ++ optionals (!isDarwin) [ libvpx libpulseaudio ] # Need to be fixed on Darwin
145146 ++ optional (isLinux || isFreeBSD) libva