From 9b6e112573c0990910d8fb624d2343e1d88e55d6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 29 Oct 2005 19:07:27 +0000 Subject: [PATCH] * Enable Xinerama support in MPlayer. svn path=/nixpkgs/trunk/; revision=4163 --- pkgs/applications/video/MPlayer/default.nix | 9 ++++++--- pkgs/system/all-packages-generic.nix | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/video/MPlayer/default.nix b/pkgs/applications/video/MPlayer/default.nix index e04952e0254..57627f628f4 100644 --- a/pkgs/applications/video/MPlayer/default.nix +++ b/pkgs/applications/video/MPlayer/default.nix @@ -1,20 +1,22 @@ { alsaSupport ? false, xvSupport ? true, theoraSupport ? false, cacaSupport ? false +, xineramaSupport ? false , stdenv, fetchurl, x11, freetype, zlib -, alsa ? null, libXv ? null, libtheora ? null, libcaca ? null +, alsa ? null, libXv ? null, libtheora ? null, libcaca ? null, libXinerama ? null }: assert alsaSupport -> alsa != null; assert xvSupport -> libXv != null; assert theoraSupport -> libtheora != null; assert cacaSupport -> libcaca != null; +assert xineramaSupport -> libXinerama != null; stdenv.mkDerivation { name = "MPlayer-1.0pre7"; builder = ./builder.sh; src = fetchurl { - url = http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre7.tar.bz2; - md5 = "5fadd6957d3aab989cd760ff38fb8fdf"; + url = http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre7try2.tar.bz2; + md5 = "aaca4fd327176c1afb463f0f047ef6f4"; }; fonts = fetchurl { url = http://nix.cs.uu.nl/dist/tarballs/font-arial-iso-8859-1.tar.bz2; @@ -31,6 +33,7 @@ stdenv.mkDerivation { (if xvSupport then libXv else null) (if theoraSupport then libtheora else null) (if cacaSupport then libcaca else null) + (if xineramaSupport then libXinerama else null) ]; configureFlags = if cacaSupport then "--enable-caca" else "--disable-caca"; diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index e174933981e..8f7aee777fe 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -1577,11 +1577,12 @@ rec { MPlayer = (import ../applications/video/MPlayer) { inherit fetchurl stdenv freetype x11 zlib libtheora libcaca; - inherit (xlibs) libXv; + inherit (xlibs) libXv libXinerama; alsaSupport = true; alsa = alsaLib; theoraSupport = true; cacaSupport = true; + xineramaSupport = true; }; MPlayerPlugin = (import ../applications/networking/browsers/mozilla-plugins/mplayerplug-in) {