2014-11-18 02:30:46 +01:00
|
|
|
{ stdenv, fetchurl, cmake, automoc4, pkgconfig, gst_all_1
|
|
|
|
, phonon, qt4 ? null, qt5 ? null, withQt5 ? false }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
assert (withQt5 -> qt5 != null); assert (!withQt5 -> qt4 != null);
|
2011-07-18 14:37:50 +02:00
|
|
|
|
2012-02-23 08:57:47 +01:00
|
|
|
let
|
2014-11-18 02:30:46 +01:00
|
|
|
version = "4.8.0";
|
2012-02-23 08:57:47 +01:00
|
|
|
pname = "phonon-backend-gstreamer";
|
2014-11-18 02:30:46 +01:00
|
|
|
qt = if withQt5 then qt5 else qt4;
|
|
|
|
# Force same Qt version in phonon
|
|
|
|
phonon_ = phonon.override { inherit qt4 qt5 withQt5; };
|
2012-02-23 08:57:47 +01:00
|
|
|
in
|
2011-07-18 14:37:50 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-02-23 08:57:47 +01:00
|
|
|
name = "${pname}-${version}";
|
2011-07-18 14:37:50 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-18 02:30:46 +01:00
|
|
|
url = "mirror://kde/stable/phonon/${pname}/${version}/${name}.tar.xz";
|
|
|
|
sha256 = "0zjqf1gpj6h9hj27225vihg5gj0fjgvh4n9nkrbij7kf57bcn6gq";
|
2011-07-18 14:37:50 +02:00
|
|
|
};
|
|
|
|
|
2014-11-18 02:30:46 +01:00
|
|
|
buildInputs = with gst_all_1; [ phonon_ qt gstreamer gst-plugins-base ];
|
2012-02-23 08:57:47 +01:00
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ cmake automoc4 pkgconfig ];
|
2011-07-18 14:37:50 +02:00
|
|
|
|
2014-11-18 02:30:46 +01:00
|
|
|
cmakeFlags =
|
|
|
|
[ "-DCMAKE_INSTALL_LIBDIR=lib"
|
|
|
|
] ++ optional withQt5 "-DPHONON_BUILD_PHONON4QT5=ON";
|
2013-12-31 09:11:12 +01:00
|
|
|
|
2011-07-18 14:37:50 +02:00
|
|
|
meta = {
|
|
|
|
homepage = http://phonon.kde.org/;
|
|
|
|
description = "GStreamer backend for Phonon";
|
2014-11-18 02:30:46 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
};
|
2011-07-18 14:37:50 +02:00
|
|
|
}
|