* Added Xine.

svn path=/nixpkgs/trunk/; revision=1850
This commit is contained in:
Eelco Dolstra
2004-12-10 23:16:23 +00:00
parent 9da3f23a89
commit 43b626337f
5 changed files with 60 additions and 0 deletions

View File

@@ -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

View File

@@ -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];
}