* ffmpeg: build with faad2 support. However, vlc still won't play

mp4a audio.
* faad2: latest version.
* vlc: fix the hard-coded OSD font path name.  Dunno why they don't
  use fontconfig.

svn path=/nixpkgs/trunk/; revision=14501
This commit is contained in:
Eelco Dolstra 2009-03-10 22:45:27 +00:00
parent 44ac9e249c
commit 1485c905f7
4 changed files with 28 additions and 20 deletions

View File

@ -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";

View File

@ -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";
};
}

View File

@ -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";

View File

@ -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;
};