phonon: remove qt4

Qt4 is no longer supported.

https://phabricator.kde.org/D22688

Co-authored-by: worldofpeace <worldofpeace@protonmail.ch>
This commit is contained in:
Jan Tojnar 2019-11-21 21:26:38 +01:00
parent c3c30bc59e
commit 62a09e7029
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
3 changed files with 22 additions and 27 deletions

View File

@ -1,22 +1,17 @@
{ stdenv, lib, fetchurl, cmake, libGLU_combined, pkgconfig, libpulseaudio
, qt4 ? null, extra-cmake-modules ? null, qtbase ? null, qttools ? null
, withQt5 ? false
, extra-cmake-modules, qtbase, qttools
, debug ? false }:
with lib;
let
v = "4.11.1";
soname = if withQt5 then "phonon4qt5" else "phonon";
soname = "phonon4qt5";
buildsystemdir = "share/cmake/${soname}";
in
assert withQt5 -> qtbase != null;
assert withQt5 -> qttools != null;
stdenv.mkDerivation {
name = "phonon-${if withQt5 then "qt5" else "qt4"}-${v}";
stdenv.mkDerivation rec {
pname = "phonon";
version = "4.11.1";
meta = {
homepage = https://phonon.kde.org/;
@ -27,25 +22,30 @@ stdenv.mkDerivation {
};
src = fetchurl {
url = "mirror://kde/stable/phonon/${v}/phonon-${v}.tar.xz";
url = "mirror://kde/stable/phonon/${version}/phonon-${version}.tar.xz";
sha256 = "0bfy8iqmjhlg3ma3iqd3kxjc2zkzpjgashbpf5x17y0dc2i1whxl";
};
buildInputs =
[ libGLU_combined libpulseaudio ]
++ (if withQt5 then [ qtbase qttools ] else [ qt4 ]);
buildInputs = [
libGLU_combined
libpulseaudio
qtbase
qttools
];
nativeBuildInputs =
[ cmake pkgconfig ]
++ optional withQt5 extra-cmake-modules;
nativeBuildInputs = [
cmake
pkgconfig
extra-cmake-modules
];
outputs = [ "out" "dev" ];
NIX_CFLAGS_COMPILE = "-fPIC";
cmakeFlags =
[ "-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}" ]
++ optional withQt5 "-DPHONON_BUILD_PHONON4QT5=ON";
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
];
preConfigure = ''
cmakeFlags+=" -DPHONON_QT_MKSPECS_INSTALL_DIR=''${!outputDev}/mkspecs"
@ -63,10 +63,8 @@ stdenv.mkDerivation {
sed -i cmake/FindPhononInternal.cmake \
-e "/set(INCLUDE_INSTALL_DIR/ c set(INCLUDE_INSTALL_DIR \"''${!outputDev}/include\")"
${optionalString withQt5 ''
sed -i cmake/FindPhononInternal.cmake \
-e "/set(PLUGIN_INSTALL_DIR/ c set(PLUGIN_INSTALL_DIR \"$qtPluginPrefix/..\")"
''}
sed -i CMakeLists.txt \
-e "/set(BUILDSYSTEM_INSTALL_DIR/ c set(BUILDSYSTEM_INSTALL_DIR \"''${!outputDev}/${buildsystemdir}\")"

View File

@ -311,6 +311,7 @@ mapAliases ({
pulseaudioLight = pulseaudio; # added 2018-04-25
phonon-backend-gstreamer = throw "Please use libsForQt5.phonon-backend-gstreamer, as Qt4 support in this package has been removed."; # added 2019-11-22
phonon-backend-vlc = throw "Please use libsForQt5.phonon-backend-vlc, as Qt4 support in this package has been removed."; # added 2019-11-22
phonon = throw "Please use libsForQt5.phonon, as Qt4 support in this package has been removed."; # added 2019-11-22
qca-qt5 = libsForQt5.qca-qt5; # added 2015-12-19
quake3game = ioquake3; # added 2016-01-14
qwt6 = libsForQt5.qwt; # added 2015-12-19

View File

@ -13412,8 +13412,6 @@ in
pdf2xml = callPackage ../development/libraries/pdf2xml {} ;
phonon = callPackage ../development/libraries/phonon {};
inherit (callPackage ../development/libraries/physfs { })
physfs_2
physfs;
@ -13698,9 +13696,7 @@ in
openbr = callPackage ../development/libraries/openbr { };
phonon = callPackage ../development/libraries/phonon {
withQt5 = true;
};
phonon = callPackage ../development/libraries/phonon { };
phonon-backend-gstreamer = callPackage ../development/libraries/phonon/backends/gstreamer.nix { };