Add patches for gpgex Kleopatra-kf5 compatibility
[gpg4win.git] / Makefile.am
1 # Makefile.am - Installer for GnuPG 4 Windows Makefile.
2 # Copyright (C) 2005, 2008, 2012 g10 Code GmbH
3 #
4 # This file is part of GPG4Win.
5 #
6 # GPG4Win is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # GPG4Win is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
18
19 ACLOCAL_AMFLAGS = -I m4
20 AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
21 DISTCHECK_CONFIGURE_FLAGS = --host=i686-w64-mingw32
22
23 SUBDIRS = po packages doc src
24
25 # find patches -type f | sort | sed 's/$/ \\/' | sed 's/^/             /'
26
27 EXTRA_DIST = autogen.sh README.GIT ONEWS \
28         doc/license-page doc/GPLv3 \
29         build-aux/git-log-footer build-aux/git-log-fix \
30         patches/glib-2.41.5/01-socket.patch \
31         patches/qtbase-5.5.1/fix-freetype-link.patch \
32         patches/qtbase-5.5.1/fix-oci-detect.patch \
33         patches/qtbase-5.5.1/fix-syssemaphore.patch \
34         patches/qtbase-5.5.1/fix-zlib-link.patch \
35         patches/qtbase-5.5.1/relative-paths.patch \
36         patches/qtbase-5.5.1/config-standardpaths.patch \
37         patches/w32pth-2.0.5/workaround-broken-libtool.patch \
38         patches/qttools/disable-most-tools.patch \
39         patches/ki18n/no-tests.patch \
40         patches/ki18n/0001-Use-QLocale-system-uiLanguages-as-fallback.patch \
41         patches/gpgme-1.6.0/0001-w32-Fallback-to-2.1-reg-key-for-gpgconf-search.patch \
42         patches/gpgme-1.6.0/0001-Add-gpgme_pubkey_algo_string.patch \
43         patches/gpgmepp/0002-disable-variants.patch \
44         patches/kmime/0001-Check-for-and-replace-strcasestr.patch \
45         patches/kmime/0002-Fix-Windows-build.patch \
46         patches/kxmlgui/0001-Make-KGlobalAccel-dependency-optional.patch \
47         patches/kxmlgui/0002-Make-QDBus-dependency-optional.patch \
48         patches/kxmlgui/0003-Make-KTextWidgets-optional.patch \
49         patches/kxmlgui/0004-Cruedly-disable-KSendbugmail.patch \
50         patches/kxmlgui/0005-Use-non-native-Language-name-as-fallback.patch \
51         patches/kconfigwidgets/0001-Make-QDbus-optional.patch \
52         patches/kconfigwidgets/0002-Crudely-remove-KF5Auth-depedency.patch \
53         patches/kiconthemes/0001-Make-DBus-optional.patch \
54         patches/qtsvg/qtsvg-link-zlib.patch \
55         patches/extra-cmake-modules/0001-Add-convert-utility-support-for-Windows-icons.patch \
56         patches/kleopatra/0001-Implement-KDBusService-alternative-for-Windows.patch \
57         patches/kleopatra/0002-Add-alternative-configuredialog-wihout-KCMUtils.patch \
58         patches/kleopatra/0003-Add-option-to-disable-KWatchGnuPG.patch \
59         patches/kleopatra/0004-Make-DBus-integration-of-the-smime-conf-optional.patch \
60         patches/kleopatra/0005-Hack-generated-conf-files-for-Crosscompiling.patch \
61         patches/kcoreaddons/0001-Fix-Kdelibs4-config-migration-for-Windows.patch \
62         patches/pinentry-0.9.7/Qt-Fix-Windows-foreground-window-hacks-for-Qt5.patch \
63         patches/gpgex-1.0.3/0001-Support-gpg4win-registry-keys-and-install-location.patch \
64         patches/gpgex-1.0.3/0002-Place-assuan-calls-in-a-different-thread.patch
65
66 copy-news:
67         cp NEWS doc/website/NEWS.last
68
69
70 copy-release: gpg4win-$(VERSION).tar.bz2 installers/gpg4win-$(VERSION).exe \
71               installers/gpg4win-light-$(VERSION).exe \
72               installers/gpg4win-vanilla-$(VERSION).exe
73         @echo Copying $(VERSION) to $(RELEASEHOST) >&2
74         @set -e;\
75         if ssh "$$(echo $(RELEASEHOST)|cut -d: -f -1)" \
76         test -f "$$(echo $(RELEASEHOST)/gpg4win-$(VERSION).exe|cut -d: -f2-)";\
77         then echo "This release has already been copied to the server" >&2 ;\
78         else scp gpg4win-$(VERSION).tar.bz2 \
79                  installers/gpg4win-$(VERSION).exe \
80                  installers/gpg4win-light-$(VERSION).exe \
81                  installers/gpg4win-vanilla-$(VERSION).exe \
82                  installers/gpg4win-src-$(VERSION).exe  $(RELEASEHOST)/ ;\
83              for f in en de ; do \
84                scp src/README.$$f.txt \
85                      $(RELEASEHOST)/README-$(VERSION).$$f.txt; \
86              done;\
87         fi
88
89 dist-hook: gen-ChangeLog
90
91 gen_start_date = 2012-03-26T00:00:00
92 .PHONY: gen-ChangeLog
93 gen-ChangeLog:
94         set -e;                                                         \
95         if test -d $(top_srcdir)/.git; then                             \
96           (cd $(top_srcdir) &&                                          \
97             $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
98             --amend=build-aux/git-log-fix                               \
99             --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
100           cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;\
101           rm -f $(distdir)/ChangeLog;                                   \
102           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
103         fi