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