2015-03-15 14:55:32 +01:00
|
|
|
{ stdenv, fetchurl, automoc4, boost, shared_desktop_ontologies, cmake
|
|
|
|
, eigen, lcms, gettext, jasper, kdelibs, kdepimlibs, lensfun
|
|
|
|
, libgphoto2, libjpeg, libkdcraw, libkexiv2, libkipi, libpgf, libtiff
|
2015-09-27 17:11:01 +02:00
|
|
|
, libusb1, liblqr1, marble, mysql, opencv, perl, phonon, pkgconfig
|
|
|
|
, qca2, qimageblitz, qjson, qt4, soprano
|
2015-03-15 14:55:32 +01:00
|
|
|
}:
|
2010-02-10 16:06:50 +01:00
|
|
|
|
2010-02-11 00:38:02 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-30 17:38:03 +02:00
|
|
|
name = "digikam-4.12.0";
|
2010-02-10 16:06:50 +01:00
|
|
|
|
2010-10-05 19:44:05 +02:00
|
|
|
src = fetchurl {
|
2013-05-30 18:46:30 +02:00
|
|
|
url = "http://download.kde.org/stable/digikam/${name}.tar.bz2";
|
2015-08-30 17:38:03 +02:00
|
|
|
sha256 = "081ldsaf3frf5khznjd3sxkjmi4dyp6w6nqnc2a0agkk0kxkl10m";
|
2010-02-10 16:06:50 +01:00
|
|
|
};
|
|
|
|
|
2015-09-27 17:11:01 +02:00
|
|
|
nativeBuildInputs = [ automoc4 cmake gettext perl pkgconfig ];
|
2010-10-05 19:44:05 +02:00
|
|
|
|
2015-03-15 14:55:32 +01:00
|
|
|
buildInputs = [
|
2015-09-27 17:11:01 +02:00
|
|
|
boost eigen jasper kdelibs kdepimlibs lcms lensfun libgphoto2
|
|
|
|
libjpeg libkdcraw libkexiv2 libkipi liblqr1 libpgf libtiff marble
|
|
|
|
mysql.lib opencv phonon qca2 qimageblitz qjson qt4
|
2015-03-15 14:55:32 +01:00
|
|
|
shared_desktop_ontologies soprano
|
|
|
|
];
|
2010-10-12 09:49:24 +02:00
|
|
|
|
2011-12-25 23:54:32 +01:00
|
|
|
# Make digikam find some FindXXXX.cmake
|
2012-01-19 21:28:13 +01:00
|
|
|
KDEDIRS="${marble}:${qjson}";
|
|
|
|
|
2015-03-15 14:55:32 +01:00
|
|
|
# Help digiKam find libusb, otherwise gphoto2 support is disabled
|
2015-09-27 17:11:01 +02:00
|
|
|
cmakeFlags = [
|
2016-01-24 08:29:44 +01:00
|
|
|
"-DLIBUSB_LIBRARIES=${libusb1.out}/lib"
|
2015-09-27 17:11:01 +02:00
|
|
|
"-DLIBUSB_INCLUDE_DIR=${libusb1}/include/libusb-1.0"
|
|
|
|
"-DDIGIKAMSC_COMPILE_LIBKFACE=ON"
|
|
|
|
];
|
2015-03-15 14:42:22 +01:00
|
|
|
|
2013-05-29 19:29:11 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-02-10 16:06:50 +01:00
|
|
|
meta = {
|
|
|
|
description = "Photo Management Program";
|
2015-03-15 14:55:32 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2010-02-11 00:38:02 +01:00
|
|
|
homepage = http://www.digikam.org;
|
2015-03-15 14:55:32 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ goibhniu viric urkud ];
|
2010-10-05 19:44:05 +02:00
|
|
|
inherit (kdelibs.meta) platforms;
|
2010-02-10 16:06:50 +01:00
|
|
|
};
|
|
|
|
}
|