2017-02-26 12:49:15 +00:00
|
|
|
{ stdenv, fetchurl, cmake, extra-cmake-modules, makeQtWrapper
|
2017-02-18 17:55:57 +00:00
|
|
|
|
|
|
|
# For `digitaglinktree`
|
|
|
|
, perl, sqlite
|
|
|
|
|
|
|
|
, qtbase
|
|
|
|
, qtxmlpatterns
|
|
|
|
, qtsvg
|
|
|
|
, qtwebkit
|
|
|
|
|
|
|
|
, kconfigwidgets
|
|
|
|
, kcoreaddons
|
|
|
|
, kdoctools
|
|
|
|
, kfilemetadata
|
|
|
|
, knotifications
|
|
|
|
, knotifyconfig
|
|
|
|
, ktextwidgets
|
|
|
|
, kwidgetsaddons
|
|
|
|
, kxmlgui
|
|
|
|
|
|
|
|
, bison
|
|
|
|
, boost
|
|
|
|
, eigen
|
|
|
|
, exiv2
|
|
|
|
, flex
|
|
|
|
, jasper
|
2015-10-04 01:07:00 +01:00
|
|
|
, lcms2
|
2017-02-18 17:55:57 +00:00
|
|
|
, lensfun
|
|
|
|
, libgphoto2
|
|
|
|
, libkipi
|
|
|
|
, liblqr1
|
|
|
|
, libusb1
|
|
|
|
, marble
|
|
|
|
, mysql
|
|
|
|
, opencv
|
|
|
|
, threadweaver
|
|
|
|
|
|
|
|
# For panorama and focus stacking
|
|
|
|
, enblend-enfuse
|
|
|
|
, hugin
|
|
|
|
, gnumake
|
|
|
|
|
|
|
|
, oxygen
|
2015-03-15 13:55:32 +00:00
|
|
|
}:
|
2010-02-10 15:06:50 +00:00
|
|
|
|
2017-02-18 17:55:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "digikam-${version}";
|
|
|
|
version = "5.4.0";
|
2010-02-10 15:06:50 +00:00
|
|
|
|
2017-02-18 17:55:57 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.kde.org/stable/digikam/${name}.tar.xz";
|
|
|
|
sha256 = "0dgsgji14l5zvxny36hrfsp889fsfrsbbn9bg57m18404xp903kg";
|
|
|
|
};
|
2010-10-05 18:44:05 +01:00
|
|
|
|
2017-02-26 12:49:15 +00:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules makeQtWrapper ];
|
2017-02-18 17:55:57 +00:00
|
|
|
|
|
|
|
patches = [ ./0001-Disable-fno-operator-names.patch ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtxmlpatterns
|
|
|
|
qtsvg
|
|
|
|
qtwebkit
|
|
|
|
|
|
|
|
kconfigwidgets
|
|
|
|
kcoreaddons
|
|
|
|
kdoctools
|
|
|
|
kfilemetadata
|
|
|
|
knotifications
|
|
|
|
knotifyconfig
|
|
|
|
ktextwidgets
|
|
|
|
kwidgetsaddons
|
|
|
|
kxmlgui
|
|
|
|
|
|
|
|
bison
|
|
|
|
boost
|
|
|
|
eigen
|
|
|
|
exiv2
|
|
|
|
flex
|
|
|
|
jasper
|
|
|
|
lcms2
|
|
|
|
lensfun
|
|
|
|
libgphoto2
|
|
|
|
libkipi
|
|
|
|
liblqr1
|
|
|
|
libusb1
|
|
|
|
marble.unwrapped
|
|
|
|
mysql
|
|
|
|
opencv
|
|
|
|
threadweaver
|
|
|
|
|
|
|
|
oxygen
|
2015-03-15 13:55:32 +00:00
|
|
|
];
|
2010-10-12 08:49:24 +01:00
|
|
|
|
2017-02-18 17:55:57 +00:00
|
|
|
enableParallelBuilding = true;
|
2012-01-19 20:28:13 +00:00
|
|
|
|
2017-02-18 17:55:57 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DLIBUSB_LIBRARIES=${libusb1.out}/lib"
|
|
|
|
"-DLIBUSB_INCLUDE_DIR=${libusb1.dev}/include/libusb-1.0"
|
|
|
|
"-DENABLE_MYSQLSUPPORT=1"
|
|
|
|
"-DENABLE_INTERNALMYSQL=1"
|
|
|
|
];
|
2015-10-04 01:07:00 +01:00
|
|
|
|
2017-02-18 17:55:57 +00:00
|
|
|
fixupPhase = ''
|
|
|
|
substituteInPlace $out/bin/digitaglinktree \
|
|
|
|
--replace "/usr/bin/perl" "${perl}/bin/perl" \
|
|
|
|
--replace "/usr/bin/sqlite3" "${sqlite}/bin/sqlite3"
|
2015-03-15 13:42:22 +00:00
|
|
|
|
2017-02-18 17:55:57 +00:00
|
|
|
wrapQtProgram $out/bin/digikam \
|
|
|
|
--prefix PATH : "${gnumake}/bin:${hugin}/bin:${enblend-enfuse}/bin"
|
2015-10-04 01:07:00 +01:00
|
|
|
|
2017-02-18 17:55:57 +00:00
|
|
|
wrapQtProgram $out/bin/showfoto
|
2015-10-04 01:07:00 +01:00
|
|
|
'';
|
|
|
|
|
2010-02-10 15:06:50 +00:00
|
|
|
meta = {
|
|
|
|
description = "Photo Management Program";
|
2015-03-15 13:55:32 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2010-02-10 23:38:02 +00:00
|
|
|
homepage = http://www.digikam.org;
|
2017-02-18 17:55:57 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-02-10 15:06:50 +00:00
|
|
|
};
|
2017-02-18 17:55:57 +00:00
|
|
|
}
|