1
- PACKAGE =qt
2
- $(package)_version =5.12.11
3
- $(package)_download_path =https://download.qt.io/official_releases/qt/5.12 /$($(package ) _version) /submodules
1
+ package =qt
2
+ $(package)_version =5.15.2
3
+ $(package)_download_path =https://download.qt.io/official_releases/qt/5.15 /$($(package ) _version) /submodules
4
4
$(package)_suffix =everywhere-src-$($(package ) _version) .tar.xz
5
5
$(package)_file_name =qtbase-$($(package ) _suffix)
6
- $(package)_sha256_hash =1c1b4e33137ca77881074c140d54c3c9747e845a31338cfe8680f171f0bc3a39
7
- $(package)_linux_dependencies =freetype fontconfig libxcb libxkbcommon
6
+ $(package)_sha256_hash =909fad2591ee367993a75d7e2ea50ad4db332f05e1c38dd7a5a274e156a4e0f8
7
+ $(package)_linux_dependencies =freetype fontconfig libxcb libxkbcommon libxcb_util libxcb_util_render libxcb_util_keysyms libxcb_util_image libxcb_util_wm
8
8
$(package)_qt_libs =corelib network widgets gui plugins testlib concurrent
9
9
$(package)_patches =fix_qt_pkgconfig.patch mac-qmake.conf fix_no_printer.patch no-xlib.patch
10
- $(package)_patches+ = fix_android_qmake_conf.patch fix_android_jni_static.patch dont_hardcode_pwd.patch
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+ = qtbase-moc-ignore-gcc-macro.patch fix_limits_header.patch subdirs.pro
14
- $(package)_patches+ = fix_montery_include.patch
10
+ $(package)_patches += dont_hardcode_x86_64.patch fix_montery_include.patch
11
+ $(package)_patches += fix_android_jni_static.patch dont_hardcode_pwd.patch
12
+ $(package)_patches += qtbase-moc-ignore-gcc-macro.patch fix_limits_header.patch
13
+ $(package)_patches += fix_bigsur_style.patch no_qrhi.patch drop_lrelease_dependency.patch subdirs.pro
15
14
16
15
$(package)_qttranslations_file_name =qttranslations-$($(package ) _suffix)
17
- $(package)_qttranslations_sha256_hash =577b0668a777eb2b451c61e8d026d79285371597ce9df06b6dee6c814164b7c3
16
+ $(package)_qttranslations_sha256_hash =d5788e86257b21d5323f1efd94376a213e091d1e5e03b45a95dd052b5f570db8
18
17
19
18
$(package)_qttools_file_name =qttools-$($(package ) _suffix)
20
- $(package)_qttools_sha256_hash =98b2aaca230458f65996f3534fd471d2ffd038dd58ac997c0589c06dc2385b4f
19
+ $(package)_qttools_sha256_hash =c189d0ce1ff7c739db9a3ace52ac3e24cb8fd6dbf234e49f075249b38f43c1cc
21
20
22
21
# Gridcoin displays SVG images in the GUI:
23
22
$(package)_qtsvg_file_name =qtsvg-$($(package ) _suffix)
24
- $(package)_qtsvg_sha256_hash =7a6857a2f68cfbebb9f791396b401a98e951c9bff9bfeb1b5b01914c3ea1a0ed
23
+ $(package)_qtsvg_sha256_hash =8bc3c2c1bc2671e9c67d4205589a8309b57903721ad14c60ea21a5d06acb585e
25
24
26
25
$(package)_extra_sources = $($(package ) _qttranslations_file_name)
27
26
$(package)_extra_sources += $($(package ) _qttools_file_name)
@@ -33,14 +32,14 @@ $(package)_config_opts_release += -silent
33
32
$(package ) _config_opts_debug = -debug
34
33
$(package ) _config_opts_debug += -optimized-tools
35
34
$(package ) _config_opts += -bindir $(build_prefix ) /bin
36
- $(package ) _config_opts += -c++std c++1z
35
+ $(package ) _config_opts += -c++std c++17
37
36
$(package ) _config_opts += -confirm-license
38
37
$(package ) _config_opts += -hostprefix $(build_prefix )
39
38
$(package ) _config_opts += -no-compile-examples
40
39
$(package ) _config_opts += -no-cups
41
40
$(package ) _config_opts += -no-egl
42
41
$(package ) _config_opts += -no-eglfs
43
- $(package ) _config_opts += -no-freetype
42
+ $(package ) _config_opts += -no-evdev
44
43
$(package ) _config_opts += -no-gif
45
44
$(package ) _config_opts += -no-glib
46
45
$(package ) _config_opts += -no-icu
@@ -55,6 +54,7 @@ $(package)_config_opts += -no-mtdev
55
54
$(package ) _config_opts += -no-openssl
56
55
$(package ) _config_opts += -no-openvg
57
56
$(package ) _config_opts += -no-reduce-relocations
57
+ $(package ) _config_opts += -no-schannel
58
58
$(package ) _config_opts += -no-sctp
59
59
$(package ) _config_opts += -no-securetransport
60
60
$(package ) _config_opts += -no-sql-db2
@@ -68,6 +68,7 @@ $(package)_config_opts += -no-sql-sqlite
68
68
$(package ) _config_opts += -no-sql-sqlite2
69
69
$(package ) _config_opts += -no-system-proxies
70
70
$(package ) _config_opts += -no-use-gold-linker
71
+ $(package ) _config_opts += -no-zstd
71
72
$(package ) _config_opts += -nomake examples
72
73
$(package ) _config_opts += -nomake tests
73
74
$(package ) _config_opts += -opensource
@@ -105,6 +106,7 @@ $(package)_config_opts += -no-feature-sqlmodel
105
106
$(package ) _config_opts += -no-feature-statemachine
106
107
$(package ) _config_opts += -no-feature-syntaxhighlighter
107
108
$(package ) _config_opts += -no-feature-textbrowser
109
+ $(package ) _config_opts += -no-feature-textmarkdownwriter
108
110
$(package ) _config_opts += -no-feature-textodfwriter
109
111
$(package ) _config_opts += -no-feature-topleveldomain
110
112
# Gridcoin uses QUdpSocket for the diagnostics dialog:
@@ -122,6 +124,7 @@ $(package)_config_opts_darwin = -no-dbus
122
124
$(package ) _config_opts_darwin += -no-opengl
123
125
$(package ) _config_opts_darwin += -pch
124
126
$(package ) _config_opts_darwin += -no-feature-corewlan
127
+ $(package ) _config_opts_darwin += -no-freetype
125
128
$(package ) _config_opts_darwin += -device-option QMAKE_MACOSX_DEPLOYMENT_TARGET=$(OSX_MIN_VERSION )
126
129
127
130
ifneq ($(build_os ) ,darwin)
@@ -134,10 +137,12 @@ $(package)_config_opts_darwin += -device-option MAC_TARGET=$(host)
134
137
$(package)_config_opts_darwin += -device-option XCODE_VERSION=$(XCODE_VERSION )
135
138
endif
136
139
137
- # for macOS on Apple Silicon (ARM) see https://bugreports.qt.io/browse/QTBUG-85279
140
+ ifneq ( $( build_arch ) , $( host_arch ) )
138
141
$(package)_config_opts_aarch64_darwin += -device-option QMAKE_APPLE_DEVICE_ARCHS=arm64
142
+ $(package)_config_opts_x86_64_darwin += -device-option QMAKE_APPLE_DEVICE_ARCHS=x86_64
143
+ endif
139
144
140
- $(package ) _config_opts_linux = -qt- xcb
145
+ $(package ) _config_opts_linux = -xcb
141
146
$(package ) _config_opts_linux += -no-xcb-xlib
142
147
$(package ) _config_opts_linux += -no-feature-xlib
143
148
$(package ) _config_opts_linux += -system-freetype
@@ -156,6 +161,7 @@ $(package)_config_opts_s390x_linux = -platform linux-g++ -xplatform bitcoin-linu
156
161
157
162
$(package ) _config_opts_mingw32 = -no-opengl
158
163
$(package ) _config_opts_mingw32 += -no-dbus
164
+ $(package ) _config_opts_mingw32 += -no-freetype
159
165
$(package ) _config_opts_mingw32 += -xplatform win32-g++
160
166
$(package ) _config_opts_mingw32 += "QMAKE_CFLAGS = '$($(package ) _cflags) $($(package ) _cppflags) '"
161
167
$(package ) _config_opts_mingw32 += "QMAKE_CXXFLAGS = '$($(package ) _cflags) $($(package ) _cppflags) '"
@@ -168,7 +174,6 @@ $(package)_config_opts_android = -xplatform android-clang
168
174
$(package ) _config_opts_android += -android-sdk $(ANDROID_SDK )
169
175
$(package ) _config_opts_android += -android-ndk $(ANDROID_NDK )
170
176
$(package ) _config_opts_android += -android-ndk-platform android-$(ANDROID_API_LEVEL )
171
- $(package ) _config_opts_android += -device-option CROSS_COMPILE="$(host ) -"
172
177
$(package ) _config_opts_android += -egl
173
178
$(package ) _config_opts_android += -qpa xcb
174
179
$(package ) _config_opts_android += -no-eglfs
@@ -243,17 +248,16 @@ define $(package)_preprocess_cmds
243
248
rm -f $(BASEDIR ) /.qmake.stash && \
244
249
patch -p1 -i $($(package ) _patch_dir) /drop_lrelease_dependency.patch && \
245
250
patch -p1 -i $($(package ) _patch_dir) /dont_hardcode_pwd.patch && \
251
+ patch -p1 -i $($(package ) _patch_dir) /dont_hardcode_x86_64.patch && \
246
252
patch -p1 -i $($(package ) _patch_dir) /fix_qt_pkgconfig.patch && \
247
253
patch -p1 -i $($(package ) _patch_dir) /fix_no_printer.patch && \
248
- patch -p1 -i $($(package ) _patch_dir) /fix_android_qmake_conf.patch && \
249
254
patch -p1 -i $($(package ) _patch_dir) /fix_android_jni_static.patch && \
250
- patch -p1 -i $($(package ) _patch_dir) /fix_android_pch.patch && \
251
255
patch -p1 -i $($(package ) _patch_dir) /no-xlib.patch && \
252
- patch -p1 -i $($(package ) _patch_dir) /no_sdk_version_check.patch && \
253
- patch -p1 -i $($(package ) _patch_dir) /fix_lib_paths.patch && \
254
256
patch -p1 -i $($(package ) _patch_dir) /qtbase-moc-ignore-gcc-macro.patch && \
255
257
patch -p1 -i $($(package ) _patch_dir) /fix_limits_header.patch && \
256
258
patch -p1 -i $($(package ) _patch_dir) /fix_montery_include.patch && \
259
+ patch -p1 -i $($(package ) _patch_dir) /fix_bigsur_style.patch && \
260
+ patch -p1 -i $($(package ) _patch_dir) /no_qrhi.patch && \
257
261
cp $($(package ) _patch_dir) /subdirs.pro subdirs.pro && \
258
262
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package ) _extract_dir) /qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
259
263
mkdir -p qtbase/mkspecs/macx-clang-linux &&\
@@ -273,6 +277,7 @@ define $(package)_config_cmds
273
277
export PKG_CONFIG_SYSROOT_DIR =/ && \
274
278
export PKG_CONFIG_LIBDIR=$(host_prefix ) /lib/pkgconfig && \
275
279
export PKG_CONFIG_PATH=$(host_prefix ) /share/pkgconfig && \
280
+ export QT_MAC_SDK_NO_VERSION_CHECK=1 && \
276
281
cd qtbase && \
277
282
./configure -top-level $($(package ) _config_opts) && \
278
283
cd .. && \
0 commit comments