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