2014-11-18 01:25:36 +00:00
|
|
|
{ stdenv, fetchurl, cmake, automoc4, pulseaudio
|
|
|
|
, qt4 ? null, qt5 ? null, withQt5 ? false }:
|
|
|
|
|
|
|
|
assert (withQt5 -> qt5 != null); assert (!withQt5 -> qt4 != null);
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2011-11-07 21:14:00 +00:00
|
|
|
|
|
|
|
let
|
2014-11-18 01:25:36 +00:00
|
|
|
v = "4.8.1";
|
2011-11-07 21:14:00 +00:00
|
|
|
in
|
2011-07-17 15:10:41 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-11-07 21:14:00 +00:00
|
|
|
name = "phonon-${v}";
|
2011-07-17 15:10:41 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-18 01:25:36 +00:00
|
|
|
url = "mirror://kde/stable/phonon/${v}/phonon-${v}.tar.xz";
|
|
|
|
sha256 = "1l97h1jj3gvl1chx1qbipizfvjgqc05wrhdcflc76c2krlk03jmn";
|
2011-07-17 15:10:41 +01:00
|
|
|
};
|
|
|
|
|
2014-11-18 01:25:36 +00:00
|
|
|
buildInputs = [ (if withQt5 then qt5 else qt4) pulseaudio ];
|
2011-11-07 21:14:00 +00:00
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ cmake automoc4 ];
|
2011-07-17 15:10:41 +01:00
|
|
|
|
2014-11-18 01:25:36 +00:00
|
|
|
cmakeFlags = optional withQt5 "-DPHONON_BUILD_PHONON4QT5=ON";
|
|
|
|
|
2011-07-17 15:10:41 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://phonon.kde.org/;
|
|
|
|
description = "Multimedia API for Qt";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl2;
|
2011-07-29 09:45:58 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-11-18 01:25:36 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ttuegel ];
|
|
|
|
};
|
2011-07-17 15:10:41 +01:00
|
|
|
}
|