nixpkgs/pkgs/applications/video/MPlayer/default.nix
Eelco Dolstra d811b4c9d8 * Added libXv (XVideo).
* Zapping/VLC/MPlayer: use libXv.
* MPlayer: upgrade to 1.0pre4.
* Zapping: add libXext to the rpath.  I don't understand why this is
  necessary.  Zapping doesn't itself link against libXext, though some
  of its dependencies do.  (Maybe this is due to `--export-dynamic'?)

svn path=/nixpkgs/trunk/; revision=990
2004-05-01 18:17:56 +00:00

31 lines
811 B
Nix

{ alsaSupport ? false, xvSupport ? true
, stdenv, fetchurl, x11, libXv, freetype, zlib, alsa ? null}:
assert x11 != null && freetype != null;
assert alsaSupport -> alsa != null;
assert xvSupport -> libXv != null;
stdenv.mkDerivation {
name = "MPlayer-1.0pre4";
builder = ./builder.sh;
src = fetchurl {
url = http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre4.tar.bz2;
md5 = "83ebac0f05b192516a41fca2350ca01a";
};
fonts = fetchurl {
url = http://www2.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2;
md5 = "1ecd31d17b51f16332b1fcc7da36b312";
};
win32codecs = (import ./win32codecs) {
inherit stdenv fetchurl;
};
buildInputs = [
x11 libXv freetype zlib
(if alsaSupport then alsa else null)
(if xvSupport then libXv else null)
];
}