forked from mirrors/nixpkgs
kodi: Enable RTMP support
Ports over similar XBMC changes from
d221fd91a3
.
This commit is contained in:
parent
a714ddcbd5
commit
78f2410865
|
@ -21,7 +21,7 @@
|
||||||
, samba ? null, sambaSupport ? true
|
, samba ? null, sambaSupport ? true
|
||||||
, libmicrohttpd, bash
|
, libmicrohttpd, bash
|
||||||
# TODO: would be nice to have nfsSupport (needs libnfs library)
|
# TODO: would be nice to have nfsSupport (needs libnfs library)
|
||||||
# TODO: librtmp
|
, rtmpdump ? null, rtmpSupport ? true
|
||||||
, libvdpau ? null, vdpauSupport ? true
|
, libvdpau ? null, vdpauSupport ? true
|
||||||
, libpulseaudio ? null, pulseSupport ? true
|
, libpulseaudio ? null, pulseSupport ? true
|
||||||
, libcec ? null, cecSupport ? true
|
, libcec ? null, cecSupport ? true
|
||||||
|
@ -34,6 +34,7 @@ assert sambaSupport -> samba != null;
|
||||||
assert vdpauSupport -> libvdpau != null;
|
assert vdpauSupport -> libvdpau != null;
|
||||||
assert pulseSupport -> libpulseaudio != null;
|
assert pulseSupport -> libpulseaudio != null;
|
||||||
assert cecSupport -> libcec != null;
|
assert cecSupport -> libcec != null;
|
||||||
|
assert rtmpSupport -> rtmpdump != null;
|
||||||
|
|
||||||
let
|
let
|
||||||
rel = "Helix";
|
rel = "Helix";
|
||||||
|
@ -75,7 +76,8 @@ in stdenv.mkDerivation rec {
|
||||||
++ lib.optional sambaSupport samba
|
++ lib.optional sambaSupport samba
|
||||||
++ lib.optional vdpauSupport libvdpau
|
++ lib.optional vdpauSupport libvdpau
|
||||||
++ lib.optional pulseSupport libpulseaudio
|
++ lib.optional pulseSupport libpulseaudio
|
||||||
++ lib.optional cecSupport libcec;
|
++ lib.optional cecSupport libcec
|
||||||
|
++ lib.optional rtmpSupport rtmpdump;
|
||||||
|
|
||||||
dontUseCmakeConfigure = true;
|
dontUseCmakeConfigure = true;
|
||||||
|
|
||||||
|
@ -96,7 +98,8 @@ in stdenv.mkDerivation rec {
|
||||||
]
|
]
|
||||||
++ lib.optional (!sambaSupport) "--disable-samba"
|
++ lib.optional (!sambaSupport) "--disable-samba"
|
||||||
++ lib.optional vdpauSupport "--enable-vdpau"
|
++ lib.optional vdpauSupport "--enable-vdpau"
|
||||||
++ lib.optional pulseSupport "--enable-pulse";
|
++ lib.optional pulseSupport "--enable-pulse"
|
||||||
|
++ lib.optional rtmpSupport "--enable-rtmp";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for p in $(ls $out/bin/) ; do
|
for p in $(ls $out/bin/) ; do
|
||||||
|
@ -108,7 +111,8 @@ in stdenv.mkDerivation rec {
|
||||||
--prefix LD_LIBRARY_PATH ":" "${systemd}/lib" \
|
--prefix LD_LIBRARY_PATH ":" "${systemd}/lib" \
|
||||||
--prefix LD_LIBRARY_PATH ":" "${libmad}/lib" \
|
--prefix LD_LIBRARY_PATH ":" "${libmad}/lib" \
|
||||||
--prefix LD_LIBRARY_PATH ":" "${libvdpau}/lib" \
|
--prefix LD_LIBRARY_PATH ":" "${libvdpau}/lib" \
|
||||||
--prefix LD_LIBRARY_PATH ":" "${libcec}/lib"
|
--prefix LD_LIBRARY_PATH ":" "${libcec}/lib" \
|
||||||
|
--prefix LD_LIBRARY_PATH ":" "${rtmpdump}/lib"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue