xbmc: add version 11
This commit is contained in:
parent
33ea74f9b6
commit
4b041ea0b7
89
pkgs/applications/video/xbmc/default.nix
Normal file
89
pkgs/applications/video/xbmc/default.nix
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
{ stdenv, lib, fetchurl, makeWrapper
|
||||||
|
, pkgconfig, cmake, gnumake, yasm, python
|
||||||
|
, boost
|
||||||
|
, gettext, pcre, yajl, fribidi
|
||||||
|
, openssl, gperf
|
||||||
|
, libX11, xproto, inputproto
|
||||||
|
, libXt, libXmu, libXext, xextproto
|
||||||
|
, libXinerama, libXrandr, randrproto
|
||||||
|
, libXtst, libXfixes, fixesproto
|
||||||
|
, SDL, SDL_image, SDL_mixer, alsaLib
|
||||||
|
, mesa, glew, fontconfig, freetype, ftgl
|
||||||
|
, libjpeg, jasper, libpng, libtiff
|
||||||
|
, ffmpeg, libmpeg2, libsamplerate, libmad
|
||||||
|
, libogg, libvorbis, flac
|
||||||
|
, lzo, libcdio, libmodplug, libass
|
||||||
|
, sqlite, mysql
|
||||||
|
, curl, bzip2, zip, unzip, glxinfo, xdpyinfo
|
||||||
|
, dbus_libs ? null, dbusSupport ? true
|
||||||
|
, udev, udevSupport ? true
|
||||||
|
, libusb ? null, usbSupport ? false
|
||||||
|
, samba ? null, sambaSupport ? true
|
||||||
|
# TODO: would be nice to have nfsSupport (needs libnfs library)
|
||||||
|
, libvdpau ? null, vdpauSupport ? true
|
||||||
|
}:
|
||||||
|
|
||||||
|
assert dbusSupport -> dbus_libs != null;
|
||||||
|
assert udevSupport -> udev != null;
|
||||||
|
assert usbSupport -> libusb != null && ! udevSupport; # libusb won't be used if udev is avaliable
|
||||||
|
assert sambaSupport -> samba != null;
|
||||||
|
assert vdpauSupport -> libvdpau != null && ffmpeg.vdpauSupport;
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "xbmc-11.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://mirrors.xbmc.org/releases/source/${name}.tar.gz";
|
||||||
|
sha256 = "1fe5d310c16138f26e2b13bc545604e95f48ace6c8636f23e77da402cd7b0b19";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
makeWrapper
|
||||||
|
pkgconfig cmake gnumake yasm python
|
||||||
|
boost
|
||||||
|
gettext pcre yajl fribidi
|
||||||
|
openssl gperf
|
||||||
|
libX11 xproto inputproto
|
||||||
|
libXt libXmu libXext xextproto
|
||||||
|
libXinerama libXrandr randrproto
|
||||||
|
libXtst libXfixes fixesproto
|
||||||
|
SDL SDL_image SDL_mixer alsaLib
|
||||||
|
mesa glew fontconfig freetype ftgl
|
||||||
|
libjpeg jasper libpng libtiff
|
||||||
|
ffmpeg libmpeg2 libsamplerate libmad
|
||||||
|
libogg libvorbis flac
|
||||||
|
lzo libcdio libmodplug libass
|
||||||
|
sqlite mysql
|
||||||
|
curl bzip2 zip unzip glxinfo xdpyinfo
|
||||||
|
]
|
||||||
|
++ lib.optional dbusSupport dbus_libs
|
||||||
|
++ lib.optional udevSupport udev
|
||||||
|
++ lib.optional usbSupport libusb
|
||||||
|
++ lib.optional sambaSupport samba
|
||||||
|
++ lib.optional vdpauSupport libvdpau;
|
||||||
|
|
||||||
|
dontUseCmakeConfigure = true;
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--enable-external-libraries"
|
||||||
|
"--disable-webserver"
|
||||||
|
]
|
||||||
|
++ lib.optional (! sambaSupport) "--disable-samba"
|
||||||
|
++ lib.optional vdpauSupport "--enable-vdpau";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
for p in $(ls $out/bin/) ; do
|
||||||
|
wrapProgram $out/bin/$p \
|
||||||
|
--prefix PATH ":" "${python}/bin" \
|
||||||
|
--prefix PATH ":" "${glxinfo}/bin" \
|
||||||
|
--prefix PATH ":" "${xdpyinfo}/bin" \
|
||||||
|
--prefix LD_LIBRARY_PATH ":" "${curl}/lib"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://xbmc.org/;
|
||||||
|
description = "XBMC Media Center";
|
||||||
|
license = "GPLv2";
|
||||||
|
};
|
||||||
|
}
|
@ -8016,6 +8016,8 @@ let
|
|||||||
|
|
||||||
xbindkeys = callPackage ../tools/X11/xbindkeys { };
|
xbindkeys = callPackage ../tools/X11/xbindkeys { };
|
||||||
|
|
||||||
|
xbmc = callPackage ../applications/video/xbmc { };
|
||||||
|
|
||||||
xcalib = callPackage ../tools/X11/xcalib { };
|
xcalib = callPackage ../tools/X11/xcalib { };
|
||||||
|
|
||||||
xchat = callPackage ../applications/networking/irc/xchat { };
|
xchat = callPackage ../applications/networking/irc/xchat { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user