nixpkgs-suyu/pkgs/development/libraries/ffmpeg/default.nix
Lluís Batlle i Rossell a88f348d5b Make mplayer build on the loongson2f
svn path=/nixpkgs/branches/stdenv-updates/; revision=23578
2010-09-01 08:36:09 +00:00

40 lines
1.2 KiB
Nix

{stdenv, fetchurl, faad2, libtheora, speex, libvorbis, x264, pkgconfig, xvidcore, lame, yasm
, vpxSupport ? false, libvpx ? null}:
stdenv.mkDerivation {
name = "ffmpeg-0.6";
src = fetchurl {
url = http://www.ffmpeg.org/releases/ffmpeg-0.6.tar.bz2;
sha256 = "08419kg2i8j7x4mb3vm6a73fdszivj6lzh7lypxby30gfnkblc37";
};
# `--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"
] ++
stdenv.lib.optional vpxSupport "--enable-libvpx";
buildInputs = [ faad2 libtheora speex libvorbis x264 pkgconfig xvidcore lame yasm ]
++ stdenv.lib.optional vpxSupport libvpx;
meta = {
homepage = http://www.ffmpeg.org/;
description = "A complete, cross-platform solution to record, convert and stream audio and video";
};
}