2012-01-18 20:53:01 +00:00
|
|
|
{ stdenv, fetchurl, cmake, automoc4, qt4 }:
|
2011-11-07 21:14:00 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
v = "4.5.1";
|
|
|
|
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 {
|
2011-11-07 21:14:00 +00:00
|
|
|
url = "mirror://kde/stable/phonon/${v}/src/${name}.tar.xz";
|
|
|
|
sha256 = "1j7lw8w7h2z415vhbp2jlgv3mqwvrspf8xnzb8l0gsfanqfg1001";
|
2011-07-17 15:10:41 +01:00
|
|
|
};
|
|
|
|
|
2011-11-07 21:14:00 +00:00
|
|
|
buildInputs = [ qt4 ];
|
|
|
|
|
2012-01-18 20:53:01 +00:00
|
|
|
buildNativeInputs = [ cmake automoc4 ];
|
2011-07-17 15:10:41 +01:00
|
|
|
|
2011-11-07 21:14:00 +00:00
|
|
|
cmakeFlags = "-DPHONON_MKSPECS_DIR=mkspecs";
|
2011-07-17 15:10:41 +01:00
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
substituteInPlace designer/CMakeLists.txt \
|
2011-11-07 21:14:00 +00:00
|
|
|
--replace '{QT_PLUGINS_DIR}' '{CMAKE_INSTALL_PREFIX}/lib/qt4/plugins'
|
2011-07-17 15:10:41 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://phonon.kde.org/;
|
|
|
|
description = "Multimedia API for Qt";
|
|
|
|
license = "LGPLv2";
|
2011-07-29 09:45:58 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-07-17 15:10:41 +01:00
|
|
|
};
|
|
|
|
}
|