1
1
PACKAGE =qt
2
- $(package)_version =5.9.8
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
2
+ $(package)_version =5.12.10
3
+ $(package)_download_path =https://download.qt.io/official_releases/qt/5.12 /$($(package ) _version) /submodules
4
+ $(package)_suffix =everywhere -src-$($(package ) _version) .tar.xz
5
5
$(package)_file_name =qtbase-$($(package ) _suffix)
6
- $(package)_sha256_hash =9b9dec1f67df1f94bce2955c5604de992d529dde72050239154c56352da0907d
7
- $(package)_dependencies =zlib
8
- $(package)_linux_dependencies =freetype fontconfig libxcb
6
+ $(package)_sha256_hash =8088f174e6d28e779516c083b6087b6a9e3c8322b4bc161fd1b54195e3c86940
7
+ $(package)_linux_dependencies =freetype fontconfig libxcb libxkbcommon
9
8
$(package)_qt_libs =corelib network widgets gui plugins testlib concurrent
10
- $(package)_patches =fix_qt_pkgconfig.patch mac-qmake.conf fix_configure_mac.patch fix_no_printer.patch
11
- $(package)_patches+ = fix_rcc_determinism.patch fix_riscv64_arch.patch xkb-default.patch no-xlib.patch
9
+ $(package)_patches =fix_qt_pkgconfig.patch mac-qmake.conf fix_no_printer.patch no-xlib.patch
12
10
$(package)_patches+ = fix_android_qmake_conf.patch fix_android_jni_static.patch dont_hardcode_pwd.patch
13
- $(package)_patches+ = freetype_back_compat.patch drop_lrelease_dependency.patch fix_powerpc_libpng.patch
14
- $(package)_patches+ = fix_mingw_cross_compile.patch fix_qpainter_non_determinism.patch subdirs.pro
11
+ $(package)_patches+ = drop_lrelease_dependency.patch no_sdk_version_check.patch
12
+ $(package)_patches+ = fix_lib_paths.patch fix_android_pch.patch
13
+ $(package)_patches+ = fix_bigsur_drawing.patch qtbase-moc-ignore-gcc-macro.patch subdirs.pro
15
14
16
15
$(package)_qttranslations_file_name =qttranslations-$($(package ) _suffix)
17
- $(package)_qttranslations_sha256_hash =fb5a47799754af73d3bf501fe513342cfe2fc37f64e80df5533f6110e804220c
16
+ $(package)_qttranslations_sha256_hash =e1de58ed108b7e0a138815ea60fd46a2c4e1fc31396a707e5630e92de79c53de
18
17
19
18
$(package)_qttools_file_name =qttools-$($(package ) _suffix)
20
- $(package)_qttools_sha256_hash =a97556eb7b2f30252cdd8a598c396cfce2b2f79d2bae883af6d3b26a2cdcc63c
19
+ $(package)_qttools_sha256_hash =b0cfa6e7aac41b7c61fc59acc04843d7a98f9e1840370611751bcfc1834a636c
21
20
22
21
# Gridcoin uses charts for the voting features:
23
22
$(package)_qtcharts_file_name =qtcharts-$($(package ) _suffix)
24
- $(package)_qtcharts_sha256_hash =a75f89c0081af9635b50cab335a4871d476b36abc8a11dc4f24724bd3cf42437
23
+ $(package)_qtcharts_sha256_hash =ac297e27844d3193205db02a22d68a9af7d79f416891617f9389ba4d29aacd32
25
24
26
25
# Gridcoin displays SVG images in the GUI:
27
26
$(package)_qtsvg_file_name =qtsvg-$($(package ) _suffix)
28
- $(package)_qtsvg_sha256_hash =c15d0c4ed93b168a6473749dd70cb04b3cc8e8af584447f2701be4cf2f11c5db
27
+ $(package)_qtsvg_sha256_hash =b5fff4cfe158e17cb3f182c521aa6385f56e158b816d6dff1de915213cfa334b
29
28
30
29
$(package)_extra_sources = $($(package ) _qttranslations_file_name)
31
30
$(package)_extra_sources += $($(package ) _qttools_file_name)
@@ -34,7 +33,9 @@ $(package)_extra_sources += $($(package)_qtsvg)
34
33
35
34
define $(package)_set_vars
36
35
$(package ) _config_opts_release = -release
36
+ $(package ) _config_opts_release += -silent
37
37
$(package ) _config_opts_debug = -debug
38
+ $(package ) _config_opts_debug += -optimized-tools
38
39
$(package ) _config_opts += -bindir $(build_prefix ) /bin
39
40
$(package ) _config_opts += -c++std c++1z
40
41
$(package ) _config_opts += -confirm-license
@@ -58,7 +59,6 @@ $(package)_config_opts += -no-mtdev
58
59
$(package ) _config_opts += -no-openssl
59
60
$(package ) _config_opts += -no-openvg
60
61
$(package ) _config_opts += -no-reduce-relocations
61
- $(package ) _config_opts += -no-qml-debug
62
62
$(package ) _config_opts += -no-sctp
63
63
$(package ) _config_opts += -no-securetransport
64
64
$(package ) _config_opts += -no-sql-db2
@@ -72,19 +72,16 @@ $(package)_config_opts += -no-sql-sqlite
72
72
$(package ) _config_opts += -no-sql-sqlite2
73
73
$(package ) _config_opts += -no-system-proxies
74
74
$(package ) _config_opts += -no-use-gold-linker
75
- $(package ) _config_opts += -no-xinput2
76
75
$(package ) _config_opts += -nomake examples
77
76
$(package ) _config_opts += -nomake tests
78
77
$(package ) _config_opts += -opensource
79
- $(package ) _config_opts += -optimized-tools
80
78
$(package ) _config_opts += -pkg-config
81
79
$(package ) _config_opts += -prefix $(host_prefix )
82
80
$(package ) _config_opts += -qt-libpng
83
81
$(package ) _config_opts += -qt-pcre
84
82
$(package ) _config_opts += -qt-harfbuzz
85
- $(package ) _config_opts += -system -zlib
83
+ $(package ) _config_opts += -qt -zlib
86
84
$(package ) _config_opts += -static
87
- $(package ) _config_opts += -silent
88
85
$(package ) _config_opts += -v
89
86
$(package ) _config_opts += -no-feature-bearermanagement
90
87
$(package ) _config_opts += -no-feature-colordialog
@@ -105,11 +102,10 @@ $(package)_config_opts += -no-feature-printdialog
105
102
$(package ) _config_opts += -no-feature-printer
106
103
$(package ) _config_opts += -no-feature-printpreviewdialog
107
104
$(package ) _config_opts += -no-feature-printpreviewwidget
108
- # Gridcoin uses QRegularExpression:
109
- # $(package)_config_opts += -no-feature-regularexpression
110
105
$(package ) _config_opts += -no-feature-sessionmanager
111
106
$(package ) _config_opts += -no-feature-socks5
112
107
$(package ) _config_opts += -no-feature-sql
108
+ $(package ) _config_opts += -no-feature-sqlmodel
113
109
$(package ) _config_opts += -no-feature-statemachine
114
110
$(package ) _config_opts += -no-feature-syntaxhighlighter
115
111
$(package ) _config_opts += -no-feature-textbrowser
@@ -129,6 +125,8 @@ $(package)_config_opts += -no-feature-xml
129
125
$(package ) _config_opts_darwin = -no-dbus
130
126
$(package ) _config_opts_darwin += -no-opengl
131
127
$(package ) _config_opts_darwin += -pch
128
+ $(package ) _config_opts_darwin += -no-feature-corewlan
129
+ $(package ) _config_opts_darwin += -device-option QMAKE_MACOSX_DEPLOYMENT_TARGET=$(OSX_MIN_VERSION )
132
130
133
131
ifneq ($(build_os ) ,darwin)
134
132
$(package)_config_opts_darwin += -xplatform macx-clang-linux
@@ -143,13 +141,13 @@ endif
143
141
# for macOS on Apple Silicon (ARM) see https://bugreports.qt.io/browse/QTBUG-85279
144
142
$(package ) _config_opts_arm_darwin += -device-option QMAKE_APPLE_DEVICE_ARCHS=arm64
145
143
146
- $(package ) _config_opts_linux = -qt-xkbcommon-x11
147
- $(package ) _config_opts_linux += -qt-xcb
144
+ $(package ) _config_opts_linux = -qt-xcb
148
145
$(package ) _config_opts_linux += -no-xcb-xlib
149
146
$(package ) _config_opts_linux += -no-feature-xlib
150
147
$(package ) _config_opts_linux += -system-freetype
151
148
$(package ) _config_opts_linux += -fontconfig
152
149
$(package ) _config_opts_linux += -no-opengl
150
+ $(package ) _config_opts_linux += -no-feature-vulkan
153
151
$(package ) _config_opts_linux += -dbus-runtime
154
152
$(package ) _config_opts_arm_linux += -platform linux-g++ -xplatform bitcoin-linux-g++
155
153
$(package ) _config_opts_i686_linux = -xplatform linux-g++-32
@@ -163,6 +161,9 @@ $(package)_config_opts_s390x_linux = -platform linux-g++ -xplatform bitcoin-linu
163
161
$(package ) _config_opts_mingw32 = -no-opengl
164
162
$(package ) _config_opts_mingw32 += -no-dbus
165
163
$(package ) _config_opts_mingw32 += -xplatform win32-g++
164
+ $(package ) _config_opts_mingw32 += "QMAKE_CFLAGS = '$($(package ) _cflags) $($(package ) _cppflags) '"
165
+ $(package ) _config_opts_mingw32 += "QMAKE_CXXFLAGS = '$($(package ) _cflags) $($(package ) _cppflags) '"
166
+ $(package ) _config_opts_mingw32 += "QMAKE_LFLAGS = '$($(package ) _ldflags) '"
166
167
$(package ) _config_opts_mingw32 += -device-option CROSS_COMPILE="$(host ) -"
167
168
$(package ) _config_opts_mingw32 += -pch
168
169
@@ -181,13 +182,13 @@ $(package)_config_opts_android += -no-fontconfig
181
182
$(package ) _config_opts_android += -L $(host_prefix ) /lib
182
183
$(package ) _config_opts_android += -I $(host_prefix ) /include
183
184
$(package ) _config_opts_android += -pch
185
+ $(package ) _config_opts_android += -no-feature-vulkan
184
186
185
187
$(package ) _config_opts_aarch64_android += -android-arch arm64-v8a
186
188
$(package ) _config_opts_armv7a_android += -android-arch armeabi-v7a
187
189
$(package ) _config_opts_x86_64_android += -android-arch x86_64
188
190
$(package ) _config_opts_i686_android += -android-arch i686
189
191
190
- $(package ) _build_env = QT_RCC_TEST=1
191
192
$(package ) _build_env += QT_RCC_SOURCE_DATE_OVERRIDE=1
192
193
endef
193
194
@@ -247,21 +248,18 @@ endef
247
248
# CROSS_LIBRARY_PATH. See #15277.
248
249
define $(package)_preprocess_cmds
249
250
rm -f $(BASEDIR ) /.qmake.stash && \
250
- patch -p1 -i $($(package ) _patch_dir) /freetype_back_compat.patch && \
251
- patch -p1 -i $($(package ) _patch_dir) /fix_powerpc_libpng.patch && \
252
251
patch -p1 -i $($(package ) _patch_dir) /drop_lrelease_dependency.patch && \
253
252
patch -p1 -i $($(package ) _patch_dir) /dont_hardcode_pwd.patch && \
254
253
patch -p1 -i $($(package ) _patch_dir) /fix_qt_pkgconfig.patch && \
255
- patch -p1 -i $($(package ) _patch_dir) /fix_configure_mac.patch && \
256
254
patch -p1 -i $($(package ) _patch_dir) /fix_no_printer.patch && \
257
- patch -p1 -i $($(package ) _patch_dir) /fix_rcc_determinism.patch && \
258
- patch -p1 -i $($(package ) _patch_dir) /xkb-default.patch && \
259
255
patch -p1 -i $($(package ) _patch_dir) /fix_android_qmake_conf.patch && \
260
256
patch -p1 -i $($(package ) _patch_dir) /fix_android_jni_static.patch && \
261
- patch -p1 -i $($(package ) _patch_dir) /fix_riscv64_arch .patch && \
257
+ patch -p1 -i $($(package ) _patch_dir) /fix_android_pch .patch && \
262
258
patch -p1 -i $($(package ) _patch_dir) /no-xlib.patch && \
263
- patch -p1 -i $($(package ) _patch_dir) /fix_mingw_cross_compile.patch && \
264
- patch -p1 -i $($(package ) _patch_dir) /fix_qpainter_non_determinism.patch &&\
259
+ patch -p1 -i $($(package ) _patch_dir) /no_sdk_version_check.patch && \
260
+ patch -p1 -i $($(package ) _patch_dir) /fix_lib_paths.patch && \
261
+ patch -p1 -i $($(package ) _patch_dir) /fix_bigsur_drawing.patch && \
262
+ patch -p1 -i $($(package ) _patch_dir) /qtbase-moc-ignore-gcc-macro.patch && \
265
263
cp $($(package ) _patch_dir) /subdirs.pro subdirs.pro && \
266
264
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package ) _extract_dir) /qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
267
265
mkdir -p qtbase/mkspecs/macx-clang-linux &&\
@@ -272,11 +270,8 @@ define $(package)_preprocess_cmds
272
270
echo "!host_build: QMAKE_CFLAGS += $($(package ) _cflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
273
271
echo "!host_build: QMAKE_CXXFLAGS += $($(package ) _cxxflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
274
272
echo "!host_build: QMAKE_LFLAGS += $($(package ) _ldflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
275
- sed -i.old "s|QMAKE_CFLAGS += |!host_build: QMAKE_CFLAGS = $($(package ) _cflags) $($(package ) _cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
276
- sed -i.old "s|QMAKE_CXXFLAGS += |!host_build: QMAKE_CXXFLAGS = $($(package ) _cxxflags) $($(package ) _cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
277
- sed -i.old "0,/^QMAKE_LFLAGS_/s|^QMAKE_LFLAGS_|!host_build: QMAKE_LFLAGS = $($(package ) _ldflags) \n&|" qtbase/mkspecs/win32-g++/qmake.conf && \
278
- sed -i.old "s|QMAKE_CC = clang|QMAKE_CC = $($(package ) _cc) |" qtbase/mkspecs/common/clang.conf && \
279
- sed -i.old "s|QMAKE_CXX = clang++|QMAKE_CXX = $($(package ) _cxx) |" qtbase/mkspecs/common/clang.conf && \
273
+ sed -i.old "s|QMAKE_CC = \$$$$\$$$${CROSS_COMPILE}clang|QMAKE_CC = $($(package ) _cc) |" qtbase/mkspecs/common/clang.conf && \
274
+ sed -i.old "s|QMAKE_CXX = \$$$$\$$$${CROSS_COMPILE}clang++|QMAKE_CXX = $($(package ) _cxx) |" qtbase/mkspecs/common/clang.conf && \
280
275
sed -i.old "s/LIBRARY_PATH/(CROSS_)?\0/g" qtbase/mkspecs/features/toolchain.prf
281
276
endef
282
277
@@ -286,15 +281,14 @@ define $(package)_config_cmds
286
281
export PKG_CONFIG_PATH=$(host_prefix ) /share/pkgconfig && \
287
282
cd qtbase && \
288
283
./configure -top-level $($(package ) _config_opts) && \
289
- echo "host_build: QT_CONFIG ~= s/system-zlib/zlib" >> mkspecs/qconfig.pri && \
290
- echo "CONFIG += force_bootstrap" >> mkspecs/qconfig.pri && \
291
284
cd .. && \
292
285
qtbase/bin/qmake -o qtbase/Makefile qtbase/qtbase.pro && \
293
286
$(MAKE ) -C qtbase sub-src-clean && \
294
287
qtbase/bin/qmake -o qttranslations/Makefile qttranslations/qttranslations.pro && \
295
288
qtbase/bin/qmake -o qttranslations/translations/Makefile qttranslations/translations/translations.pro && \
296
289
qtbase/bin/qmake -o qttools/src/linguist/lrelease/Makefile qttools/src/linguist/lrelease/lrelease.pro && \
297
290
qtbase/bin/qmake -o qttools/src/linguist/lupdate/Makefile qttools/src/linguist/lupdate/lupdate.pro && \
291
+ qtbase/bin/qmake -o qttools/src/linguist/lconvert/Makefile qttools/src/linguist/lconvert/lconvert.pro && \
298
292
qtbase/bin/qmake -o qtcharts/src/charts/Makefile qtcharts/src/charts/charts.pro && \
299
293
qtbase/bin/qmake -o qtsvg/src/Makefile qtsvg/src/src.pro
300
294
endef
@@ -304,6 +298,7 @@ define $(package)_build_cmds
304
298
$(MAKE ) -C qtbase/src $(addprefix sub-,$($(package ) _qt_libs) ) && \
305
299
$(MAKE ) -C qttools/src/linguist/lrelease && \
306
300
$(MAKE ) -C qttools/src/linguist/lupdate && \
301
+ $(MAKE ) -C qttools/src/linguist/lconvert && \
307
302
$(MAKE ) -C qttranslations && \
308
303
$(MAKE ) -C qtcharts/src/charts && \
309
304
$(MAKE ) -C qtsvg/src \
@@ -315,6 +310,7 @@ define $(package)_stage_cmds
315
310
$(MAKE ) -C qtbase/src INSTALL_ROOT=$($(package ) _staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package ) _qt_libs) ) ) && \
316
311
$(MAKE ) -C qttools/src/linguist/lrelease INSTALL_ROOT=$($(package ) _staging_dir) install_target && \
317
312
$(MAKE ) -C qttools/src/linguist/lupdate INSTALL_ROOT=$($(package ) _staging_dir) install_target && \
313
+ $(MAKE ) -C qttools/src/linguist/lconvert INSTALL_ROOT=$($(package ) _staging_dir) install_target && \
318
314
$(MAKE ) -C qttranslations INSTALL_ROOT=$($(package ) _staging_dir) install_subtargets && \
319
315
$(MAKE ) -C qtcharts/src/charts INSTALL_ROOT=$($(package ) _staging_dir) install && \
320
316
$(MAKE ) -C qtsvg/src INSTALL_ROOT=$($(package ) _staging_dir) install \
0 commit comments