diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-09-01 08:36:09 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-09-01 08:36:09 +0000 |
commit | a88f348d5b8414dcc9bdd694403cb2c94aa0b7e0 (patch) | |
tree | 04a7a666b808a9a92300f8bb58499760cede93ac /pkgs/development/libraries/ffmpeg/default.nix | |
parent | 50b3cc05c7dc8ce44be2e37c24b663ef41dd805e (diff) |
Make mplayer build on the loongson2f
svn path=/nixpkgs/branches/stdenv-updates/; revision=23578
Diffstat (limited to 'pkgs/development/libraries/ffmpeg/default.nix')
-rw-r--r-- | pkgs/development/libraries/ffmpeg/default.nix | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/pkgs/development/libraries/ffmpeg/default.nix b/pkgs/development/libraries/ffmpeg/default.nix index 01479564dd7ff..d9f9d0af01deb 100644 --- a/pkgs/development/libraries/ffmpeg/default.nix +++ b/pkgs/development/libraries/ffmpeg/default.nix @@ -1,5 +1,5 @@ {stdenv, fetchurl, faad2, libtheora, speex, libvorbis, x264, pkgconfig, xvidcore, lame, yasm -, libvpx}: +, vpxSupport ? false, libvpx ? null}: stdenv.mkDerivation { name = "ffmpeg-0.6"; @@ -12,25 +12,26 @@ stdenv.mkDerivation { # `--enable-gpl' (as well as the `postproc' and `swscale') mean that # the resulting library is GPL'ed, so it can only be used in GPL'ed # applications. - configureFlags = '' - --enable-gpl - --enable-postproc - --enable-swscale - --disable-ffserver - --disable-ffplay - --enable-libfaad - --enable-shared - --enable-libtheora - --enable-libvorbis - --enable-libspeex - --enable-libx264 - --enable-libxvid - --enable-libmp3lame - --enable-runtime-cpudetect - --enable-libvpx - ''; + configureFlags = [ + "--enable-gpl" + "--enable-postproc" + "--enable-swscale" + "--disable-ffserver" + "--disable-ffplay" + "--enable-libfaad" + "--enable-shared" + "--enable-libtheora" + "--enable-libvorbis" + "--enable-libspeex" + "--enable-libx264" + "--enable-libxvid" + "--enable-libmp3lame" + "--enable-runtime-cpudetect" + ] ++ + stdenv.lib.optional vpxSupport "--enable-libvpx"; - buildInputs = [faad2 libtheora speex libvorbis x264 pkgconfig xvidcore lame yasm libvpx]; + buildInputs = [ faad2 libtheora speex libvorbis x264 pkgconfig xvidcore lame yasm ] + ++ stdenv.lib.optional vpxSupport libvpx; meta = { homepage = http://www.ffmpeg.org/; |