2012-02-22 21:29:33 +01:00
|
|
|
{ stdenv, fetchurl, xz, bzip2, perl, xlibs, libdvdnav, libbluray
|
2011-08-01 11:23:10 +02:00
|
|
|
, zlib, a52dec, libmad, faad2, ffmpeg, alsaLib
|
2012-01-26 09:36:18 +01:00
|
|
|
, pkgconfig, dbus, fribidi, qt4, freefont_ttf
|
|
|
|
, libvorbis, libtheora, speex, lua5, libgcrypt, libupnp
|
2011-02-09 22:11:30 +01: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-07 00:09:19 +01:00
|
|
|
, libass, libva, libdvbpsi
|
2006-06-29 14:41:25 +02:00
|
|
|
}:
|
2003-12-03 22:58:16 +01:00
|
|
|
|
2011-02-09 22:11:30 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vlc-${version}";
|
2012-02-22 21:29:33 +01:00
|
|
|
version = "2.0.0";
|
2011-02-09 22:11:30 +01:00
|
|
|
|
2003-12-03 22:58:16 +01:00
|
|
|
src = fetchurl {
|
2012-02-22 21:29:33 +01:00
|
|
|
url = "http://download.videolan.org/pub/videolan/vlc/${version}/${name}.tar.xz";
|
|
|
|
sha256 = "455fc04b5f7ce3d7294ed71a9dd172ff4eb97875cfc30b554ef4ce55ec6f5106";
|
2003-12-03 22:58:16 +01:00
|
|
|
};
|
|
|
|
|
2012-02-15 16:42:59 +01:00
|
|
|
buildInputs =
|
2012-02-22 21:29:33 +01:00
|
|
|
[ xz bzip2 perl zlib a52dec libmad faad2 ffmpeg alsaLib libdvdnav libdvdnav.libdvdread
|
|
|
|
libbluray dbus fribidi qt4 libvorbis libtheora speex lua5 libgcrypt
|
2012-02-15 16:42:59 +01:00
|
|
|
libupnp libcaca pulseaudio flac schroedinger libxml2 librsvg mpeg2dec
|
|
|
|
udev gnutls avahi libcddb jackaudio SDL SDL_image libmtp unzip taglib
|
|
|
|
libkate libtiger libv4l samba liboggz libass libdvbpsi libva
|
|
|
|
xlibs.xlibs xlibs.libXv xlibs.libXvMC xlibs.libXpm xlibs.xcbutilkeysyms
|
|
|
|
];
|
2006-06-30 01:48:19 +02:00
|
|
|
|
2012-01-26 09:36:18 +01:00
|
|
|
buildNativeInputs = [ pkgconfig ];
|
|
|
|
|
2012-02-15 16:42:59 +01:00
|
|
|
configureFlags =
|
|
|
|
[ "--enable-alsa"
|
|
|
|
"--with-kde-solid=$out/share/apps/solid/actions"
|
|
|
|
];
|
|
|
|
|
2012-02-18 18:23:17 +01:00
|
|
|
preConfigure = ''sed -e "s@/bin/echo@echo@g" -i configure'';
|
|
|
|
|
2012-02-15 16:42:59 +01:00
|
|
|
enableParallelBuilding = true;
|
2009-03-10 23:45:27 +01:00
|
|
|
|
|
|
|
preBuild = ''
|
2012-02-22 21:29:33 +01:00
|
|
|
substituteInPlace modules/text_renderer/freetype.c --replace \
|
2009-03-10 23:45:27 +01:00
|
|
|
/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf \
|
|
|
|
${freefont_ttf}/share/fonts/truetype/FreeSerifBold.ttf
|
|
|
|
'';
|
2006-10-12 12:53:16 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Cross-platform media player and streaming server";
|
2007-12-31 18:55:13 +01:00
|
|
|
homepage = http://www.videolan.org/vlc/;
|
2006-10-12 12:53:16 +02:00
|
|
|
};
|
2003-12-03 22:58:16 +01:00
|
|
|
}
|