diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-03-16 12:45:27 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-03-16 12:45:27 +0000 |
commit | 3593b97d631d554cfec9a5eec8966fadb3192de8 (patch) | |
tree | c1a1f0bbb9270c83c803f501e14ea451e8f9fc74 /pkgs/applications/video | |
parent | d574d882ccade3b159b16e7ea2b8aeffd9d13bcd (diff) | |
parent | 808f12e36961b15c9662bb6e890f9045cdab43ce (diff) |
* Sync with the trunk.
svn path=/nixpkgs/branches/stdenv-updates/; revision=14557
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/MPlayer/default.nix | 55 | ||||
-rw-r--r-- | pkgs/applications/video/MPlayer/win32codecs/default.nix | 10 | ||||
-rw-r--r-- | pkgs/applications/video/gnash/default.nix | 4 | ||||
-rw-r--r-- | pkgs/applications/video/vlc/default.nix | 33 |
4 files changed, 47 insertions, 55 deletions
diff --git a/pkgs/applications/video/MPlayer/default.nix b/pkgs/applications/video/MPlayer/default.nix index 6eb8fb84e946..ed65e76414a2 100644 --- a/pkgs/applications/video/MPlayer/default.nix +++ b/pkgs/applications/video/MPlayer/default.nix @@ -4,8 +4,6 @@ , alsa ? null, libX11, libXv ? null, libtheora ? null, libcaca ? null , libXinerama ? null, libXrandr ? null, libdvdnav ? null , cdparanoia ? null, cddaSupport ? true -, extraBuildInputs ? [] -, extraConfigureFlags ? "" }: assert alsaSupport -> alsa != null; @@ -30,53 +28,42 @@ let in stdenv.mkDerivation { - name = "MPlayer-1.0rc2"; + name = "MPlayer-1.0rc2-r28450"; src = fetchurl { - url = http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2; - sha1 = "e9b496f3527c552004ec6d01d6b43f196b43ce2d"; + url = mirror://gentoo/distfiles/mplayer-1.0_rc2_p28450.tar.bz2; + sha256 = "0cbils58mq20nablywgjfpfx2pzjgnhin23sb8k1s5h2rxgvi3vf"; }; - buildInputs = [ - x11 libXv freetype zlib - (if alsaSupport then alsa else null) - (if xvSupport then libXv else null) - (if theoraSupport then libtheora else null) - (if cacaSupport then libcaca else null) - (if xineramaSupport then libXinerama else null) - (if randrSupport then libXrandr else null) - (if dvdnavSupport then libdvdnav else null) - (if cddaSupport then cdparanoia else null) - ] - ++ extraBuildInputs - ; + buildInputs = + [x11 libXv freetype zlib] + ++ stdenv.lib.optional alsaSupport alsa + ++ stdenv.lib.optional xvSupport libXv + ++ stdenv.lib.optional theoraSupport libtheora + ++ stdenv.lib.optional cacaSupport libcaca + ++ stdenv.lib.optional xineramaSupport libXinerama + ++ stdenv.lib.optional randrSupport libXrandr + ++ stdenv.lib.optionals dvdnavSupport [libdvdnav libdvdnav.libdvdread] + ++ stdenv.lib.optional cddaSupport cdparanoia; - configureFlags = " + configureFlags = '' ${if cacaSupport then "--enable-caca" else "--disable-caca"} - ${if dvdnavSupport then "--enable-dvdnav" else ""} + ${if dvdnavSupport then "--enable-dvdnav --enable-dvdread --disable-dvdread-internal" else ""} --win32codecsdir=${win32codecs} --realcodecsdir=${rp9codecs} --enable-runtime-cpudetection --enable-x11 --with-extraincdir=${libX11}/include --disable-xanim --disable-ivtv - " - + extraConfigureFlags - ; + ''; - NIX_LDFLAGS = "-lX11 -lXext " # !!! hack, necessary to get libX11/Xext in the RPATH - + (if dvdnavSupport then "-ldvdnav" else ""); + NIX_LDFLAGS = "-lX11 -lXext"; # Provide a reasonable standard font. Maybe we should symlink here. - postInstall = "cp ${freefont_ttf}/share/fonts/truetype/FreeSans.ttf $out/share/mplayer/subfont.ttf"; - - patches = [ - # These fix MPlayer's aspect ratio when run in a screen rotated with - # Xrandr. - # See: http://itdp.de/~itdp/html/mplayer-dev-eng/2005-08/msg00427.html - #./mplayer-aspect.patch - #./mplayer-pivot.patch - ]; + postInstall = '' + ensureDir $out/share/mplayer + cp ${freefont_ttf}/share/fonts/truetype/FreeSans.ttf $out/share/mplayer/subfont.ttf + ''; meta = { description = "A movie player that supports many video formats"; diff --git a/pkgs/applications/video/MPlayer/win32codecs/default.nix b/pkgs/applications/video/MPlayer/win32codecs/default.nix index 36de4cef857b..e4e73f6ede35 100644 --- a/pkgs/applications/video/MPlayer/win32codecs/default.nix +++ b/pkgs/applications/video/MPlayer/win32codecs/default.nix @@ -1,8 +1,16 @@ -{stdenv, fetchurl}: stdenv.mkDerivation { +{stdenv, fetchurl}: + +stdenv.mkDerivation { name = "MPlayer-codecs-essential-20071007"; + builder = ./builder.sh; + src = fetchurl { url = http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2; sha256 = "18vls12n12rjw0mzw4pkp9vpcfmd1c21rzha19d7zil4hn7fs2ic"; }; + + meta = { + license = "unfree"; + }; } diff --git a/pkgs/applications/video/gnash/default.nix b/pkgs/applications/video/gnash/default.nix index b0151ba4dcb6..c3a4944ec639 100644 --- a/pkgs/applications/video/gnash/default.nix +++ b/pkgs/applications/video/gnash/default.nix @@ -5,13 +5,13 @@ , glib, gtk, x11, ming, dejagnu, python , lib, makeWrapper }: -let version = "0.8.4"; in +let version = "0.8.5"; in stdenv.mkDerivation rec { name = "gnash-${version}"; src = fetchurl { url = "mirror://gnu/gnash/${version}/${name}.tar.bz2"; - sha256 = "094jky77ghdisq17z742cwn3g9ckm937p8h5jbji5rrdqbdlpzkg"; + sha256 = "1cqhnbp99rb0n4x2bsz8wwh7vvc2kclxc1wmrl5vaapd9qhp5whn"; }; builder = ./builder.sh; diff --git a/pkgs/applications/video/vlc/default.nix b/pkgs/applications/video/vlc/default.nix index b774cd28b62c..e1b2d5d7eeff 100644 --- a/pkgs/applications/video/vlc/default.nix +++ b/pkgs/applications/video/vlc/default.nix @@ -1,31 +1,28 @@ -{ xvSupport ? true -, stdenv, fetchurl, perl, x11, libXv, wxGTK -, libdvdread, libdvdnav, libdvdcss -, zlib, mpeg2dec, a52dec, libmad, ffmpeg, alsa +{ stdenv, fetchurl, perl, xlibs, libdvdnav +, zlib, a52dec, libmad, faad2, ffmpeg, alsa +, pkgconfig, dbus, hal, fribidi, qt4, freefont_ttf }: -assert libdvdread.libdvdcss == libdvdcss; -assert xvSupport -> libXv != null; - stdenv.mkDerivation { - name = "vlc-0.8.6h"; + name = "vlc-0.9.8a"; src = fetchurl { - url = http://download.videolan.org/pub/videolan/vlc/0.8.6h/vlc-0.8.6h.tar.bz2; - sha256 = "08bj6ndxj0f7jdsif43535qyavpy13wni93z7c2790i2d748gvah"; + url = http://download.videolan.org/pub/videolan/vlc/0.9.8a/vlc-0.9.8a.tar.bz2; + sha256 = "0kw2d7yh8rzb61j1q2cvnjinj1wxc9a7smxl7ckw1vwh6y02jz0r"; }; buildInputs = [ - perl x11 wxGTK - zlib mpeg2dec a52dec libmad ffmpeg alsa - libdvdread # <- for "simple" DVD playback - libdvdnav libdvdcss # <- for DVD playback with menus - ] ++ stdenv.lib.optional xvSupport libXv; + perl xlibs.xlibs xlibs.libXv zlib a52dec libmad faad2 ffmpeg + alsa libdvdnav libdvdnav.libdvdread pkgconfig dbus hal fribidi qt4 + ]; - # Ensure that libdvdcss will be found without having to set LD_LIBRARY_PATH. - NIX_LDFLAGS = "-ldvdcss"; + configureFlags = "--enable-alsa --disable-glx --disable-remoteosd --enable-faad"; - configureFlags = "--enable-alsa"; + 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"; |