2017-10-07 20:30:41 +00:00
|
|
|
{
|
|
|
|
mkDerivation, lib, fetchurl,
|
|
|
|
extra-cmake-modules, makeWrapper,
|
2017-10-27 04:59:52 +00:00
|
|
|
libpthreadstubs, libXdmcp,
|
2017-10-07 20:30:41 +00:00
|
|
|
qtsvg, qtx11extras, ki18n, kdelibs4support, kio, kmediaplayer, kwidgetsaddons,
|
|
|
|
phonon, cairo, mplayer
|
2013-06-23 06:53:18 +00:00
|
|
|
}:
|
2010-02-10 15:06:50 +00:00
|
|
|
|
2017-10-07 20:30:41 +00:00
|
|
|
mkDerivation rec {
|
|
|
|
majorMinorVersion = "0.12";
|
|
|
|
patchVersion = "0b";
|
|
|
|
version = "${majorMinorVersion}.${patchVersion}";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "kmplayer";
|
2013-06-23 06:53:18 +00:00
|
|
|
|
2010-02-10 15:06:50 +00:00
|
|
|
src = fetchurl {
|
2017-10-07 20:30:41 +00:00
|
|
|
url = "mirror://kde/stable/kmplayer/${majorMinorVersion}/kmplayer-${version}.tar.bz2";
|
|
|
|
sha256 = "0wzdxym4fc83wvqyhcwid65yv59a2wvp1lq303cn124mpnlwx62y";
|
2010-02-10 15:06:50 +00:00
|
|
|
};
|
2013-06-23 06:53:18 +00:00
|
|
|
|
2017-10-07 20:30:41 +00:00
|
|
|
patches = [
|
|
|
|
./kmplayer_part-plugin_metadata.patch # Qt 5.9 doesn't like an empty string for the optional "FILE" argument of "Q_PLUGIN_METADATA"
|
|
|
|
./no-docs.patch # Don't build docs due to errors (kdelibs4support propagates kdoctools)
|
|
|
|
];
|
2015-09-27 15:11:01 +00:00
|
|
|
|
2017-10-25 14:57:43 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i src/kmplayer.desktop \
|
|
|
|
-e "s,^Exec.*,Exec=$out/bin/kmplayer -qwindowtitle %c %i %U,"
|
|
|
|
'';
|
|
|
|
|
2017-10-07 20:30:41 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2017-10-27 04:59:52 +00:00
|
|
|
libpthreadstubs libXdmcp
|
2017-10-07 20:30:41 +00:00
|
|
|
qtsvg qtx11extras ki18n kdelibs4support kio kmediaplayer kwidgetsaddons
|
|
|
|
phonon cairo
|
|
|
|
];
|
2013-06-23 06:53:18 +00:00
|
|
|
|
2013-06-24 23:32:04 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/kmplayer --suffix PATH : ${mplayer}/bin
|
|
|
|
'';
|
|
|
|
|
2017-10-07 20:30:41 +00:00
|
|
|
meta = with lib; {
|
2010-02-10 15:06:50 +00:00
|
|
|
description = "MPlayer front-end for KDE";
|
2017-10-07 20:30:41 +00:00
|
|
|
license = with licenses; [ gpl2 lgpl2 fdl12 ];
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://kmplayer.kde.org/";
|
2017-10-07 20:30:41 +00:00
|
|
|
maintainers = with maintainers; [ sander zraexy ];
|
2010-02-10 15:06:50 +00:00
|
|
|
};
|
|
|
|
}
|