2005-08-24 17:02:30 +02:00
|
|
|
{ alsaSupport ? false, xvSupport ? true, theoraSupport ? false, cacaSupport ? false
|
2006-04-18 20:46:36 +02:00
|
|
|
, xineramaSupport ? false, randrSupport ? false
|
2005-02-16 17:18:43 +01:00
|
|
|
, stdenv, fetchurl, x11, freetype, zlib
|
2006-04-18 20:46:36 +02:00
|
|
|
, alsa ? null, libXv ? null, libtheora ? null, libcaca ? null
|
|
|
|
, libXinerama ? null, libXrandr ? null
|
2005-08-24 17:02:30 +02:00
|
|
|
}:
|
2003-11-11 16:01:07 +01:00
|
|
|
|
2004-03-29 12:25:25 +02:00
|
|
|
assert alsaSupport -> alsa != null;
|
2004-05-01 20:17:56 +02:00
|
|
|
assert xvSupport -> libXv != null;
|
2005-02-16 17:18:43 +01:00
|
|
|
assert theoraSupport -> libtheora != null;
|
2005-08-24 17:02:30 +02:00
|
|
|
assert cacaSupport -> libcaca != null;
|
2005-10-29 21:07:27 +02:00
|
|
|
assert xineramaSupport -> libXinerama != null;
|
2006-04-18 20:46:36 +02:00
|
|
|
assert randrSupport -> libXrandr != null;
|
2003-11-11 16:01:07 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2006-06-23 14:00:06 +02:00
|
|
|
name = "MPlayer-1.0pre8";
|
2003-11-11 16:01:07 +01:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2006-10-12 15:50:54 +02:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/MPlayer-1.0pre8.tar.bz2;
|
2006-06-23 14:00:06 +02:00
|
|
|
md5 = "f82bb2bc51b6cd5e5dd96f88f6f98582";
|
2003-11-11 16:01:07 +01:00
|
|
|
};
|
|
|
|
fonts = fetchurl {
|
2005-08-22 10:39:27 +02:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/font-arial-iso-8859-1.tar.bz2;
|
2003-11-11 16:01:07 +01:00
|
|
|
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)
|
2005-02-16 17:18:43 +01:00
|
|
|
(if theoraSupport then libtheora else null)
|
2005-08-24 17:02:30 +02:00
|
|
|
(if cacaSupport then libcaca else null)
|
2005-10-29 21:07:27 +02:00
|
|
|
(if xineramaSupport then libXinerama else null)
|
2006-04-18 20:46:36 +02:00
|
|
|
(if randrSupport then libXrandr else null)
|
2004-05-01 20:17:56 +02:00
|
|
|
];
|
2005-08-24 17:02:30 +02:00
|
|
|
|
|
|
|
configureFlags = if cacaSupport then "--enable-caca" else "--disable-caca";
|
2006-07-10 19:14:16 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
patches = [./mplayer-aspect.patch ./mplayer-pivot.patch];
|
2006-10-11 18:45:55 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A movie player that supports many video formats";
|
|
|
|
};
|
2003-11-11 16:01:07 +01:00
|
|
|
}
|