2004-12-11 00:16:23 +01:00
|
|
|
{ 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;
|
|
|
|
|
2005-10-29 22:50:11 +02:00
|
|
|
(stdenv.mkDerivation {
|
2007-08-14 14:10:11 +02:00
|
|
|
name = "xine-lib-1.1.7";
|
2004-12-11 00:16:23 +01:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-08-27 15:01:33 +02:00
|
|
|
url = mirror://sourceforge/xine/xine-lib-1.1.7.tar.bz2;
|
2007-08-14 14:10:11 +02:00
|
|
|
sha256 = "1aycmhvq95gbb5mqw5skgcxyn4nh5qkzq21yclnqk5yzflpwwvvg";
|
2004-12-11 00:16:23 +01:00
|
|
|
};
|
|
|
|
buildInputs = [
|
|
|
|
x11
|
|
|
|
(if xvideoSupport then libXv else null)
|
|
|
|
(if xineramaSupport then libXinerama else null)
|
|
|
|
(if alsaSupport then alsaLib else null)
|
|
|
|
];
|
2005-01-15 22:49:33 +01:00
|
|
|
libXv = if xvideoSupport then libXv else null;
|
2004-12-11 00:16:23 +01:00
|
|
|
libdvdcss = if encryptedDVDSupport then libdvdcss else null;
|
|
|
|
propagatedBuildInputs = [zlib];
|
2005-10-29 22:50:11 +02:00
|
|
|
}) // {inherit xineramaSupport libXinerama;}
|