From cf8f74e9b8546c44f594243f61f36c5cc9cfa826 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20M=C3=BCllenhaupt?= <mm+git@netlair.de>
Date: Wed, 26 Sep 2018 13:54:57 +0200
Subject: new package: qtifw

---
 src/qtifw-1-fixes.patch | 76 +++++++++++++++++++++++++++++++++++++++++++++++++
 src/qtifw.mk            | 30 +++++++++++++++++++
 2 files changed, 106 insertions(+)
 create mode 100644 src/qtifw-1-fixes.patch
 create mode 100644 src/qtifw.mk

diff --git a/src/qtifw-1-fixes.patch b/src/qtifw-1-fixes.patch
new file mode 100644
index 0000000..5ac58c6
--- /dev/null
+++ b/src/qtifw-1-fixes.patch
@@ -0,0 +1,76 @@
+This file is part of MXE. See LICENSE.md for licensing information.
+
+diff --git a/installerfw.pro b/installerfw.pro
+index 10414ad5..1cec9c6a 100644
+--- a/installerfw.pro
++++ b/installerfw.pro
+@@ -2,8 +2,6 @@ TEMPLATE = subdirs
+ SUBDIRS += src tools
+ tools.depends = src
+ 
+-requires(!cross_compile)
+-
+ include (installerfw.pri)
+ include (doc/doc.pri)
+ 
+diff --git a/src/libs/7zip/win/CPP/Windows/SecurityUtils.h b/src/libs/7zip/win/CPP/Windows/SecurityUtils.h
+index 715de250..bfb65a34 100644
+--- a/src/libs/7zip/win/CPP/Windows/SecurityUtils.h
++++ b/src/libs/7zip/win/CPP/Windows/SecurityUtils.h
+@@ -3,7 +3,7 @@
+ #ifndef __WINDOWS_SECURITY_UTILS_H
+ #define __WINDOWS_SECURITY_UTILS_H
+ 
+-#include <NTSecAPI.h>
++#include <ntsecapi.h>
+ 
+ #include "Defs.h"
+ 
+diff --git a/src/libs/installer/createshortcutoperation.cpp b/src/libs/installer/createshortcutoperation.cpp
+index 2c2e96ef..36f97b0c 100644
+--- a/src/libs/installer/createshortcutoperation.cpp
++++ b/src/libs/installer/createshortcutoperation.cpp
+@@ -41,7 +41,7 @@ using namespace QInstaller;
+ #ifdef Q_OS_WIN
+ #include <qt_windows.h>
+ #include <shlobj.h>
+-#include <Intshcut.h>
++#include <intshcut.h>
+ 
+ #ifndef PIDLIST_ABSOLUTE
+ typedef ITEMIDLIST *PIDLIST_ABSOLUTE;
+diff --git a/src/libs/installer/binaryformat.h b/src/libs/installer/binaryformat.h
+index 3bd8a6aa..87d5e323 100644
+--- a/src/libs/installer/binaryformat.h
++++ b/src/libs/installer/binaryformat.h
+@@ -33,7 +33,7 @@
+ #include "range.h"
+ 
+ #include <QCoreApplication>
+-#include <QtCore/private/qfsfileengine_p.h>
++#include <QtCore/QFile>
+ #include <QList>
+ #include <QSharedPointer>
+ 
+@@ -81,7 +81,7 @@ private:
+     void setOpenMode(OpenMode mode) { QIODevice::setOpenMode(mode); }
+ 
+ private:
+-    QFSFileEngine m_file;
++    QFile m_file;
+     QByteArray m_name;
+     Range<qint64> m_segment;
+ };
+diff --git a/src/libs/installer/extractarchiveoperation_p.h b/src/libs/installer/extractarchiveoperation_p.h
+index f333da36..9f528b6a 100644
+--- a/src/libs/installer/extractarchiveoperation_p.h
++++ b/src/libs/installer/extractarchiveoperation_p.h
+@@ -37,6 +37,8 @@
+ 
+ #include <QRunnable>
+ #include <QThread>
++#include <QFileInfo>
++#include <QDir>
+ 
+ namespace QInstaller {
+ 
diff --git a/src/qtifw.mk b/src/qtifw.mk
new file mode 100644
index 0000000..e763c47
--- /dev/null
+++ b/src/qtifw.mk
@@ -0,0 +1,30 @@
+# This file is part of MXE. See LICENSE.md for licensing information.
+
+PKG             := qtifw
+$(PKG)_WEBSITE  := https://doc.qt.io/qtinstallerframework/index.html
+$(PKG)_DESCR    := Qt Installer Framework
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 3.0.4
+$(PKG)_CHECKSUM := a4ecafc37086f96a833463214f873caac977199e64f0b1453aa49bdd6f24f32e
+$(PKG)_SUBDIR    = qt-installer-framework-opensource-src-$($(PKG)_VERSION)
+$(PKG)_FILE     := $($(PKG)_SUBDIR).zip
+$(PKG)_URL      := https://download.qt.io/official_releases/qt-installer-framework/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS     := cc qtwinextras
+$(PKG)_DEPS_$(BUILD) :=
+$(PKG)_TARGETS  := $(BUILD) i686-w64-mingw32.static.posix
+
+define $(PKG)_BUILD_$(BUILD)
+    cd '$(1)' && qmake
+    $(MAKE) -C '$(1)' -j '$(JOBS)'
+    $(INSTALL) -m755 '$(1)/bin/binarycreator' '$(PREFIX)/bin/$(TARGET)-binarycreator'
+    $(INSTALL) -m755 '$(1)/bin/repogen' '$(PREFIX)/bin/$(TARGET)-repogen'
+    $(INSTALL) -m755 '$(1)/bin/archivegen' '$(PREFIX)/bin/$(TARGET)-archivegen'
+    $(INSTALL) -m755 '$(1)/bin/devtool' '$(PREFIX)/bin/$(TARGET)-devtool'
+endef
+
+define $(PKG)_BUILD
+    cd '$(1)' && '$(PREFIX)/$(TARGET)/qt5/bin/qmake'
+    $(MAKE) -C '$(1)' -j '$(JOBS)' || $(MAKE) -C '$(1)' -j  1
+    $(MAKE) -C '$(1)' -j 1 install
+endef
+
-- 
cgit v0.12