diff options
Diffstat (limited to 'libre/digikam')
-rw-r--r-- | libre/digikam/0001-optionally-enable-OpenGL.patch | 34 | ||||
-rw-r--r-- | libre/digikam/PKGBUILD | 82 | ||||
-rw-r--r-- | libre/digikam/digikam-find-qtav.patch | 21 | ||||
-rw-r--r-- | libre/digikam/libre.patch | 58 |
4 files changed, 195 insertions, 0 deletions
diff --git a/libre/digikam/0001-optionally-enable-OpenGL.patch b/libre/digikam/0001-optionally-enable-OpenGL.patch new file mode 100644 index 000000000..909a44434 --- /dev/null +++ b/libre/digikam/0001-optionally-enable-OpenGL.patch @@ -0,0 +1,34 @@ +From 9e291325f5d2568834fd0d590e5e99af129d9518 Mon Sep 17 00:00:00 2001 +From: Kevin Mihelich <kevin@archlinuxarm.org> +Date: Tue, 5 Jul 2016 18:47:56 -0600 +Subject: [PATCH] optionally enable OpenGL + +Signed-off-by: Kevin Mihelich <kevin@archlinuxarm.org> +--- + CMakeLists.txt | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d3e64b5..1dabead 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -104,6 +104,7 @@ option(ENABLE_KFILEMETADATASUPPORT "Build digiKam with KDE files indexer suppor + option(ENABLE_AKONADICONTACTSUPPORT "Build digiKam with KDE Mail Contacts support (default=OFF)" OFF) + option(ENABLE_MEDIAPLAYER "Build digiKam with QtMultimedia support (default=OFF)" OFF) + option(ENABLE_DBUS "Build digiKam with DBUS support (default=ON)" ON) ++option(ENABLE_OPENGL "Build digiKam with OpenGL support (default=ON)" ON) + option(ENABLE_APPSTYLES "Build digiKam with support for changing the widget application style (default=OFF)" OFF) + + # Mysql support options (experimental): +@@ -286,7 +287,7 @@ else() + endif() + + # decide if Presentation tool can be built with OpenGL +-if(OPENGL_FOUND AND OPENGL_GLU_FOUND AND Qt5OpenGL_FOUND) ++if(OPENGL_FOUND AND OPENGL_GLU_FOUND AND Qt5OpenGL_FOUND AND ENABLE_OPENGL) + set(HAVE_OPENGL TRUE) + elseif() + set(HAVE_OPENGL FALSE) +-- +2.9.2 + diff --git a/libre/digikam/PKGBUILD b/libre/digikam/PKGBUILD new file mode 100644 index 000000000..87fa37e92 --- /dev/null +++ b/libre/digikam/PKGBUILD @@ -0,0 +1,82 @@ +# $Id: PKGBUILD 285609 2017-01-09 23:33:53Z arojas $ +# Maintainer (Arch): Ronald van Haren <ronald@archlinux.org> +# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org> +# Contributor (Arch): Tobias Powalowski <tpowa@archlinux.org> +# Maintainer: André Silva <emulatorman@parabola.nu> +# Contributor: Márcio Silva <coadde@parabola.nu> + +pkgbase=digikam +pkgname=kipi-plugins +_pkgver=5.4.0 +pkgver=${_pkgver//-/_} # for beta versions +pkgrel=1.parabola1 +pkgdesc="Digital photo management application for KDE" +arch=('i686' 'x86_64' 'armv7h') +license=('GPL') +url="http://www.digikam.org/" +replaces=("${pkgname}-libre") +conflicts=("${pkgname}-libre") +makedepends=('extra-cmake-modules' 'libkipi' 'libksane' 'liblqr' 'opencv' 'boost' + 'doxygen' 'lensfun' 'eigen' 'kdoctools' 'marble' 'kdesignerplugin' + 'kfilemetadata' 'akonadi-contacts' 'qtav' 'threadweaver' 'kcalcore' + 'knotifyconfig' 'libmediawiki' 'libkvkontakte') +source=("http://download.kde.org/stable/${pkgbase}/${pkgbase}-${_pkgver}.tar.xz" digikam-find-qtav.patch + "libre.patch" + '0001-optionally-enable-OpenGL.patch') +sha1sums=('6c58ee30cd84b40acf4427f1bb9dbb8b891eb894' + 'b170e5eab5a8c40d1c8c8f2d2cfe5e911ad66939' + 'edd5b5eeae7ed4139b4c5f6a8446990f1da2e544' + '95169d438884b1650a4c11e1ca44ae7ad5096a89') + +prepare() { + mkdir -p build + + cd ${pkgbase}-${_pkgver} + patch -p1 -i ../libre.patch + + # Fix QtAV location + patch -p1 -i ../digikam-find-qtav.patch + + # OpenGL switch + if [[ "$CARCH" = arm* ]]; then + cd core + patch -p1 -i ${srcdir}/0001-optionally-enable-OpenGL.patch + fi +} + +build() { + cd build + + if [[ "$CARCH" = arm* ]]; then + local cmake_extra="-DENABLE_OPENGL=OFF" + fi + + cmake ../${pkgbase}-${_pkgver} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF \ + -DENABLE_KFILEMETADATASUPPORT=ON \ + -DENABLE_MEDIAPLAYER=ON \ + -DENABLE_AKONADICONTACTSUPPORT=ON \ + -DENABLE_MYSQLSUPPORT=ON \ + -DENABLE_OPENCV3=ON \ + -DENABLE_APPSTYLES=ON \ + $cmake_extra + make +} + +package_kipi-plugins() { + pkgdesc="A collection of plugins extending the KDE graphics and image applications as digiKam, without nonfree suggestions" + depends=('kio' 'libkipi') + optdepends=('libmediawiki: MediaWiki Export plugin' + 'libkvkontakte: VKontakte.ru Exporter plugin') + + cd build/extra + make DESTDIR="$pkgdir" install + cd $srcdir/build/po + make DESTDIR="$pkgdir" install + +# Provided by digikam + rm "$pkgdir"/usr/share/locale/*/LC_MESSAGES/digikam.mo +} diff --git a/libre/digikam/digikam-find-qtav.patch b/libre/digikam/digikam-find-qtav.patch new file mode 100644 index 000000000..e1121897c --- /dev/null +++ b/libre/digikam/digikam-find-qtav.patch @@ -0,0 +1,21 @@ +--- digikam-5.4.0/core/cmake/modules/FindQtAV.cmake.0 2017-01-09 22:56:43.303991660 +0000 ++++ digikam-5.4.0/core/cmake/modules/FindQtAV.cmake 2017-01-09 22:57:24.843934106 +0000 +@@ -24,15 +24,17 @@ + HINTS ${_qt5_install_prefix} # For MXE + ${_qt5_install_prefix}/../qt5/include # For Mageia + ${_qt5_install_prefix}/../../include/qt5 # For Suse ++ ${_qt5_install_prefix}/../../include/qt + ${_qt5_install_prefix}/../../../include/x86_64-linux-gnu/qt5 # For Debian + PATH_SUFFIXES QtAV + ) + + find_path(QTAV_WIDGETS_INCLUDE_DIR + NAMES QtAVWidgets.h + HINTS ${_qt5_install_prefix} # For MXE + ${_qt5_install_prefix}/../qt5/include # For Mageia + ${_qt5_install_prefix}/../../include/qt5 # For Suse ++ ${_qt5_install_prefix}/../../include/qt + ${_qt5_install_prefix}/../../../include/x86_64-linux-gnu/qt5 # For Debian + PATH_SUFFIXES QtAVWidgets + ) + diff --git a/libre/digikam/libre.patch b/libre/digikam/libre.patch new file mode 100644 index 000000000..8c677e210 --- /dev/null +++ b/libre/digikam/libre.patch @@ -0,0 +1,58 @@ +diff --git a/extra/kipi-plugins/sendimages/emailsettings.h b/extra/kipi-plugins/sendimages/emailsettings.h +index 0f58cc4..b497299 100644 +--- a/extra/kipi-plugins/sendimages/emailsettings.h ++++ b/extra/kipi-plugins/sendimages/emailsettings.h +@@ -64,10 +64,9 @@ public: + CLAWSMAIL, + EVOLUTION, + KMAIL, +- NETSCAPE, + SYLPHEED, + SYLPHEEDCLAWS, +- THUNDERBIRD ++ ICEDOVE + }; + + enum ImageSize +diff --git a/extra/kipi-plugins/sendimages/sendimages.cpp b/extra/kipi-plugins/sendimages/sendimages.cpp +index 1be65d6..68094de 100644 +--- a/extra/kipi-plugins/sendimages/sendimages.cpp ++++ b/extra/kipi-plugins/sendimages/sendimages.cpp +@@ -589,18 +589,13 @@ bool SendImages::invokeMailAgent() + // More info about command lines options with Mozilla & co: + // http://www.mozilla.org/docs/command-line-args.html#Syntax_Rules + +- case EmailSettings::NETSCAPE: +- case EmailSettings::THUNDERBIRD: ++ case EmailSettings::ICEDOVE: + { + QString prog; + +- if (d->settings.emailProgram == EmailSettings::NETSCAPE) ++ if (d->settings.emailProgram == EmailSettings::ICEDOVE) + { +- prog = QLatin1String("netscape"); +- } +- else +- { +- prog = QLatin1String("thunderbird"); ++ prog = QLatin1String("icedove"); + } + + QStringList args; +diff --git a/extra/kipi-plugins/sendimages/settingswidget.cpp b/extra/kipi-plugins/sendimages/settingswidget.cpp +index b8416a4..f160310 100644 +--- a/extra/kipi-plugins/sendimages/settingswidget.cpp ++++ b/extra/kipi-plugins/sendimages/settingswidget.cpp +@@ -97,10 +97,9 @@ SettingsWidget::SettingsWidget(QWidget* const parent) + d->mailAgentName->insertItem(EmailSettings::CLAWSMAIL, QLatin1String("Claws Mail")); + d->mailAgentName->insertItem(EmailSettings::EVOLUTION, QLatin1String("Evolution")); + d->mailAgentName->insertItem(EmailSettings::KMAIL, QLatin1String("KMail")); +- d->mailAgentName->insertItem(EmailSettings::NETSCAPE, QLatin1String("Netscape")); + d->mailAgentName->insertItem(EmailSettings::SYLPHEED, QLatin1String("Sylpheed")); + d->mailAgentName->insertItem(EmailSettings::SYLPHEEDCLAWS, QLatin1String("Sylpheed-Claws")); +- d->mailAgentName->insertItem(EmailSettings::THUNDERBIRD, QLatin1String("Thunderbird")); ++ d->mailAgentName->insertItem(EmailSettings::ICEDOVE, QLatin1String("Icedove")); + #endif + d->mailAgentName->setCurrentIndex(EmailSettings::DEFAULT); + d->mailAgentName->setWhatsThis(i18n("Select your preferred external email program here. " |