2015-09-15 10:26:18 +01:00
|
|
|
{ stdenv, fetchurl, xz, bzip2, perl, xorg, libdvdnav, libbluray
|
2011-08-01 10:23:10 +01:00
|
|
|
, zlib, a52dec, libmad, faad2, ffmpeg, alsaLib
|
2014-11-18 01:33:10 +00:00
|
|
|
, pkgconfig, dbus, fribidi, freefont_ttf, libebml, libmatroska
|
2012-01-26 08:36:18 +00:00
|
|
|
, libvorbis, libtheora, speex, lua5, libgcrypt, libupnp
|
2015-05-27 20:42:15 +01:00
|
|
|
, libcaca, libpulseaudio, flac, schroedinger, libxml2, librsvg
|
2015-06-27 08:17:52 +01:00
|
|
|
, mpeg2dec, udev, gnutls, avahi, libcddb, libjack2, SDL, SDL_image
|
2011-02-09 21:11:30 +00:00
|
|
|
, libmtp, unzip, taglib, libkate, libtiger, libv4l, samba, liboggz
|
2013-04-07 19:03:30 +01:00
|
|
|
, libass, libva, libdvbpsi, libdc1394, libraw1394, libopus
|
2015-12-01 17:04:38 +00:00
|
|
|
, libvdpau, libsamplerate, live555, fluidsynth
|
2014-11-18 01:33:10 +00:00
|
|
|
, onlyLibVLC ? false
|
2015-09-27 16:01:11 +01:00
|
|
|
, qt4 ? null
|
|
|
|
, withQt5 ? false, qtbase ? null
|
2015-06-24 11:19:37 +01:00
|
|
|
, jackSupport ? false
|
2006-06-29 13:41:25 +01:00
|
|
|
}:
|
2003-12-03 21:58:16 +00:00
|
|
|
|
2014-11-18 01:33:10 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2015-09-27 16:01:11 +01:00
|
|
|
assert (withQt5 -> qtbase != null);
|
2015-02-28 22:23:58 +00:00
|
|
|
assert (!withQt5 -> qt4 != null);
|
2014-11-18 01:33:10 +00:00
|
|
|
|
2011-02-09 21:11:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-09-26 15:37:49 +01:00
|
|
|
name = "vlc-${version}";
|
2015-05-11 06:34:53 +01:00
|
|
|
version = "2.2.1";
|
2011-02-09 21:11:30 +00:00
|
|
|
|
2003-12-03 21:58:16 +00:00
|
|
|
src = fetchurl {
|
2014-12-19 14:22:31 +00:00
|
|
|
url = "http://download.videolan.org/vlc/${version}/${name}.tar.xz";
|
2015-05-11 06:34:53 +01:00
|
|
|
sha256 = "1jqzrzrpw6932lbkf863xk8cfmn4z2ngbxz7w8ggmh4f6xz9sgal";
|
2003-12-03 21:58:16 +00:00
|
|
|
};
|
|
|
|
|
2012-02-15 15:42:59 +00:00
|
|
|
buildInputs =
|
2012-02-22 20:29:33 +00:00
|
|
|
[ xz bzip2 perl zlib a52dec libmad faad2 ffmpeg alsaLib libdvdnav libdvdnav.libdvdread
|
2014-11-18 01:33:10 +00:00
|
|
|
libbluray dbus fribidi libvorbis libtheora speex lua5 libgcrypt
|
2015-05-27 20:42:15 +01:00
|
|
|
libupnp libcaca libpulseaudio flac schroedinger libxml2 librsvg mpeg2dec
|
2015-06-24 11:19:37 +01:00
|
|
|
udev gnutls avahi libcddb SDL SDL_image libmtp unzip taglib
|
2012-02-15 15:42:59 +00:00
|
|
|
libkate libtiger libv4l samba liboggz libass libdvbpsi libva
|
2015-09-15 10:26:18 +01:00
|
|
|
xorg.xlibsWrapper xorg.libXv xorg.libXvMC xorg.libXpm xorg.xcbutilkeysyms
|
2015-10-26 13:40:23 +00:00
|
|
|
libdc1394 libraw1394 libopus libebml libmatroska libvdpau libsamplerate live555
|
2015-12-01 17:04:38 +00:00
|
|
|
fluidsynth
|
2015-06-24 11:19:37 +01:00
|
|
|
]
|
2015-09-27 16:01:11 +01:00
|
|
|
++ [(if withQt5 then qtbase else qt4)]
|
2015-06-27 08:17:52 +01:00
|
|
|
++ optional jackSupport libjack2;
|
2006-06-30 00:48:19 +01:00
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2012-01-26 08:36:18 +00:00
|
|
|
|
2015-10-26 13:40:23 +00:00
|
|
|
LIVE555_PREFIX = live555;
|
|
|
|
|
2012-02-15 15:42:59 +00:00
|
|
|
configureFlags =
|
|
|
|
[ "--enable-alsa"
|
|
|
|
"--with-kde-solid=$out/share/apps/solid/actions"
|
2012-05-08 10:49:38 +01:00
|
|
|
"--enable-dc1394"
|
2014-03-23 16:24:12 +00:00
|
|
|
"--enable-ncurses"
|
2014-04-01 22:52:52 +01:00
|
|
|
"--enable-vdpau"
|
2015-05-15 04:26:16 +01:00
|
|
|
"--enable-dvdnav"
|
2015-09-17 23:57:52 +01:00
|
|
|
"--enable-samplerate"
|
2014-11-18 01:33:10 +00:00
|
|
|
]
|
|
|
|
++ optional onlyLibVLC "--disable-vlc";
|
2012-02-15 15:42:59 +00:00
|
|
|
|
2012-02-18 17:23:17 +00:00
|
|
|
preConfigure = ''sed -e "s@/bin/echo@echo@g" -i configure'';
|
|
|
|
|
2012-02-15 15:42:59 +00:00
|
|
|
enableParallelBuilding = true;
|
2009-03-10 22:45:27 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
2012-02-22 20:29:33 +00:00
|
|
|
substituteInPlace modules/text_renderer/freetype.c --replace \
|
2009-03-10 22:45:27 +00:00
|
|
|
/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf \
|
|
|
|
${freefont_ttf}/share/fonts/truetype/FreeSerifBold.ttf
|
|
|
|
'';
|
2006-10-12 11:53:16 +01:00
|
|
|
|
2013-12-08 18:19:11 +00:00
|
|
|
meta = with stdenv.lib; {
|
2006-10-12 11:53:16 +01:00
|
|
|
description = "Cross-platform media player and streaming server";
|
2007-12-31 17:55:13 +00:00
|
|
|
homepage = http://www.videolan.org/vlc/;
|
2013-12-08 18:19:11 +00:00
|
|
|
platforms = platforms.linux;
|
2014-02-16 15:30:30 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2006-10-12 11:53:16 +01:00
|
|
|
};
|
2003-12-03 21:58:16 +00:00
|
|
|
}
|