2018-09-26 12:54:57 +01:00
|
|
|
# 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 :=
|
2019-08-06 14:16:05 +01:00
|
|
|
$(PKG)_VERSION := 3.1.1
|
|
|
|
$(PKG)_CHECKSUM := 59b5370aaf521bb1a34a025ac451bb3bbbfa519ee271156aba9d42ee1132d1b1
|
|
|
|
# the archive is in fact only a tar file, not a tar.gz
|
|
|
|
$(PKG)_FILE := qtifw-$($(PKG)_VERSION).tar
|
|
|
|
$(PKG)_URL := https://download.qt.io/official_releases/qt-installer-framework/$($(PKG)_VERSION)/qt-installer-framework-opensource-src-$($(PKG)_VERSION).tar.gz
|
2019-01-11 03:53:33 +00:00
|
|
|
$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS)
|
2018-09-26 12:54:57 +01:00
|
|
|
|
2019-02-23 00:24:09 +00:00
|
|
|
$(PKG)_DEPS_$(BUILD) := cc qtbase qttools
|
|
|
|
$(PKG)_DEPS_STATIC := $($(PKG)_DEPS_$(BUILD)) qtwinextras $(BUILD)~$(PKG)
|
|
|
|
|
2018-09-26 12:54:57 +01:00
|
|
|
define $(PKG)_BUILD_$(BUILD)
|
2018-11-22 14:24:16 +00:00
|
|
|
cd '$(1)' && $(TARGET)-qmake-qt5
|
2018-09-26 12:54:57 +01:00
|
|
|
$(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
|
|
|
|
|
2019-01-11 03:53:33 +00:00
|
|
|
# only makes sense for static builds
|
|
|
|
define $(PKG)_BUILD_STATIC
|
2018-09-26 12:54:57 +01:00
|
|
|
cd '$(1)' && '$(PREFIX)/$(TARGET)/qt5/bin/qmake'
|
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)' || $(MAKE) -C '$(1)' -j 1
|
|
|
|
$(MAKE) -C '$(1)' -j 1 install
|
2019-08-06 14:16:05 +01:00
|
|
|
|
2019-10-13 10:30:22 +01:00
|
|
|
# build the tutorial installer in /tmp, because the binarycreator internal
|
|
|
|
# rename will fail if /tmp is not in the same filesystem as mxe
|
|
|
|
cd '$(1)examples/tutorial' && \
|
|
|
|
'$(PREFIX)/bin/$(BUILD)-binarycreator' \
|
|
|
|
-c config/config.xml \
|
|
|
|
-p packages \
|
|
|
|
-t '$(PREFIX)/$(TARGET)/qt5/bin/installerbase.exe' \
|
|
|
|
'/tmp/test-$(PKG)-tutorialinstaller.exe' && \
|
|
|
|
mv '/tmp/test-$(PKG)-tutorialinstaller.exe'* '$(PREFIX)/$(TARGET)/bin/'
|
2018-09-26 12:54:57 +01:00
|
|
|
endef
|