summary refs log tree commit diff
path: root/pkgs/development/libraries/xine-lib
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2004-12-10 23:16:23 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2004-12-10 23:16:23 +0000
commit43b626337fb155bfb92a9df4f33e9da956777e12 (patch)
treec0bf4c7cc7f7885506dc5b3f59828214d5bdc5b1 /pkgs/development/libraries/xine-lib
parent9da3f23a891909e2a02563582728cbff4d31dc84 (diff)
downloadnixlib-43b626337fb155bfb92a9df4f33e9da956777e12.tar
nixlib-43b626337fb155bfb92a9df4f33e9da956777e12.tar.gz
nixlib-43b626337fb155bfb92a9df4f33e9da956777e12.tar.bz2
nixlib-43b626337fb155bfb92a9df4f33e9da956777e12.tar.lz
nixlib-43b626337fb155bfb92a9df4f33e9da956777e12.tar.xz
nixlib-43b626337fb155bfb92a9df4f33e9da956777e12.tar.zst
nixlib-43b626337fb155bfb92a9df4f33e9da956777e12.zip
* Added Xine.
svn path=/nixpkgs/trunk/; revision=1850
Diffstat (limited to 'pkgs/development/libraries/xine-lib')
-rw-r--r--pkgs/development/libraries/xine-lib/builder.sh9
-rw-r--r--pkgs/development/libraries/xine-lib/default.nix29
2 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/libraries/xine-lib/builder.sh b/pkgs/development/libraries/xine-lib/builder.sh
new file mode 100644
index 000000000000..8b499bbefcf1
--- /dev/null
+++ b/pkgs/development/libraries/xine-lib/builder.sh
@@ -0,0 +1,9 @@
+. $stdenv/setup
+
+if test -n "$libdvdcss"; then
+    # Ugly hack to force libdvdcss to be present (so the user doesn't
+    # have to set LD_LIBRARY_PATH).
+    export NIX_LDFLAGS="-rpath $libdvdcss/lib -L$libdvdcss/lib -ldvdcss $NIX_LDFLAGS"
+fi
+
+genericBuild
\ No newline at end of file
diff --git a/pkgs/development/libraries/xine-lib/default.nix b/pkgs/development/libraries/xine-lib/default.nix
new file mode 100644
index 000000000000..8539bff54bd1
--- /dev/null
+++ b/pkgs/development/libraries/xine-lib/default.nix
@@ -0,0 +1,29 @@
+{ 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-pre-rc7";
+  builder = ./builder.sh;
+  src = fetchurl {
+    url = http://heanet.dl.sourceforge.net/sourceforge/xine/xine-lib-1-rc7.tar.gz;
+    md5 = "b3eaa0dd44fdbb8e3915399895c8414a";
+  };
+  buildInputs = [
+    x11
+    (if xvideoSupport then libXv else null)
+    (if xineramaSupport then libXinerama else null)
+    (if alsaSupport then alsaLib else null)
+  ];
+  libdvdcss = if encryptedDVDSupport then libdvdcss else null;
+  propagatedBuildInputs = [zlib];
+}