2005-02-16 16:18:43 +00:00
|
|
|
{ alsaSupport ? false, xvSupport ? true, theoraSupport ? false
|
|
|
|
, stdenv, fetchurl, x11, freetype, zlib
|
|
|
|
, alsa ? null, libXv ? null, libtheora ? null}:
|
2003-11-11 15:01:07 +00:00
|
|
|
|
2004-03-29 11:25:25 +01:00
|
|
|
assert alsaSupport -> alsa != null;
|
2004-05-01 19:17:56 +01:00
|
|
|
assert xvSupport -> libXv != null;
|
2005-02-16 16:18:43 +00:00
|
|
|
assert theoraSupport -> libtheora != null;
|
2003-11-11 15:01:07 +00:00
|
|
|
|
2004-03-29 18:23:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2005-01-31 19:39:42 +00:00
|
|
|
name = "MPlayer-1.0pre6";
|
2003-11-11 15:01:07 +00:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2005-02-15 14:44:19 +00:00
|
|
|
url = http://catamaran.labs.cs.uu.nl/dist/tarballs/MPlayer-1.0pre6a.tar.bz2;
|
2005-01-31 19:39:42 +00:00
|
|
|
md5 = "a812d945b884c2e2fa7f90c57cd76bff";
|
2003-11-11 15:01:07 +00:00
|
|
|
};
|
|
|
|
fonts = fetchurl {
|
2005-02-15 14:44:19 +00:00
|
|
|
url = http://catamaran.labs.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 16:15:19 +01:00
|
|
|
inherit stdenv fetchurl;
|
2003-11-11 15:01:07 +00:00
|
|
|
};
|
2004-04-01 19:06:09 +01:00
|
|
|
|
2004-05-01 19:17:56 +01: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)
|
2004-05-01 19:17:56 +01:00
|
|
|
];
|
2003-11-11 15:01:07 +00:00
|
|
|
}
|