1
1
PACKAGE =qt
2
- $(package)_version =5.2.1
3
- $(package)_download_path =http://download.qt-project.org/official_releases/qt/5.2/$($(package ) _version) /single
4
- $(package)_file_name =$(package ) -everywhere-opensource-src-$($(package ) _version) .tar.gz
5
- $(package)_sha256_hash =84e924181d4ad6db00239d87250cc89868484a14841f77fb85ab1f1dbdcd7da1
2
+ $(package)_version =5.5.0
3
+ $(package)_download_path =http://download.qt.io/official_releases/qt/5.5/$($(package ) _version) /submodules
4
+ $(package)_suffix =opensource-src-$($(package ) _version) .tar.gz
5
+ $(package)_file_name =qtbase-$($(package ) _suffix)
6
+ $(package)_sha256_hash =7e82b1318f88e56a2a9376e069aa608d4fd96b48cb0e1b880ae658b0a1af0561
6
7
$(package)_dependencies =openssl
7
8
$(package)_linux_dependencies =freetype fontconfig dbus libxcb libX11 xproto libXext
8
9
$(package)_build_subdir =qtbase
9
10
$(package)_qt_libs =corelib network widgets gui plugins testlib
10
- $(package)_patches =mac-qmake.conf fix-xcb-include-order.patch qt5-tablet-osx.patch qt5-yosemite.patch
11
+ $(package)_patches =mac-qmake.conf fix-xcb-include-order.patch mingw-uuidof.patch
12
+
13
+ $(package)_qttranslations_file_name =qttranslations-$($(package ) _suffix)
14
+ $(package)_qttranslations_sha256_hash =c4bd6db6e426965c6f8824c54e81f68bbd61e2bae1bcadc328c6e81c45902a0d
15
+
16
+ $(package)_qttools_file_name =qttools-$($(package ) _suffix)
17
+ $(package)_qttools_sha256_hash =d9e06bd19ecc86afba5e95d45a906d1bc1ad579aa70001e36143c1aaf695bdd6
18
+
19
+ $(package)_extra_sources = $($(package ) _qttranslations_file_name)
20
+ $(package)_extra_sources += $($(package ) _qttools_file_name)
11
21
12
22
define $(package)_set_vars
13
23
$(package ) _config_opts_release = -release
@@ -22,16 +32,11 @@ $(package)_config_opts += -no-gif
22
32
$(package ) _config_opts += -no-freetype
23
33
$(package ) _config_opts += -no-nis
24
34
$(package ) _config_opts += -no-pch
25
- $(package ) _config_opts += -no-feature-style-plastique
26
35
$(package ) _config_opts += -no-qml-debug
27
36
$(package ) _config_opts += -nomake examples
28
37
$(package ) _config_opts += -nomake tests
29
- $(package ) _config_opts += -no-feature-style-cde
30
- $(package ) _config_opts += -no-feature-style-s60
31
- $(package ) _config_opts += -no-feature-style-motif
32
38
$(package ) _config_opts += -no-feature-style-windowsmobile
33
39
$(package ) _config_opts += -no-feature-style-windowsce
34
- $(package ) _config_opts += -no-feature-style-cleanlooks
35
40
$(package ) _config_opts += -no-sql-db2
36
41
$(package ) _config_opts += -no-sql-ibase
37
42
$(package ) _config_opts += -no-sql-oci
@@ -41,26 +46,8 @@ $(package)_config_opts += -no-sql-odbc
41
46
$(package ) _config_opts += -no-sql-psql
42
47
$(package ) _config_opts += -no-sql-sqlite
43
48
$(package ) _config_opts += -no-sql-sqlite2
44
- $(package ) _config_opts += -skip qtsvg
45
- $(package ) _config_opts += -skip qtwebkit
46
- $(package ) _config_opts += -skip qtwebkit-examples
47
- $(package ) _config_opts += -skip qtserialport
48
- $(package ) _config_opts += -skip qtdeclarative
49
- $(package ) _config_opts += -skip qtmultimedia
50
- $(package ) _config_opts += -skip qtimageformats
51
- $(package ) _config_opts += -skip qtx11extras
52
- $(package ) _config_opts += -skip qtlocation
53
- $(package ) _config_opts += -skip qtsensors
54
- $(package ) _config_opts += -skip qtquick1
55
- $(package ) _config_opts += -skip qtquickcontrols
56
- $(package ) _config_opts += -skip qtactiveqt
57
- $(package ) _config_opts += -skip qtconnectivity
58
- $(package ) _config_opts += -skip qtmacextras
59
- $(package ) _config_opts += -skip qtwinextras
60
- $(package ) _config_opts += -skip qtxmlpatterns
61
- $(package ) _config_opts += -skip qtscript
62
- $(package ) _config_opts += -skip qtdoc
63
49
$(package ) _config_opts += -prefix $(host_prefix )
50
+ $(package ) _config_opts += -hostprefix $(build_prefix )
64
51
$(package ) _config_opts += -bindir $(build_prefix ) /bin
65
52
$(package ) _config_opts += -no-c++11
66
53
$(package ) _config_opts += -openssl-linked
@@ -76,6 +63,7 @@ $(package)_config_opts += -qt-pcre
76
63
ifneq ($(build_os ) ,darwin)
77
64
$(package)_config_opts_darwin = -xplatform macx-clang-linux
78
65
$(package)_config_opts_darwin += -device-option MAC_SDK_PATH=$(OSX_SDK )
66
+ $(package)_config_opts_darwin += -device-option MAC_SDK_VERSION=$(OSX_SDK_VERSION )
79
67
$(package)_config_opts_darwin += -device-option CROSS_COMPILE="$(host ) -"
80
68
$(package)_config_opts_darwin += -device-option MAC_MIN_VERSION=$(OSX_MIN_VERSION )
81
69
$(package)_config_opts_darwin += -device-option MAC_TARGET=$(host )
@@ -99,19 +87,41 @@ $(package)_config_opts_mingw32 = -no-opengl -xplatform win32-g++ -device-option
99
87
$(package ) _build_env = QT_RCC_TEST=1
100
88
endef
101
89
90
+ define $(package)_fetch_cmds
91
+ $(call fetch_file,$(package ) ,$($(package ) _download_path) ,$($(package ) _download_file) ,$($(package ) _file_name) ,$($(package ) _sha256_hash) ) && \
92
+ $(call fetch_file,$(package ) ,$($(package ) _download_path) ,$($(package ) _qttranslations_file_name) ,$($(package ) _qttranslations_file_name) ,$($(package ) _qttranslations_sha256_hash) ) && \
93
+ $(call fetch_file,$(package ) ,$($(package ) _download_path) ,$($(package ) _qttools_file_name) ,$($(package ) _qttools_file_name) ,$($(package ) _qttools_sha256_hash) )
94
+ endef
95
+
96
+ define $(package)_extract_cmds
97
+ mkdir -p $($(package ) _extract_dir) && \
98
+ echo "$($(package ) _sha256_hash) $($(package ) _source) " > $($(package ) _extract_dir) /.$($(package ) _file_name) .hash && \
99
+ echo "$($(package ) _qttranslations_sha256_hash) $($(package ) _source_dir) /$($(package ) _qttranslations_file_name) " > $($(package ) _extract_dir) /.$($(package ) _file_name) .hash && \
100
+ echo "$($(package ) _qttools_sha256_hash) $($(package ) _source_dir) /$($(package ) _qttools_file_name) " > $($(package ) _extract_dir) /.$($(package ) _file_name) .hash && \
101
+ $(build_SHA256SUM ) -c $($(package ) _extract_dir) /.$($(package ) _file_name) .hash && \
102
+ mkdir qtbase && \
103
+ tar --strip-components=1 -xf $($(package ) _source) -C qtbase && \
104
+ mkdir qttranslations && \
105
+ tar --strip-components=1 -xf $($(package ) _source_dir) /$($(package ) _qttranslations_file_name) -C qttranslations && \
106
+ mkdir qttools && \
107
+ tar --strip-components=1 -xf $($(package ) _source_dir) /$($(package ) _qttools_file_name) -C qttools
108
+ endef
109
+
102
110
define $(package)_preprocess_cmds
103
111
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package ) _extract_dir) /qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
104
112
sed -i.old "s/src_plugins.depends = src_sql src_xml src_network/src_plugins.depends = src_xml src_network/" qtbase/src/src.pro && \
105
- sed -i.old "/XIproto.h/d" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \
113
+ sed -i.old "s/PIDLIST_ABSOLUTE/ITEMIDLIST */" qtbase/src/plugins/platforms/windows/qwindowscontext.h &&\
114
+ sed -i.old "s/PIDLIST_ABSOLUTE/ITEMIDLIST */" qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp &&\
115
+ sed -i.old "s/PCIDLIST_ABSOLUTE/const ITEMIDLIST */" qtbase/src/plugins/platforms/windows/qwindowscontext.h &&\
116
+ sed -i.old "s|X11/extensions/XIproto.h|X11/X.h|" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \
106
117
sed -i.old 's/if \[ "$$$$XPLATFORM_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/if \[ "$$$$BUILD_ON_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/' qtbase/configure && \
107
118
mkdir -p qtbase/mkspecs/macx-clang-linux &&\
108
119
cp -f qtbase/mkspecs/macx-clang/Info.plist.lib qtbase/mkspecs/macx-clang-linux/ &&\
109
120
cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\
110
121
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
111
122
cp -f $($(package ) _patch_dir) /mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
112
123
patch -p1 < $($(package ) _patch_dir) /fix-xcb-include-order.patch && \
113
- patch -p1 < $($(package ) _patch_dir) /qt5-tablet-osx.patch && \
114
- patch -d qtbase -p1 < $($(package ) _patch_dir) /qt5-yosemite.patch && \
124
+ patch -p1 < $($(package ) _patch_dir) /mingw-uuidof.patch && \
115
125
echo "QMAKE_CFLAGS += $($(package ) _cflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
116
126
echo "QMAKE_CXXFLAGS += $($(package ) _cxxflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
117
127
echo "QMAKE_LFLAGS += $($(package ) _ldflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
@@ -124,7 +134,6 @@ define $(package)_config_cmds
124
134
export PKG_CONFIG_SYSROOT_DIR=/ && \
125
135
export PKG_CONFIG_LIBDIR=$(host_prefix ) /lib/pkgconfig && \
126
136
export PKG_CONFIG_PATH=$(host_prefix ) /share/pkgconfig && \
127
- export CPATH=$(host_prefix ) /include && \
128
137
./configure $($(package ) _config_opts) && \
129
138
$(MAKE ) sub-src-clean && \
130
139
cd ../qttranslations && ../qtbase/bin/qmake qttranslations.pro -o Makefile && \
@@ -133,7 +142,6 @@ define $(package)_config_cmds
133
142
endef
134
143
135
144
define $(package ) _build_cmds
136
- export CPATH=$(host_prefix ) /include && \
137
145
$(MAKE ) -C src $(addprefix sub-,$($(package ) _qt_libs) ) && \
138
146
$(MAKE ) -C ../qttools/src/linguist/lrelease && \
139
147
$(MAKE ) -C ../qttranslations
@@ -149,6 +157,6 @@ define $(package)_stage_cmds
149
157
endef
150
158
151
159
define $(package ) _postprocess_cmds
152
- rm -rf mkspecs/ lib/cmake/ && \
153
- rm lib/libQt5Bootstrap.a lib/lib*.la lib/*.prl plugins/*/*.prl
160
+ rm -rf native/ mkspecs/ native/lib / lib/cmake/ && \
161
+ rm -f lib/lib*.la lib/*.prl plugins/*/*.prl
154
162
endef
0 commit comments