diff --git a/pkgs/applications/video/vlc/default.nix b/pkgs/applications/video/vlc/default.nix index 7e51cf94f1c..0e0b4ece07a 100644 --- a/pkgs/applications/video/vlc/default.nix +++ b/pkgs/applications/video/vlc/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, perl, xlibs, libdvdnav -, zlib, mpeg2dec, a52dec, libmad, ffmpeg, alsa -, pkgconfig, dbus, hal, fribidi, qt4 +, zlib, a52dec, libmad, ffmpeg, alsa +, pkgconfig, dbus, hal, fribidi, qt4, freefont_ttf }: stdenv.mkDerivation { @@ -17,7 +17,13 @@ stdenv.mkDerivation { pkgconfig dbus hal fribidi qt4 ]; - configureFlags = "--enable-alsa --disable-glx --disable-remoteosd"; + configureFlags = "--enable-alsa --disable-glx --disable-remoteosd --enable-faad"; + + preBuild = '' + substituteInPlace modules/misc/freetype.c --replace \ + /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf \ + ${freefont_ttf}/share/fonts/truetype/FreeSerifBold.ttf + ''; meta = { description = "Cross-platform media player and streaming server"; diff --git a/pkgs/development/libraries/faad2/default.nix b/pkgs/development/libraries/faad2/default.nix index 23566428529..733724f2a42 100644 --- a/pkgs/development/libraries/faad2/default.nix +++ b/pkgs/development/libraries/faad2/default.nix @@ -1,19 +1,18 @@ -args: -args.stdenv.mkDerivation { - name = "faad2-2.6.1"; +{stdenv, fetchurl}: - src = args.fetchurl { - url = http://downloads.sourceforge.net/faac/faad2-2.6.1.tar.gz; - sha256 = "0p1870qfpaadphdfphbcfalf6d25r30k3y1f7sa7ly4vq3hc5lla"; +stdenv.mkDerivation { + name = "faad2-2.7"; + + src = fetchurl { + url = mirror://sourceforge/faac/faad2-2.7.tar.bz2; + sha256 = "1db37ydb6mxhshbayvirm5vz6j361bjim4nkpwjyhmy4ddfinmhl"; }; - preConfigure = "./bootstrap"; - - buildInputs =(with args; [autoconf automake libtool]); + configureFlags = "--disable-static"; meta = { - description="AAC audio decoding library"; - homepage = http://www.audiocoding.com/faad2.html; - license = "GPLv2"; + description = "An open source MPEG-4 and MPEG-2 AAC decoder"; + homepage = http://www.audiocoding.com/faad2.html; + license = "GPLv2"; }; } diff --git a/pkgs/development/libraries/ffmpeg/default.nix b/pkgs/development/libraries/ffmpeg/default.nix index 375bf8c26f6..33f003095a6 100644 --- a/pkgs/development/libraries/ffmpeg/default.nix +++ b/pkgs/development/libraries/ffmpeg/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl}: +{stdenv, fetchurl, faad2}: stdenv.mkDerivation { name = "ffmpeg-0.5"; @@ -19,8 +19,11 @@ stdenv.mkDerivation { --enable-swscale --disable-ffserver --disable-ffplay + --enable-libfaad ''; + buildInputs = [faad2]; + meta = { homepage = http://www.ffmpeg.org/; description = "A complete, cross-platform solution to record, convert and stream audio and video"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f100a36f787..2582d326ffc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2861,7 +2861,7 @@ let }; faad2 = import ../development/libraries/faad2 { - inherit fetchurl stdenv autoconf automake libtool; + inherit fetchurl stdenv; }; fcgi = import ../development/libraries/fcgi { @@ -2869,7 +2869,7 @@ let }; ffmpeg = import ../development/libraries/ffmpeg { - inherit fetchurl stdenv; + inherit fetchurl stdenv faad2; }; fftw = import ../development/libraries/fftw { @@ -8750,8 +8750,8 @@ let virtualbox = virtualboxFun null;*/ vlc = import ../applications/video/vlc { - inherit fetchurl stdenv perl xlibs zlib mpeg2dec a52dec libmad - ffmpeg libdvdnav pkgconfig hal fribidi qt4; + inherit fetchurl stdenv perl xlibs zlib a52dec libmad + ffmpeg libdvdnav pkgconfig hal fribidi qt4 freefont_ttf; dbus = dbus.libs; alsa = alsaLib; };