1
1
PACKAGE =qt
2
- $(package)_version =5.5.0
3
- $(package)_download_path =http://download.qt.io/official_releases/qt/5.5 /$($(package ) _version) /submodules
2
+ $(package)_version =5.6.1
3
+ $(package)_download_path =http://download.qt.io/official_releases/qt/5.6 /$($(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 =7e82b1318f88e56a2a9376e069aa608d4fd96b48cb0e1b880ae658b0a1af0561
6
+ $(package)_sha256_hash =0ac67cf8d66d52b995f96c31c4b48117a1afb3db99eaa93e20ccd8f7f55f7fde
7
7
$(package)_dependencies =openssl
8
- $(package)_linux_dependencies =freetype fontconfig dbus libxcb libX11 xproto libXext
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
- $(package)_patches =mac-qmake.conf fix-xcb-include-order.patch mingw-uuidof.patch pidlist_absolute .patch
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 =c4bd6db6e426965c6f8824c54e81f68bbd61e2bae1bcadc328c6e81c45902a0d
14
+ $(package)_qttranslations_sha256_hash =dcc1534d247babca1840cb6d0a000671801a341ea352d0535474f86adadaf028
15
+
15
16
16
17
$(package)_qttools_file_name =qttools-$($(package ) _suffix)
17
- $(package)_qttools_sha256_hash =d9e06bd19ecc86afba5e95d45a906d1bc1ad579aa70001e36143c1aaf695bdd6
18
+ $(package)_qttools_sha256_hash =e0f845de28c31230dfa428f0190ccb3b91d1fc02481b1f064698ae4ef8376aa1
18
19
19
20
$(package)_extra_sources = $($(package ) _qttranslations_file_name)
20
21
$(package)_extra_sources += $($(package ) _qttools_file_name)
21
22
22
23
define $(package)_set_vars
23
24
$(package ) _config_opts_release = -release
24
25
$(package ) _config_opts_debug = -debug
25
- $(package ) _config_opts += -opensource -confirm-license
26
+ $(package ) _config_opts += -bindir $(build_prefix ) /bin
27
+ $(package ) _config_opts += -c++11
28
+ $(package ) _config_opts += -confirm-license
29
+ $(package ) _config_opts += -dbus-runtime
30
+ $(package ) _config_opts += -hostprefix $(build_prefix )
31
+ $(package ) _config_opts += -no-alsa
26
32
$(package ) _config_opts += -no-audio-backend
33
+ $(package ) _config_opts += -no-cups
34
+ $(package ) _config_opts += -no-egl
35
+ $(package ) _config_opts += -no-eglfs
36
+ $(package ) _config_opts += -no-feature-style-windowsmobile
37
+ $(package ) _config_opts += -no-feature-style-windowsce
38
+ $(package ) _config_opts += -no-freetype
39
+ $(package ) _config_opts += -no-gif
27
40
$(package ) _config_opts += -no-glib
41
+ $(package ) _config_opts += -no-gstreamer
28
42
$(package ) _config_opts += -no-icu
29
- $(package ) _config_opts += -no-cups
30
43
$(package ) _config_opts += -no-iconv
31
- $(package ) _config_opts += -no-gif
32
- $(package ) _config_opts += -no-freetype
44
+ $(package ) _config_opts += -no-kms
45
+ $(package ) _config_opts += -no-linuxfb
46
+ $(package ) _config_opts += -no-libudev
47
+ $(package ) _config_opts += -no-mitshm
48
+ $(package ) _config_opts += -no-mtdev
33
49
$(package ) _config_opts += -no-nis
34
- $(package ) _config_opts += -pch
50
+ $(package ) _config_opts += -no-pulseaudio
51
+ $(package ) _config_opts += -no-openvg
52
+ $(package ) _config_opts += -no-reduce-relocations
35
53
$(package ) _config_opts += -no-qml-debug
36
- $(package ) _config_opts += -nomake examples
37
- $(package ) _config_opts += -nomake tests
38
- $(package ) _config_opts += -no-feature-style-windowsmobile
39
- $(package ) _config_opts += -no-feature-style-windowsce
40
54
$(package ) _config_opts += -no-sql-db2
41
55
$(package ) _config_opts += -no-sql-ibase
42
56
$(package ) _config_opts += -no-sql-oci
@@ -46,36 +60,25 @@ $(package)_config_opts += -no-sql-odbc
46
60
$(package ) _config_opts += -no-sql-psql
47
61
$(package ) _config_opts += -no-sql-sqlite
48
62
$(package ) _config_opts += -no-sql-sqlite2
49
- $(package ) _config_opts += -prefix $(host_prefix )
50
- $(package ) _config_opts += -hostprefix $(build_prefix )
51
- $(package ) _config_opts += -bindir $(build_prefix ) /bin
52
- $(package ) _config_opts += -c++11
63
+ $(package ) _config_opts += -no-use-gold-linker
64
+ $(package ) _config_opts += -no-xinput2
65
+ $(package ) _config_opts += -no-xrender
66
+ $(package ) _config_opts += -nomake examples
67
+ $(package ) _config_opts += -nomake tests
68
+ $(package ) _config_opts += -opensource
53
69
$(package ) _config_opts += -openssl-linked
54
- $(package ) _config_opts += -v
55
- $(package ) _config_opts += -static
56
- $(package ) _config_opts += -silent
70
+ $(package ) _config_opts += -optimized-qmake
71
+ $(package ) _config_opts += -pch
57
72
$(package ) _config_opts += -pkg-config
73
+ $(package ) _config_opts += -prefix $(host_prefix )
58
74
$(package ) _config_opts += -qt-libpng
59
75
$(package ) _config_opts += -qt-libjpeg
60
- $(package ) _config_opts += -qt-zlib
61
76
$(package ) _config_opts += -qt-pcre
62
- $(package ) _config_opts += -no-pulseaudio
63
- $(package ) _config_opts += -no-openvg
64
- $(package ) _config_opts += -no-xrender
65
- $(package ) _config_opts += -no-alsa
66
- $(package ) _config_opts += -no-mtdev
67
- $(package ) _config_opts += -no-gstreamer
68
- $(package ) _config_opts += -no-mitshm
69
- $(package ) _config_opts += -no-kms
70
- $(package ) _config_opts += -no-reduce-relocations
71
- $(package ) _config_opts += -no-egl
72
- $(package ) _config_opts += -no-eglfs
73
- $(package ) _config_opts += -no-linuxfb
74
- $(package ) _config_opts += -no-xinput2
75
- $(package ) _config_opts += -no-libudev
76
- $(package ) _config_opts += -no-use-gold-linker
77
+ $(package ) _config_opts += -qt-zlib
77
78
$(package ) _config_opts += -reduce-exports
78
- $(package ) _config_opts += -optimized-qmake
79
+ $(package ) _config_opts += -static
80
+ $(package ) _config_opts += -silent
81
+ $(package ) _config_opts += -v
79
82
80
83
ifneq ($(build_os ) ,darwin)
81
84
$(package)_config_opts_darwin = -xplatform macx-clang-linux
@@ -119,19 +122,22 @@ define $(package)_extract_cmds
119
122
tar --strip-components=1 -xf $($(package ) _source_dir) /$($(package ) _qttools_file_name) -C qttools
120
123
endef
121
124
125
+
122
126
define $(package)_preprocess_cmds
123
127
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package ) _extract_dir) /qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
124
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 && \
125
129
sed -i.old "s|X11/extensions/XIproto.h|X11/X.h|" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \
126
130
sed -i.old 's/if \[ "$$$$XPLATFORM_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/if \[ "$$$$BUILD_ON_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/' qtbase/configure && \
131
+ sed -i.old 's/CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, 0 ) /CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, kCGMouseButtonLeft ) /' qtbase/src/plugins/platforms/cocoa/qcocoacursor.mm && \
127
132
mkdir -p qtbase/mkspecs/macx-clang-linux &&\
128
133
cp -f qtbase/mkspecs/macx-clang/Info.plist.lib qtbase/mkspecs/macx-clang-linux/ &&\
129
134
cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\
130
135
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
131
136
cp -f $($(package ) _patch_dir) /mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
132
- patch -p1 < $($(package ) _patch_dir) /fix-xcb-include-order.patch && \
133
137
patch -p1 < $($(package ) _patch_dir) /mingw-uuidof.patch && \
134
138
patch -p1 < $($(package ) _patch_dir) /pidlist_absolute.patch && \
139
+ patch -p1 < $($(package ) _patch_dir) /fix-xcb-include-order.patch && \
140
+ patch -p1 < $($(package ) _patch_dir) /fix_qt_pkgconfig.patch && \
135
141
echo "QMAKE_CFLAGS += $($(package ) _cflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
136
142
echo "QMAKE_CXXFLAGS += $($(package ) _cxxflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
137
143
echo "QMAKE_LFLAGS += $($(package ) _ldflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
0 commit comments