cce11c4f1f
* Added a patch to MPlayer to fix the aspect ratio on screens rotated with Xrandr. * Disable toolbus for now because it requires a non-existant package (tcltk). svn path=/nixpkgs/trunk/; revision=5171
48 lines
1.5 KiB
Nix
48 lines
1.5 KiB
Nix
{ alsaSupport ? false, xvSupport ? true, theoraSupport ? false, cacaSupport ? false
|
|
, xineramaSupport ? false, randrSupport ? false
|
|
, stdenv, fetchurl, x11, freetype, zlib
|
|
, alsa ? null, libXv ? null, libtheora ? null, libcaca ? null
|
|
, libXinerama ? null, libXrandr ? null
|
|
}:
|
|
|
|
assert alsaSupport -> alsa != null;
|
|
assert xvSupport -> libXv != null;
|
|
assert theoraSupport -> libtheora != null;
|
|
assert cacaSupport -> libcaca != null;
|
|
assert xineramaSupport -> libXinerama != null;
|
|
assert randrSupport -> libXrandr != null;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "MPlayer-1.0pre7";
|
|
|
|
builder = ./builder.sh;
|
|
src = fetchurl {
|
|
url = http://nix.cs.uu.nl/dist/tarballs/MPlayer-1.0pre7try2.tar.bz2;
|
|
md5 = "aaca4fd327176c1afb463f0f047ef6f4";
|
|
};
|
|
fonts = fetchurl {
|
|
url = http://nix.cs.uu.nl/dist/tarballs/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)
|
|
(if theoraSupport then libtheora else null)
|
|
(if cacaSupport then libcaca else null)
|
|
(if xineramaSupport then libXinerama else null)
|
|
(if randrSupport then libXrandr else null)
|
|
];
|
|
|
|
configureFlags = if cacaSupport then "--enable-caca" else "--disable-caca";
|
|
|
|
# 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];
|
|
}
|