mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
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:
parent
c3c30bc59e
commit
62a09e7029
|
@ -1,22 +1,17 @@
|
||||||
{ stdenv, lib, fetchurl, cmake, libGLU_combined, pkgconfig, libpulseaudio
|
{ stdenv, lib, fetchurl, cmake, libGLU_combined, pkgconfig, libpulseaudio
|
||||||
, qt4 ? null, extra-cmake-modules ? null, qtbase ? null, qttools ? null
|
, extra-cmake-modules, qtbase, qttools
|
||||||
, withQt5 ? false
|
|
||||||
, debug ? false }:
|
, debug ? false }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
v = "4.11.1";
|
soname = "phonon4qt5";
|
||||||
|
|
||||||
soname = if withQt5 then "phonon4qt5" else "phonon";
|
|
||||||
buildsystemdir = "share/cmake/${soname}";
|
buildsystemdir = "share/cmake/${soname}";
|
||||||
in
|
in
|
||||||
|
|
||||||
assert withQt5 -> qtbase != null;
|
stdenv.mkDerivation rec {
|
||||||
assert withQt5 -> qttools != null;
|
pname = "phonon";
|
||||||
|
version = "4.11.1";
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "phonon-${if withQt5 then "qt5" else "qt4"}-${v}";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://phonon.kde.org/;
|
homepage = https://phonon.kde.org/;
|
||||||
|
@ -27,25 +22,30 @@ stdenv.mkDerivation {
|
||||||
};
|
};
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://kde/stable/phonon/${v}/phonon-${v}.tar.xz";
|
url = "mirror://kde/stable/phonon/${version}/phonon-${version}.tar.xz";
|
||||||
sha256 = "0bfy8iqmjhlg3ma3iqd3kxjc2zkzpjgashbpf5x17y0dc2i1whxl";
|
sha256 = "0bfy8iqmjhlg3ma3iqd3kxjc2zkzpjgashbpf5x17y0dc2i1whxl";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs =
|
buildInputs = [
|
||||||
[ libGLU_combined libpulseaudio ]
|
libGLU_combined
|
||||||
++ (if withQt5 then [ qtbase qttools ] else [ qt4 ]);
|
libpulseaudio
|
||||||
|
qtbase
|
||||||
|
qttools
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs =
|
nativeBuildInputs = [
|
||||||
[ cmake pkgconfig ]
|
cmake
|
||||||
++ optional withQt5 extra-cmake-modules;
|
pkgconfig
|
||||||
|
extra-cmake-modules
|
||||||
|
];
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-fPIC";
|
NIX_CFLAGS_COMPILE = "-fPIC";
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags = [
|
||||||
[ "-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}" ]
|
"-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
|
||||||
++ optional withQt5 "-DPHONON_BUILD_PHONON4QT5=ON";
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
cmakeFlags+=" -DPHONON_QT_MKSPECS_INSTALL_DIR=''${!outputDev}/mkspecs"
|
cmakeFlags+=" -DPHONON_QT_MKSPECS_INSTALL_DIR=''${!outputDev}/mkspecs"
|
||||||
|
@ -63,10 +63,8 @@ stdenv.mkDerivation {
|
||||||
sed -i cmake/FindPhononInternal.cmake \
|
sed -i cmake/FindPhononInternal.cmake \
|
||||||
-e "/set(INCLUDE_INSTALL_DIR/ c set(INCLUDE_INSTALL_DIR \"''${!outputDev}/include\")"
|
-e "/set(INCLUDE_INSTALL_DIR/ c set(INCLUDE_INSTALL_DIR \"''${!outputDev}/include\")"
|
||||||
|
|
||||||
${optionalString withQt5 ''
|
|
||||||
sed -i cmake/FindPhononInternal.cmake \
|
sed -i cmake/FindPhononInternal.cmake \
|
||||||
-e "/set(PLUGIN_INSTALL_DIR/ c set(PLUGIN_INSTALL_DIR \"$qtPluginPrefix/..\")"
|
-e "/set(PLUGIN_INSTALL_DIR/ c set(PLUGIN_INSTALL_DIR \"$qtPluginPrefix/..\")"
|
||||||
''}
|
|
||||||
|
|
||||||
sed -i CMakeLists.txt \
|
sed -i CMakeLists.txt \
|
||||||
-e "/set(BUILDSYSTEM_INSTALL_DIR/ c set(BUILDSYSTEM_INSTALL_DIR \"''${!outputDev}/${buildsystemdir}\")"
|
-e "/set(BUILDSYSTEM_INSTALL_DIR/ c set(BUILDSYSTEM_INSTALL_DIR \"''${!outputDev}/${buildsystemdir}\")"
|
||||||
|
|
|
@ -311,6 +311,7 @@ mapAliases ({
|
||||||
pulseaudioLight = pulseaudio; # added 2018-04-25
|
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-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-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
|
qca-qt5 = libsForQt5.qca-qt5; # added 2015-12-19
|
||||||
quake3game = ioquake3; # added 2016-01-14
|
quake3game = ioquake3; # added 2016-01-14
|
||||||
qwt6 = libsForQt5.qwt; # added 2015-12-19
|
qwt6 = libsForQt5.qwt; # added 2015-12-19
|
||||||
|
|
|
@ -13412,8 +13412,6 @@ in
|
||||||
|
|
||||||
pdf2xml = callPackage ../development/libraries/pdf2xml {} ;
|
pdf2xml = callPackage ../development/libraries/pdf2xml {} ;
|
||||||
|
|
||||||
phonon = callPackage ../development/libraries/phonon {};
|
|
||||||
|
|
||||||
inherit (callPackage ../development/libraries/physfs { })
|
inherit (callPackage ../development/libraries/physfs { })
|
||||||
physfs_2
|
physfs_2
|
||||||
physfs;
|
physfs;
|
||||||
|
@ -13698,9 +13696,7 @@ in
|
||||||
|
|
||||||
openbr = callPackage ../development/libraries/openbr { };
|
openbr = callPackage ../development/libraries/openbr { };
|
||||||
|
|
||||||
phonon = callPackage ../development/libraries/phonon {
|
phonon = callPackage ../development/libraries/phonon { };
|
||||||
withQt5 = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
phonon-backend-gstreamer = callPackage ../development/libraries/phonon/backends/gstreamer.nix { };
|
phonon-backend-gstreamer = callPackage ../development/libraries/phonon/backends/gstreamer.nix { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue