2005-08-24 15:02:30 +00:00
|
|
|
{ alsaSupport ? false, xvSupport ? true, theoraSupport ? false, cacaSupport ? false
|
2005-02-16 16:18:43 +00:00
|
|
|
, stdenv, fetchurl, x11, freetype, zlib
|
2005-08-24 15:02:30 +00:00
|
|
|
, alsa ? null, libXv ? null, libtheora ? null, libcaca ? null
|
|
|
|
}:
|
2003-11-11 15:01:07 +00:00
|
|
|
|
2004-03-29 10:25:25 +00:00
|
|
|
assert alsaSupport -> alsa != null;
|
2004-05-01 18:17:56 +00:00
|
|
|
assert xvSupport -> libXv != null;
|
2005-02-16 16:18:43 +00:00
|
|
|
assert theoraSupport -> libtheora != null;
|
2005-08-24 15:02:30 +00:00
|
|
|
assert cacaSupport -> libcaca != null;
|
2003-11-11 15:01:07 +00:00
|
|
|
|
2004-03-29 17:23:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2005-05-02 20:04:07 +00:00
|
|
|
name = "MPlayer-1.0pre7";
|
2003-11-11 15:01:07 +00:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2005-05-02 20:04:07 +00:00
|
|
|
url = http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre7.tar.bz2;
|
|
|
|
md5 = "5fadd6957d3aab989cd760ff38fb8fdf";
|
2003-11-11 15:01:07 +00:00
|
|
|
};
|
|
|
|
fonts = fetchurl {
|
2005-08-22 08:39:27 +00:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/font-arial-iso-8859-1.tar.bz2;
|
2003-11-11 15:01:07 +00:00
|
|
|
md5 = "1ecd31d17b51f16332b1fcc7da36b312";
|
|
|
|
};
|
|
|
|
|
|
|
|
win32codecs = (import ./win32codecs) {
|
2004-03-30 15:15:19 +00:00
|
|
|
inherit stdenv fetchurl;
|
2003-11-11 15:01:07 +00:00
|
|
|
};
|
2004-04-01 18:06:09 +00:00
|
|
|
|
2004-05-01 18:17:56 +00:00
|
|
|
buildInputs = [
|
|
|
|
x11 libXv freetype zlib
|
|
|
|
(if alsaSupport then alsa else null)
|
|
|
|
(if xvSupport then libXv else null)
|
2005-02-16 16:18:43 +00:00
|
|
|
(if theoraSupport then libtheora else null)
|
2005-08-24 15:02:30 +00:00
|
|
|
(if cacaSupport then libcaca else null)
|
2004-05-01 18:17:56 +00:00
|
|
|
];
|
2005-08-24 15:02:30 +00:00
|
|
|
|
|
|
|
configureFlags = if cacaSupport then "--enable-caca" else "--disable-caca";
|
2003-11-11 15:01:07 +00:00
|
|
|
}
|