1
1
PACKAGE =qt
2
- $(package)_version =5.6 .1
3
- $(package)_download_path =http://download.qt.io/official_releases/qt/5.6 /$($(package ) _version) /submodules
2
+ $(package)_version =5.7 .1
3
+ $(package)_download_path =http://download.qt.io/official_releases/qt/5.7 /$($(package ) _version) /submodules
4
4
$(package)_suffix =opensource-src-$($(package ) _version) .tar.gz
5
5
$(package)_file_name =qtbase-$($(package ) _suffix)
6
- $(package)_sha256_hash =0ac67cf8d66d52b995f96c31c4b48117a1afb3db99eaa93e20ccd8f7f55f7fde
7
- $(package)_dependencies =openssl
6
+ $(package)_sha256_hash =95f83e532d23b3ddbde7973f380ecae1bac13230340557276f75f2e37984e410
7
+ $(package)_dependencies =openssl zlib
8
8
$(package)_linux_dependencies =freetype fontconfig libxcb libX11 xproto libXext
9
9
$(package)_build_subdir =qtbase
10
10
$(package)_qt_libs =corelib network widgets gui plugins testlib
11
11
$(package)_patches =mac-qmake.conf mingw-uuidof.patch pidlist_absolute.patch fix-xcb-include-order.patch fix_qt_pkgconfig.patch
12
12
13
13
$(package)_qttranslations_file_name =qttranslations-$($(package ) _suffix)
14
- $(package)_qttranslations_sha256_hash =dcc1534d247babca1840cb6d0a000671801a341ea352d0535474f86adadaf028
14
+ $(package)_qttranslations_sha256_hash =3a15aebd523c6d89fb97b2d3df866c94149653a26d27a00aac9b6d3020bc5a1d
15
15
16
16
$(package)_qttools_file_name =qttools-$($(package ) _suffix)
17
- $(package)_qttools_sha256_hash =e0f845de28c31230dfa428f0190ccb3b91d1fc02481b1f064698ae4ef8376aa1
17
+ $(package)_qttools_sha256_hash =22d67de915cb8cd93e16fdd38fa006224ad9170bd217c2be1e53045a8dd02f0f
18
18
19
19
$(package)_extra_sources = $($(package ) _qttranslations_file_name)
20
20
$(package)_extra_sources += $($(package ) _qttools_file_name)
21
21
22
22
define $(package)_set_vars
23
23
$(package ) _config_opts_release = -release
24
- $(package ) _config_opts_debug = -debug
24
+ $(package ) _config_opts_debug = -debug
25
25
$(package ) _config_opts += -bindir $(build_prefix ) /bin
26
- $(package ) _config_opts += -c++11
26
+ $(package ) _config_opts += -c++std c++ 11
27
27
$(package ) _config_opts += -confirm-license
28
28
$(package ) _config_opts += -dbus-runtime
29
29
$(package ) _config_opts += -hostprefix $(build_prefix )
@@ -45,7 +45,6 @@ $(package)_config_opts += -no-linuxfb
45
45
$(package ) _config_opts += -no-libudev
46
46
$(package ) _config_opts += -no-mitshm
47
47
$(package ) _config_opts += -no-mtdev
48
- $(package ) _config_opts += -no-nis
49
48
$(package ) _config_opts += -no-pulseaudio
50
49
$(package ) _config_opts += -no-openvg
51
50
$(package ) _config_opts += -no-reduce-relocations
@@ -73,11 +72,13 @@ $(package)_config_opts += -prefix $(host_prefix)
73
72
$(package ) _config_opts += -qt-libpng
74
73
$(package ) _config_opts += -qt-libjpeg
75
74
$(package ) _config_opts += -qt-pcre
76
- $(package ) _config_opts += -qt -zlib
75
+ $(package ) _config_opts += -system -zlib
77
76
$(package ) _config_opts += -reduce-exports
78
77
$(package ) _config_opts += -static
79
78
$(package ) _config_opts += -silent
80
79
$(package ) _config_opts += -v
80
+ $(package ) _config_opts += -no-feature-printer
81
+ $(package ) _config_opts += -no-feature-printdialog
81
82
82
83
ifneq ($(build_os ) ,darwin)
83
84
$(package)_config_opts_darwin = -xplatform macx-clang-linux
@@ -123,6 +124,7 @@ endef
123
124
124
125
define $(package)_preprocess_cmds
125
126
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package ) _extract_dir) /qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
127
+ sed -i.old "/updateqm.depends =/d" qttranslations/translations/translations.pro && \
126
128
sed -i.old "s/src_plugins.depends = src_sql src_xml src_network/src_plugins.depends = src_xml src_network/" qtbase/src/src.pro && \
127
129
sed -i.old "s|X11/extensions/XIproto.h|X11/X.h|" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \
128
130
sed -i.old 's/if \[ "$$$$XPLATFORM_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/if \[ "$$$$BUILD_ON_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/' qtbase/configure && \
@@ -136,19 +138,21 @@ define $(package)_preprocess_cmds
136
138
patch -p1 < $($(package ) _patch_dir) /pidlist_absolute.patch && \
137
139
patch -p1 < $($(package ) _patch_dir) /fix-xcb-include-order.patch && \
138
140
patch -p1 < $($(package ) _patch_dir) /fix_qt_pkgconfig.patch && \
139
- echo "QMAKE_CFLAGS += $($(package ) _cflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
140
- echo "QMAKE_CXXFLAGS += $($(package ) _cxxflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
141
- echo "QMAKE_LFLAGS += $($(package ) _ldflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
142
- sed -i.old "s|QMAKE_CFLAGS = |QMAKE_CFLAGS = $($(package ) _cflags) $($(package ) _cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
143
- sed -i.old "s|QMAKE_LFLAGS = |QMAKE_LFLAGS = $($(package ) _ldflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
144
- sed -i.old "s|QMAKE_CXXFLAGS = |QMAKE_CXXFLAGS = $($(package ) _cxxflags) $($(package ) _cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf
141
+ echo "!host_build: QMAKE_CFLAGS += $($(package ) _cflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
142
+ echo "!host_build: QMAKE_CXXFLAGS += $($(package ) _cxxflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
143
+ echo "!host_build: QMAKE_LFLAGS += $($(package ) _ldflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
144
+ sed -i.old "s|QMAKE_CFLAGS = |!host_build: QMAKE_CFLAGS = $($(package ) _cflags) $($(package ) _cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
145
+ sed -i.old "s|QMAKE_LFLAGS = |!host_build: QMAKE_LFLAGS = $($(package ) _ldflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
146
+ sed -i.old "s|QMAKE_CXXFLAGS = |!host_build: QMAKE_CXXFLAGS = $($(package ) _cxxflags) $($(package ) _cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf
145
147
endef
146
148
147
149
define $(package)_config_cmds
148
150
export PKG_CONFIG_SYSROOT_DIR =/ && \
149
151
export PKG_CONFIG_LIBDIR=$(host_prefix ) /lib/pkgconfig && \
150
152
export PKG_CONFIG_PATH=$(host_prefix ) /share/pkgconfig && \
151
153
./configure $($(package ) _config_opts) && \
154
+ echo "host_build: QT_CONFIG ~= s/system-zlib/zlib" >> mkspecs/qconfig.pri && \
155
+ echo "CONFIG += force_bootstrap" >> mkspecs/qconfig.pri && \
152
156
$(MAKE ) sub-src-clean && \
153
157
cd ../qttranslations && ../qtbase/bin/qmake qttranslations.pro -o Makefile && \
154
158
cd translations && ../../qtbase/bin/qmake translations.pro -o Makefile && cd ../.. &&\
0 commit comments