2009-03-10 21:03:51 +00:00
|
|
|
{ stdenv, fetchurl, perl, xlibs, libdvdnav
|
2011-08-01 09:23:10 +00:00
|
|
|
, zlib, a52dec, libmad, faad2, ffmpeg, alsaLib
|
2009-03-10 22:45:27 +00:00
|
|
|
, pkgconfig, dbus, hal, fribidi, qt4, freefont_ttf
|
2010-07-14 15:02:34 +00:00
|
|
|
, libvorbis, libtheora, speex, lua, libgcrypt, libupnp
|
2011-02-09 21:11:30 +00:00
|
|
|
, libcaca, pulseaudio, flac, schroedinger, libxml2, librsvg
|
|
|
|
, mpeg2dec, udev, gnutls, avahi, libcddb, jackaudio, SDL, SDL_image
|
|
|
|
, libmtp, unzip, taglib, libkate, libtiger, libv4l, samba, liboggz
|
2011-12-06 23:09:19 +00:00
|
|
|
, libass, libva, libdvbpsi
|
2006-06-29 12:41:25 +00:00
|
|
|
}:
|
2003-12-03 21:58:16 +00:00
|
|
|
|
2011-02-09 21:11:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vlc-${version}";
|
2011-08-01 09:23:10 +00:00
|
|
|
version = "1.1.11";
|
2011-02-09 21:11:30 +00:00
|
|
|
|
|
|
|
patchPhase = ''sed -e "s@/bin/echo@echo@g" -i configure'';
|
2003-12-03 21:58:16 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-02-09 21:11:30 +00:00
|
|
|
url = "mirror://sourceforge/vlc/${name}.tar.bz2";
|
2011-08-01 09:23:10 +00:00
|
|
|
sha256 = "1jz1yklvh5apy2ygqwnyq61mhg09h0fn32hdygxfsaxq12z609b8";
|
2003-12-03 21:58:16 +00:00
|
|
|
};
|
|
|
|
|
2004-04-02 15:36:14 +00:00
|
|
|
buildInputs = [
|
2011-08-01 09:23:10 +00:00
|
|
|
perl zlib a52dec libmad faad2 ffmpeg alsaLib libdvdnav libdvdnav.libdvdread
|
2011-02-09 21:11:30 +00:00
|
|
|
pkgconfig dbus hal fribidi qt4 libvorbis libtheora speex lua libgcrypt
|
|
|
|
libupnp libcaca pulseaudio flac schroedinger libxml2 librsvg mpeg2dec
|
|
|
|
udev gnutls avahi libcddb jackaudio SDL SDL_image libmtp unzip taglib
|
2011-12-06 23:09:19 +00:00
|
|
|
libkate libtiger libv4l samba liboggz libass libdvbpsi
|
2011-02-09 21:11:30 +00:00
|
|
|
]
|
2011-04-16 11:31:36 +00:00
|
|
|
++ (with xlibs; [ xlibs.xlibs libXv libXvMC libXpm xcbutil libva ]);
|
2006-06-29 23:48:19 +00:00
|
|
|
|
2010-06-25 18:34:35 +00:00
|
|
|
configureFlags = [ "--enable-alsa"
|
|
|
|
"--disable-glx"
|
|
|
|
"--disable-remoteosd"
|
|
|
|
"--disable-dbus"
|
|
|
|
"--disable-dbus-control"
|
2011-02-09 21:11:30 +00:00
|
|
|
"--with-kde-solid=$out/share/apps/solid/actions"
|
2010-06-25 18:34:35 +00:00
|
|
|
];
|
2009-03-10 22:45:27 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace modules/misc/freetype.c --replace \
|
|
|
|
/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf \
|
|
|
|
${freefont_ttf}/share/fonts/truetype/FreeSerifBold.ttf
|
|
|
|
'';
|
2006-10-12 10:53:16 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Cross-platform media player and streaming server";
|
2007-12-31 17:55:13 +00:00
|
|
|
homepage = http://www.videolan.org/vlc/;
|
2006-10-12 10:53:16 +00:00
|
|
|
};
|
2003-12-03 21:58:16 +00:00
|
|
|
}
|