11PACKAGE =qt
2- $(package)_version =5.7.1
3- $(package)_download_path =http ://download.qt.io/official_releases/qt/5.7 /$($(package ) _version) /submodules
4- $(package)_suffix =opensource-src-$($(package ) _version) .tar.gz
2+ $(package)_version =5.9.6
3+ $(package)_download_path =https ://download.qt.io/official_releases/qt/5.9 /$($(package ) _version) /submodules
4+ $(package)_suffix =opensource-src-$($(package ) _version) .tar.xz
55$(package)_file_name =qtbase-$($(package ) _suffix)
6- $(package)_sha256_hash =95f83e532d23b3ddbde7973f380ecae1bac13230340557276f75f2e37984e410
6+ $(package)_sha256_hash =eed620cb268b199bd83b3fc6a471c51d51e1dc2dbb5374fc97a0cc75facbe36f
77$(package)_dependencies =openssl zlib
88$(package)_linux_dependencies =freetype fontconfig libxcb libX11 xproto libXext
99$(package)_build_subdir =qtbase
1010$(package)_qt_libs =corelib network widgets gui plugins testlib
11- $(package)_patches =mac-qmake.conf aarch32 -qmake.conf aarch64-qmake.conf mingw-uuidof. patch pidlist_absolute.patch fix-xcb-include-order.patch fix_qt_pkgconfig .patch
11+ $(package)_patches =fix_qt_pkgconfig.patch mac -qmake.conf fix_configure_mac. patch fix_no_printer .patch
1212
1313$(package)_qttranslations_file_name =qttranslations-$($(package ) _suffix)
14- $(package)_qttranslations_sha256_hash =3a15aebd523c6d89fb97b2d3df866c94149653a26d27a00aac9b6d3020bc5a1d
15-
14+ $(package)_qttranslations_sha256_hash =9822084f8e2d2939ba39f4af4c0c2320e45d5996762a9423f833055607604ed8
1615
1716$(package)_qttools_file_name =qttools-$($(package ) _suffix)
18- $(package)_qttools_sha256_hash =22d67de915cb8cd93e16fdd38fa006224ad9170bd217c2be1e53045a8dd02f0f
17+ $(package)_qttools_sha256_hash =50e75417ec0c74bb8b1989d1d8e981ee83690dce7dfc0c2169f7c00f397e5117
1918
2019$(package)_extra_sources = $($(package ) _qttranslations_file_name)
2120$(package)_extra_sources += $($(package ) _qttools_file_name)
@@ -28,25 +27,18 @@ $(package)_config_opts += -c++std c++11
2827$(package ) _config_opts += -confirm-license
2928$(package ) _config_opts += -dbus-runtime
3029$(package ) _config_opts += -hostprefix $(build_prefix )
31- $(package ) _config_opts += -no-alsa
32- $(package ) _config_opts += -no-audio-backend
3330$(package ) _config_opts += -no-cups
3431$(package ) _config_opts += -no-egl
3532$(package ) _config_opts += -no-eglfs
36- $(package ) _config_opts += -no-feature-style-windowsmobile
37- $(package ) _config_opts += -no-feature-style-windowsce
3833$(package ) _config_opts += -no-freetype
3934$(package ) _config_opts += -no-gif
4035$(package ) _config_opts += -no-glib
41- $(package ) _config_opts += -no-gstreamer
4236$(package ) _config_opts += -no-icu
4337$(package ) _config_opts += -no-iconv
4438$(package ) _config_opts += -no-kms
4539$(package ) _config_opts += -no-linuxfb
4640$(package ) _config_opts += -no-libudev
47- $(package ) _config_opts += -no-mitshm
4841$(package ) _config_opts += -no-mtdev
49- $(package ) _config_opts += -no-pulseaudio
5042$(package ) _config_opts += -no-openvg
5143$(package ) _config_opts += -no-reduce-relocations
5244$(package ) _config_opts += -no-qml-debug
@@ -61,7 +53,6 @@ $(package)_config_opts += -no-sql-sqlite
6153$(package ) _config_opts += -no-sql-sqlite2
6254$(package ) _config_opts += -no-use-gold-linker
6355$(package ) _config_opts += -no-xinput2
64- $(package ) _config_opts += -no-xrender
6556$(package ) _config_opts += -nomake examples
6657$(package ) _config_opts += -nomake tests
6758$(package ) _config_opts += -opensource
@@ -74,12 +65,13 @@ $(package)_config_opts += -qt-libpng
7465$(package ) _config_opts += -qt-libjpeg
7566$(package ) _config_opts += -qt-pcre
7667$(package ) _config_opts += -system-zlib
77- $(package ) _config_opts += -reduce-exports
7868$(package ) _config_opts += -static
7969$(package ) _config_opts += -silent
8070$(package ) _config_opts += -v
8171$(package ) _config_opts += -no-feature-printer
8272$(package ) _config_opts += -no-feature-printdialog
73+ $(package ) _config_opts += -no-feature-concurrent
74+ $(package ) _config_opts += -no-feature-xml
8375
8476ifneq ($(build_os ) ,darwin)
8577$(package)_config_opts_darwin = -xplatform macx-clang-linux
@@ -94,12 +86,13 @@ endif
9486$(package ) _config_opts_linux = -qt-xkbcommon
9587$(package ) _config_opts_linux += -qt-xcb
9688$(package ) _config_opts_linux += -system-freetype
97- $(package ) _config_opts_linux += -no-sm
89+ $(package ) _config_opts_linux += -no-feature-sessionmanager
9890$(package ) _config_opts_linux += -fontconfig
9991$(package ) _config_opts_linux += -no-opengl
10092$(package ) _config_opts_arm_linux = -platform linux-g++ -xplatform $(host )
10193$(package ) _config_opts_aarch64_linux = -platform linux-g++ -xplatform $(host )
10294$(package ) _config_opts_i686_linux = -xplatform linux-g++-32
95+ $(package ) _config_opts_x86_64_linux = -xplatform linux-g++-64
10396$(package ) _config_opts_mingw32 = -no-opengl -xplatform win32-g++ -device-option CROSS_COMPILE="$(host ) -"
10497$(package ) _build_env = QT_RCC_TEST=1
10598endef
@@ -124,11 +117,10 @@ define $(package)_extract_cmds
124117 tar --strip-components=1 -xf $($(package ) _source_dir) /$($(package ) _qttools_file_name) -C qttools
125118endef
126119
127-
128120define $(package)_preprocess_cmds
129121 sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package ) _extract_dir) /qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
130122 sed -i.old "/updateqm.depends =/d" qttranslations/translations/translations.pro && \
131- sed -i.old "s/src_plugins.depends = src_sql src_xml src_network/src_plugins.depends = src_xml src_network/" qtbase/src/src.pro && \
123+ sed -i.old "s/src_plugins.depends = src_sql src_network/src_plugins.depends = src_network/" qtbase/src/src.pro && \
132124 sed -i.old "s|X11/extensions/XIproto.h|X11/X.h|" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \
133125 sed -i.old 's/if \[ "$$$$XPLATFORM_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/if \[ "$$$$BUILD_ON_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/' qtbase/configure && \
134126 sed -i.old 's/CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, 0 ) /CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, kCGMouseButtonLeft ) /' qtbase/src/plugins/platforms/cocoa/qcocoacursor.mm && \
@@ -137,6 +129,10 @@ define $(package)_preprocess_cmds
137129 cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\
138130 cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
139131 cp -f $($(package ) _patch_dir) /mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
132+ patch -p1 -i $($(package ) _patch_dir) /fix_qt_pkgconfig.patch &&\
133+ patch -p1 -i $($(package ) _patch_dir) /fix_configure_mac.patch &&\
134+ patch -p1 -i $($(package ) _patch_dir) /fix_no_printer.patch &&\
135+ patch -p1 -i $($(package ) _patch_dir) /qfixed-coretext.patch &&\
140136 mkdir -p qtbase/mkspecs/arm-linux-gnueabihf &&\
141137 cp -f qtbase/mkspecs/linux-arm-gnueabi-g++/qplatformdefs.h qtbase/mkspecs/arm-linux-gnueabihf/ &&\
142138 cp -f $($(package ) _patch_dir) /aarch32-qmake.conf qtbase/mkspecs/arm-linux-gnueabihf/qmake.conf &&\
@@ -150,10 +146,11 @@ define $(package)_preprocess_cmds
150146 echo "!host_build: QMAKE_CFLAGS += $($(package ) _cflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
151147 echo "!host_build: QMAKE_CXXFLAGS += $($(package ) _cxxflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
152148 echo "!host_build: QMAKE_LFLAGS += $($(package ) _ldflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
149+ echo "QMAKE_LINK_OBJECT_MAX = 10" >> qtbase/mkspecs/win32-g++/qmake.conf &&\
150+ echo "QMAKE_LINK_OBJECT_SCRIPT = object_script" >> qtbase/mkspecs/win32-g++/qmake.conf &&\
153151 sed -i.old "s|QMAKE_CFLAGS = |!host_build: QMAKE_CFLAGS = $($(package ) _cflags) $($(package ) _cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
154152 sed -i.old "s|QMAKE_LFLAGS = |!host_build: QMAKE_LFLAGS = $($(package ) _ldflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
155153 sed -i.old "s|QMAKE_CXXFLAGS = |!host_build: QMAKE_CXXFLAGS = $($(package ) _cxxflags) $($(package ) _cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf
156-
157154endef
158155
159156define $(package)_config_cmds
@@ -165,19 +162,22 @@ define $(package)_config_cmds
165162 echo "CONFIG += force_bootstrap" >> mkspecs/qconfig.pri && \
166163 $(MAKE ) sub-src-clean && \
167164 cd ../qttranslations && ../qtbase/bin/qmake qttranslations.pro -o Makefile && \
168- cd translations && ../../qtbase/bin/qmake translations.pro -o Makefile && cd ../.. &&\
169- cd qttools/src/linguist/lrelease/ && ../../../../qtbase/bin/qmake lrelease.pro -o Makefile
165+ cd translations && ../../qtbase/bin/qmake translations.pro -o Makefile && cd ../.. && \
166+ cd qttools/src/linguist/lrelease/ && ../../../../qtbase/bin/qmake lrelease.pro -o Makefile && \
167+ cd ../lupdate/ && ../../../../qtbase/bin/qmake lupdate.pro -o Makefile && cd ../../../..
170168endef
171169
172170define $(package)_build_cmds
173171 $(MAKE ) -C src $(addprefix sub-,$($(package ) _qt_libs) ) && \
174172 $(MAKE ) -C ../qttools/src/linguist/lrelease && \
173+ $(MAKE ) -C ../qttools/src/linguist/lupdate && \
175174 $(MAKE ) -C ../qttranslations
176175endef
177176
178177define $(package)_stage_cmds
179- $(MAKE ) -C src INSTALL_ROOT=$($(package ) _staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package ) _qt_libs) ) ) && cd .. &&\
178+ $(MAKE ) -C src INSTALL_ROOT=$($(package ) _staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package ) _qt_libs) ) ) && cd .. && \
180179 $(MAKE ) -C qttools/src/linguist/lrelease INSTALL_ROOT=$($(package ) _staging_dir) install_target && \
180+ $(MAKE ) -C qttools/src/linguist/lupdate INSTALL_ROOT=$($(package ) _staging_dir) install_target && \
181181 $(MAKE ) -C qttranslations INSTALL_ROOT=$($(package ) _staging_dir) install_subtargets && \
182182 if `test -f qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a`; then \
183183 cp qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a $($(package ) _staging_prefix_dir) /lib; \
0 commit comments