ffmpeg: add libopus support

This commit is contained in:
Nikolay Amiantov 2016-03-26 17:01:22 +03:00
parent ef06c7db8f
commit e781a8257b

View File

@ -1,7 +1,7 @@
{ stdenv, fetchurl, pkgconfig, perl, texinfo, yasm
, alsaLib, bzip2, fontconfig, freetype, gnutls, libiconv, lame, libass, libogg
, libtheora, libva, libvdpau, libvorbis, libvpx, lzma, libpulseaudio, SDL, soxr
, x264, xvidcore, zlib
, x264, xvidcore, zlib, libopus
, openglSupport ? false, mesa ? null
# Build options
, runtimeCpuDetectBuild ? true # Detect CPU capabilities at runtime
@ -126,6 +126,7 @@ stdenv.mkDerivation rec {
"--enable-libx264"
"--enable-libxvid"
"--enable-zlib"
(ifMinVer "2.8" "--enable-libopus")
# Developer flags
(enableFeature debugDeveloper "debug")
(enableFeature optimizationsDeveloper "optimizations")
@ -139,7 +140,7 @@ stdenv.mkDerivation rec {
buildInputs = [
bzip2 fontconfig freetype gnutls libiconv lame libass libogg libtheora
libvdpau libvorbis lzma SDL soxr x264 xvidcore zlib
libvdpau libvorbis lzma SDL soxr x264 xvidcore zlib libopus
] ++ optional openglSupport mesa
++ optionals (!isDarwin) [ libvpx libpulseaudio ] # Need to be fixed on Darwin
++ optional (isLinux || isFreeBSD) libva