summary refs log tree commit diff
path: root/pkgs/development/libraries/xine-lib
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2008-01-28 19:42:09 +0000
committerYury G. Kudryashov <urkud.urkud@gmail.com>2008-01-28 19:42:09 +0000
commite075391df69b446c6c2e9b5c94d87a49cd113ac1 (patch)
treee2fa4aeebb52fad526f4d7e0f799577d24154e1b /pkgs/development/libraries/xine-lib
parent08d38f70971785c9d60ce4c7d4ac76d70c0e8158 (diff)
downloadnixpkgs-e075391df69b446c6c2e9b5c94d87a49cd113ac1.tar
nixpkgs-e075391df69b446c6c2e9b5c94d87a49cd113ac1.tar.gz
nixpkgs-e075391df69b446c6c2e9b5c94d87a49cd113ac1.tar.bz2
nixpkgs-e075391df69b446c6c2e9b5c94d87a49cd113ac1.tar.lz
nixpkgs-e075391df69b446c6c2e9b5c94d87a49cd113ac1.tar.xz
nixpkgs-e075391df69b446c6c2e9b5c94d87a49cd113ac1.tar.zst
nixpkgs-e075391df69b446c6c2e9b5c94d87a49cd113ac1.zip
xine-lib: 1.1.9.1, more features, all features made mandatory.
svn path=/nixpkgs/trunk/; revision=10338
Diffstat (limited to 'pkgs/development/libraries/xine-lib')
-rw-r--r--pkgs/development/libraries/xine-lib/default.nix37
1 files changed, 10 insertions, 27 deletions
diff --git a/pkgs/development/libraries/xine-lib/default.nix b/pkgs/development/libraries/xine-lib/default.nix
index 0af3732cbae..ba6880d525a 100644
--- a/pkgs/development/libraries/xine-lib/default.nix
+++ b/pkgs/development/libraries/xine-lib/default.nix
@@ -1,31 +1,14 @@
-{ xvideoSupport ? true
-, xineramaSupport ? true
-, encryptedDVDSupport ? true
-, alsaSupport ? true
-, stdenv, fetchurl, zlib, x11, pkgconfig
-, libXv ? null, libXinerama ? null, libdvdcss ? null, alsaLib ? null
-}:
+args: with args;
 
-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;
+(stdenv.mkDerivation rec {
+  name = "xine-lib-1.1.9.1";
   src = fetchurl {
-    url = mirror://sourceforge/xine/xine-lib-1.1.8.tar.bz2;
-    sha256 = "03iwhgsf9kj0x5b4fgv7lzc1vj3frk4afh2idgrqskvixjyi37vc";
+    url = "mirror://sourceforge/xine/${name}.tar.bz2";
+    sha256 = "1rz4k2a9pny2ksqb5diw1ci8ijihpcm0mi8qxp5p7nasgzgqcj82";
   };
-  buildInputs = [
-    x11 pkgconfig
-    (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;
+  buildInputs = [ x11 pkgconfig libXv libXinerama alsaLib mesa aalib SDL
+  libvorbis libtheora speex ];
+  configureFlags = "--with-xv-path=${libXv}/lib";
+  NIX_LDFLAGS = "-rpath ${libdvdcss}/lib -L${libdvdcss}/lib -ldvdcss";
   propagatedBuildInputs = [zlib];
-  patches = [ ./xine-lib-linux-headers-2.6.23.patch ];
-}) // {inherit xineramaSupport libXinerama;}
+}) // { xineramaSupport = true; inherit libXinerama; }