diff --git a/Makefile.am b/Makefile.am
index acc27a5d..2f3022bb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,88 +1,89 @@
# Makefile.am - Installer for GnuPG 4 Windows Makefile.
# Copyright (C) 2005, 2008, 2012 g10 Code GmbH
#
# This file is part of GPG4Win.
#
# GPG4Win is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# GPG4Win is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see .
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
DISTCHECK_CONFIGURE_FLAGS = --host=i686-w64-mingw32
SUBDIRS = po packages doc src
# find patches -type f | sort | sed 's/$/ \\/' | sed 's/^/ /'
EXTRA_DIST = autogen.sh README.GIT ONEWS \
doc/license-page doc/GPLv3 \
build-aux/git-log-footer build-aux/git-log-fix \
patches/boost/boost-1-fixes.patch \
patches/extra-cmake-modules/0001-Use-BIN_INSTALL_DIR-data-for-DATAROOTDIR-on-Windows.patch \
patches/glib-2.41.5/01-socket.patch \
patches/glib-2.41.5/02-formatsec.patch \
patches/kconfigwidgets/0001-Make-QDbus-optional.patch \
patches/kiconthemes/0001-Make-DBus-optional.patch \
patches/kleopatra/0005-Hack-generated-conf-files-for-Crosscompiling.patch \
patches/kleopatra/fix-qt5.6-build.patch \
patches/kleopatra/0001-Allow-build-with-older-KWindowsystem-versions.patch \
+ patches/kleopatra/allow-older-kde-frameworks.patch \
patches/kxmlgui/0001-make-qdbus-optional.patch \
patches/kxmlgui/0003-Make-KTextWidgets-optional.patch \
patches/kxmlgui/0004-Cruedly-disable-KSendbugmail.patch \
patches/libgpg-error-1.29/0001-doc-Fix-yat2m-build-for-cross-compilation.patch \
patches/qtbase/config-standardpaths.patch \
patches/qtbase/qtbase-mingw-fixes.patch \
patches/qtbase/relative-paths.patch \
patches/qttools/disable-most-tools.patch \
patches/qtwinextras/support-xp.patch \
patches/w32pth-2.0.5/workaround-broken-libtool.patch \
patches/breeze-icons/0001-Make-binary-icons-cross-compilable.patch
copy-news:
cp NEWS doc/website/NEWS.last
copy-release: gpg4win-$(VERSION).tar.bz2 installers/gpg4win-$(VERSION).exe \
installers/gpg4win-light-$(VERSION).exe \
installers/gpg4win-vanilla-$(VERSION).exe
@echo Copying $(VERSION) to $(RELEASEHOST) >&2
@set -e;\
if ssh "$$(echo $(RELEASEHOST)|cut -d: -f -1)" \
test -f "$$(echo $(RELEASEHOST)/gpg4win-$(VERSION).exe|cut -d: -f2-)";\
then echo "This release has already been copied to the server" >&2 ;\
else scp gpg4win-$(VERSION).tar.bz2 \
installers/gpg4win-$(VERSION).exe \
installers/gpg4win-light-$(VERSION).exe \
installers/gpg4win-vanilla-$(VERSION).exe \
installers/gpg4win-src-$(VERSION).exe $(RELEASEHOST)/ ;\
for f in en de ; do \
scp src/README.$$f.txt \
$(RELEASEHOST)/README-$(VERSION).$$f.txt; \
done;\
fi
dist-hook: gen-ChangeLog
gen_start_date = 2012-03-26T00:00:00
.PHONY: gen-ChangeLog
gen-ChangeLog:
set -e; \
if test -d $(top_srcdir)/.git; then \
(cd $(top_srcdir) && \
$(GITLOG_TO_CHANGELOG) --append-dot --tear-off \
--amend=build-aux/git-log-fix \
--since=$(gen_start_date) ) > $(distdir)/cl-t; \
cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;\
rm -f $(distdir)/ChangeLog; \
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
fi
diff --git a/patches/kleopatra/allow-older-kde-frameworks.patch b/patches/kleopatra/allow-older-kde-frameworks.patch
new file mode 100755
index 00000000..d465986b
--- /dev/null
+++ b/patches/kleopatra/allow-older-kde-frameworks.patch
@@ -0,0 +1,99 @@
+#! /bin/sh
+patch -p1 -l -f -R $* < $0
+exit $?
+
+diff --git a/src/conf/appearanceconfigpage.cpp b/src/conf/appearanceconfigpage.cpp
+index 504f68ec..5284c246 100644
+--- a/src/conf/appearanceconfigpage.cpp
++++ b/src/conf/appearanceconfigpage.cpp
+@@ -31,7 +31,6 @@
+ */
+
+ #include
+-#include
+ #include "appearanceconfigpage.h"
+
+ #include "appearanceconfigwidget.h"
+@@ -50,11 +49,7 @@ AppearanceConfigurationPage::AppearanceConfigurationPage(QWidget *parent, const
+ mWidget = new AppearanceConfigWidget(this);
+ lay->addWidget(mWidget);
+
+-#if KCONFIGWIDGETS_VERSION < QT_VERSION_CHECK(5, 64, 0)
+- connect(mWidget, &AppearanceConfigWidget::changed, this, QOverload<>::of(&Kleo::Config::AppearanceConfigurationPage::changed));
+-#else
+ connect(mWidget, &AppearanceConfigWidget::changed, this, &Kleo::Config::AppearanceConfigurationPage::markAsChanged);
+-#endif
+
+ load();
+ }
+diff --git a/src/conf/cryptooperationsconfigpage.cpp b/src/conf/cryptooperationsconfigpage.cpp
+index cdda69ee..d0c377c4 100644
+--- a/src/conf/cryptooperationsconfigpage.cpp
++++ b/src/conf/cryptooperationsconfigpage.cpp
+@@ -31,7 +31,6 @@
+ */
+
+ #include
+-#include
+
+ #include "cryptooperationsconfigpage.h"
+
+@@ -49,11 +48,7 @@ CryptoOperationsConfigurationPage::CryptoOperationsConfigurationPage(QWidget *pa
+ lay->setContentsMargins(0, 0, 0, 0);
+ mWidget = new CryptoOperationsConfigWidget(this);
+ lay->addWidget(mWidget);
+-#if KCONFIGWIDGETS_VERSION < QT_VERSION_CHECK(5, 64, 0)
+- connect(mWidget, &CryptoOperationsConfigWidget::changed, this, QOverload<>::of(&Kleo::Config::CryptoOperationsConfigurationPage::changed));
+-#else
+ connect(mWidget, &CryptoOperationsConfigWidget::changed, this, &Kleo::Config::CryptoOperationsConfigurationPage::markAsChanged);
+-#endif
+ load();
+ }
+
+diff --git a/src/conf/gnupgsystemconfigurationpage.cpp b/src/conf/gnupgsystemconfigurationpage.cpp
+index 897b6507..fad1f45d 100644
+--- a/src/conf/gnupgsystemconfigurationpage.cpp
++++ b/src/conf/gnupgsystemconfigurationpage.cpp
+@@ -31,7 +31,6 @@
+ */
+
+ #include
+-#include
+ #include "gnupgsystemconfigurationpage.h"
+
+ #include
+@@ -56,11 +55,7 @@ GnuPGSystemConfigurationPage::GnuPGSystemConfigurationPage(QWidget *parent, cons
+ lay->addWidget(mWidget);
+
+
+-#if KCONFIGWIDGETS_VERSION < QT_VERSION_CHECK(5, 64, 0)
+- connect(mWidget, &CryptoConfigModule::changed, this, QOverload<>::of(&Kleo::Config::GnuPGSystemConfigurationPage::changed));
+-#else
+ connect(mWidget, &CryptoConfigModule::changed, this, &Kleo::Config::GnuPGSystemConfigurationPage::markAsChanged);
+-#endif
+
+ load();
+ }
+diff --git a/src/conf/smimevalidationconfigurationpage.cpp b/src/conf/smimevalidationconfigurationpage.cpp
+index 12b1a26d..5476b1b3 100644
+--- a/src/conf/smimevalidationconfigurationpage.cpp
++++ b/src/conf/smimevalidationconfigurationpage.cpp
+@@ -31,7 +31,6 @@
+ */
+
+ #include
+-#include
+ #include "smimevalidationconfigurationpage.h"
+ #include "smimevalidationconfigurationwidget.h"
+
+@@ -49,11 +48,7 @@ SMimeValidationConfigurationPage::SMimeValidationConfigurationPage(QWidget *pare
+ mWidget = new SMimeValidationConfigurationWidget(this);
+ lay->addWidget(mWidget);
+
+-#if KCONFIGWIDGETS_VERSION < QT_VERSION_CHECK(5, 64, 0)
+- connect(mWidget, &SMimeValidationConfigurationWidget::changed, this, QOverload<>::of(&Kleo::Config::SMimeValidationConfigurationPage::changed));
+-#else
+ connect(mWidget, &SMimeValidationConfigurationWidget::changed, this, &Kleo::Config::SMimeValidationConfigurationPage::markAsChanged);
+-#endif
+ load();
+ }