summary refs log tree commit diff
path: root/pkgs/development/libraries/xine-lib/default.nix
blob: 51592f61b1a623c8027b1f86f90b75ae75b6af27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ xvideoSupport ? true
, xineramaSupport ? true
, encryptedDVDSupport ? true
, alsaSupport ? true
, stdenv, fetchurl, zlib, x11
, libXv ? null, libXinerama ? null, libdvdcss ? null, alsaLib ? null
}:

assert xvideoSupport -> libXv != null;
assert xineramaSupport -> libXinerama != null;
assert encryptedDVDSupport -> libdvdcss != null;
assert alsaSupport -> alsaLib != null;

(stdenv.mkDerivation {
  name = "xine-lib-1.1.8";
  builder = ./builder.sh;
  src = fetchurl {
    url = mirror://sourceforge/xine/xine-lib-1.1.8.tar.bz2;
    sha256 = "03iwhgsf9kj0x5b4fgv7lzc1vj3frk4afh2idgrqskvixjyi37vc";
  };
  buildInputs = [
    x11
    (if xvideoSupport then libXv else null)
    (if xineramaSupport then libXinerama else null)
    (if alsaSupport then alsaLib else null)
  ];
  libXv = if xvideoSupport then libXv else null;
  libdvdcss = if encryptedDVDSupport then libdvdcss else null;
  propagatedBuildInputs = [zlib];
  patches = [ ./xine-lib-linux-headers-2.6.23.patch ];
}) // {inherit xineramaSupport libXinerama;}