2015-09-27 17:11:01 +02:00
|
|
|
{ stdenv, fetchurl, lib, automoc4, cmake, perl, pkgconfig
|
|
|
|
, qtscriptgenerator, gettext, curl , libxml2, mysql, taglib
|
2017-02-25 00:16:28 +01:00
|
|
|
, taglib_extras, loudmouth , kdelibs4, qca2, libmtp, liblastfm, libgpod
|
2015-09-27 17:11:01 +02:00
|
|
|
, phonon , strigi, soprano, qjson, ffmpeg, libofa, nepomuk_core ? null
|
2016-05-04 09:06:43 +02:00
|
|
|
, lz4, lzo, snappy, libaio, pcre
|
2015-09-27 17:11:01 +02:00
|
|
|
}:
|
2010-09-26 21:40:30 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
pname = "amarok";
|
2013-08-21 19:39:32 +02:00
|
|
|
version = "2.8.0";
|
2010-09-26 21:40:30 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.bz2";
|
2013-08-21 19:39:32 +02:00
|
|
|
sha256 = "1ilf9wdp3wna5pmvxill8x08rb9gw86qkc2zwm3xk9hpy8l9pf7l";
|
2010-09-26 21:40:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
QT_PLUGIN_PATH="${qtscriptgenerator}/lib/qt4/plugins";
|
2013-08-21 19:39:32 +02:00
|
|
|
|
2015-09-27 17:11:01 +02:00
|
|
|
nativeBuildInputs = [ automoc4 cmake perl pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2016-08-01 17:46:30 +02:00
|
|
|
qtscriptgenerator stdenv.cc.libc gettext curl libxml2 mysql.server/*libmysqld*/
|
2017-02-25 00:16:28 +01:00
|
|
|
taglib taglib_extras loudmouth kdelibs4 phonon strigi soprano qca2
|
2015-09-27 17:11:01 +02:00
|
|
|
libmtp liblastfm libgpod qjson ffmpeg libofa nepomuk_core
|
2016-05-04 09:06:43 +02:00
|
|
|
lz4 lzo snappy libaio pcre
|
2015-09-27 17:11:01 +02:00
|
|
|
];
|
2010-09-26 21:40:30 +02:00
|
|
|
|
2015-12-26 18:42:03 +01:00
|
|
|
# This is already fixed upstream, will be release in 2.9
|
2015-12-26 18:00:20 +01:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i -e 's/STRLESS/VERSION_LESS/g' cmake/modules/FindTaglib.cmake
|
|
|
|
'';
|
|
|
|
|
2013-05-10 03:13:31 +02:00
|
|
|
cmakeFlags = "-DKDE4_BUILD_TESTS=OFF";
|
|
|
|
|
2016-08-06 17:32:09 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-02-13 03:14:58 +01:00
|
|
|
propagatedUserEnvPkgs = [ qtscriptgenerator ];
|
2012-08-31 10:05:47 +02:00
|
|
|
|
2010-09-26 21:40:30 +02:00
|
|
|
meta = {
|
2014-02-13 03:14:58 +01:00
|
|
|
repositories.git = git://anongit.kde.org/amarok.git;
|
2010-09-26 21:40:30 +02:00
|
|
|
description = "Popular music player for KDE";
|
|
|
|
license = "GPL";
|
|
|
|
homepage = http://amarok.kde.org;
|
2017-02-25 00:16:28 +01:00
|
|
|
inherit (kdelibs4.meta) platforms;
|
2010-09-26 21:40:30 +02:00
|
|
|
};
|
|
|
|
}
|