2004-05-01 20:17:56 +02:00
|
|
|
{ alsaSupport ? false, xvSupport ? true
|
|
|
|
, stdenv, fetchurl, x11, libXv, freetype, zlib, alsa ? null}:
|
2003-11-11 16:01:07 +01:00
|
|
|
|
2004-03-29 12:25:25 +02:00
|
|
|
assert x11 != null && freetype != null;
|
|
|
|
assert alsaSupport -> alsa != null;
|
2004-05-01 20:17:56 +02:00
|
|
|
assert xvSupport -> libXv != null;
|
2003-11-11 16:01:07 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2004-05-01 20:17:56 +02:00
|
|
|
name = "MPlayer-1.0pre4";
|
2003-11-11 16:01:07 +01:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2004-05-01 20:17:56 +02:00
|
|
|
url = http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre4.tar.bz2;
|
|
|
|
md5 = "83ebac0f05b192516a41fca2350ca01a";
|
2003-11-11 16:01:07 +01:00
|
|
|
};
|
|
|
|
fonts = fetchurl {
|
|
|
|
url = http://www2.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2;
|
|
|
|
md5 = "1ecd31d17b51f16332b1fcc7da36b312";
|
|
|
|
};
|
|
|
|
|
|
|
|
win32codecs = (import ./win32codecs) {
|
2004-03-30 17:15:19 +02:00
|
|
|
inherit stdenv fetchurl;
|
2003-11-11 16:01:07 +01:00
|
|
|
};
|
2004-04-01 20:06:09 +02:00
|
|
|
|
2004-05-01 20:17:56 +02:00
|
|
|
buildInputs = [
|
|
|
|
x11 libXv freetype zlib
|
|
|
|
(if alsaSupport then alsa else null)
|
|
|
|
(if xvSupport then libXv else null)
|
|
|
|
];
|
2003-11-11 16:01:07 +01:00
|
|
|
}
|