2014-11-18 02:33:10 +01:00
|
|
|
{ stdenv, fetchurl, xz, vlc, automoc4, cmake, pkgconfig, phonon
|
|
|
|
, qt4 ? null, qt5 ? null, withQt5 ? false }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
assert (withQt5 -> qt5 != null); assert (!withQt5 -> qt4 != null);
|
2010-08-04 12:04:40 +02:00
|
|
|
|
|
|
|
let
|
2012-02-23 08:57:47 +01:00
|
|
|
pname = "phonon-backend-vlc";
|
2014-11-18 02:33:10 +01:00
|
|
|
v = "0.8.1";
|
|
|
|
# Force same Qt version in phonon and VLC
|
|
|
|
vlc_ = vlc.override { inherit qt4 qt5 withQt5; };
|
|
|
|
phonon_ = phonon.override { inherit qt4 qt5 withQt5; };
|
2010-08-04 12:04:40 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2012-02-23 08:57:47 +01:00
|
|
|
name = "${pname}-${v}";
|
2010-08-04 12:04:40 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-18 02:33:10 +01:00
|
|
|
url = "mirror://kde/stable/phonon/${pname}/${v}/${pname}-${v}.tar.xz";
|
|
|
|
sha256 = "1fyfh7qyb6rld350v2fgz452ld96d3z5ifchr323q0vc3hb9k222";
|
2010-08-04 12:04:40 +02:00
|
|
|
};
|
|
|
|
|
2014-01-19 17:56:46 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig automoc4 xz ];
|
2012-02-23 08:57:47 +01:00
|
|
|
|
2014-11-18 02:33:10 +01:00
|
|
|
buildInputs = [ vlc_ phonon_ (if withQt5 then qt5 else qt4)];
|
|
|
|
|
|
|
|
cmakeFlags = optional withQt5 "-DPHONON_BUILD_PHONON4QT5=ON";
|
2010-08-04 12:04:40 +02:00
|
|
|
|
|
|
|
meta = {
|
2014-11-18 02:33:10 +01:00
|
|
|
homepage = http://phonon.kde.org/;
|
2010-08-04 12:04:40 +02:00
|
|
|
description = "VideoLAN backend for Phonon multimedia framework";
|
2014-11-18 02:33:10 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ttuegel urkud ];
|
|
|
|
license = licenses.lgpl21Plus;
|
2010-08-04 12:04:40 +02:00
|
|
|
};
|
|
|
|
}
|