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
14
24
$(package ) _config_opts_debug = -debug
15
- $(package ) _config_opts += -opensource -confirm-license -no-audio-backend -no-sql-tds -no-glib -no-icu
16
- $(package ) _config_opts += -no-cups -no-iconv -no-gif -no-audio-backend -no-freetype
17
- $(package ) _config_opts += -no-sql-sqlite -no-nis -no-cups -no-iconv -no-pch
18
- $(package ) _config_opts += -no-gif -no-feature-style-plastique
19
- $(package ) _config_opts += -no-qml-debug -no-pch -no-nis -nomake examples -nomake tests
20
- $(package ) _config_opts += -no-feature-style-cde -no-feature-style-s60 -no-feature-style-motif
21
- $(package ) _config_opts += -no-feature-style-windowsmobile -no-feature-style-windowsce
22
- $(package ) _config_opts += -no-feature-style-cleanlooks
23
- $(package ) _config_opts += -no-sql-db2 -no-sql-ibase -no-sql-oci -no-sql-tds -no-sql-mysql
24
- $(package ) _config_opts += -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2
25
- $(package ) _config_opts += -skip qtsvg -skip qtwebkit -skip qtwebkit-examples -skip qtserialport
26
- $(package ) _config_opts += -skip qtdeclarative -skip qtmultimedia -skip qtimageformats -skip qtx11extras
27
- $(package ) _config_opts += -skip qtlocation -skip qtsensors -skip qtquick1 -skip qtxmlpatterns
28
- $(package ) _config_opts += -skip qtquickcontrols -skip qtactiveqt -skip qtconnectivity -skip qtmacextras
29
- $(package ) _config_opts += -skip qtwinextras -skip qtxmlpatterns -skip qtscript -skip qtdoc
30
-
31
- $(package ) _config_opts += -prefix $(host_prefix ) -bindir $(build_prefix ) /bin
32
- $(package ) _config_opts += -no-c++11 -openssl-linked -v -static -silent -pkg-config
33
- $(package ) _config_opts += -qt-libpng -qt-libjpeg -qt-zlib -qt-pcre
25
+ $(package ) _config_opts += -opensource -confirm-license
26
+ $(package ) _config_opts += -no-audio-backend
27
+ $(package ) _config_opts += -no-glib
28
+ $(package ) _config_opts += -no-icu
29
+ $(package ) _config_opts += -no-cups
30
+ $(package ) _config_opts += -no-iconv
31
+ $(package ) _config_opts += -no-gif
32
+ $(package ) _config_opts += -no-freetype
33
+ $(package ) _config_opts += -no-nis
34
+ $(package ) _config_opts += -no-pch
35
+ $(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
+ $(package ) _config_opts += -no-sql-db2
41
+ $(package ) _config_opts += -no-sql-ibase
42
+ $(package ) _config_opts += -no-sql-oci
43
+ $(package ) _config_opts += -no-sql-tds
44
+ $(package ) _config_opts += -no-sql-mysql
45
+ $(package ) _config_opts += -no-sql-odbc
46
+ $(package ) _config_opts += -no-sql-psql
47
+ $(package ) _config_opts += -no-sql-sqlite
48
+ $(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 += -no-c++11
53
+ $(package ) _config_opts += -openssl-linked
54
+ $(package ) _config_opts += -v
55
+ $(package ) _config_opts += -static
56
+ $(package ) _config_opts += -silent
57
+ $(package ) _config_opts += -pkg-config
58
+ $(package ) _config_opts += -qt-libpng
59
+ $(package ) _config_opts += -qt-libjpeg
60
+ $(package ) _config_opts += -qt-zlib
61
+ $(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 += -reduce-exports
78
+ $(package ) _config_opts += -optimized-qmake
34
79
35
80
ifneq ($(build_os ) ,darwin)
36
- $(package)_config_opts_darwin = -xplatform macx-clang-linux -device-option MAC_SDK_PATH=$(OSX_SDK ) -device-option CROSS_COMPILE="$(host ) -"
37
- $(package)_config_opts_darwin += -device-option MAC_MIN_VERSION=$(OSX_MIN_VERSION ) -device-option MAC_TARGET=$(host ) -device-option MAC_LD64_VERSION=$(LD64_VERSION )
81
+ $(package)_config_opts_darwin = -xplatform macx-clang-linux
82
+ $(package)_config_opts_darwin += -device-option MAC_SDK_PATH=$(OSX_SDK )
83
+ $(package)_config_opts_darwin += -device-option MAC_SDK_VERSION=$(OSX_SDK_VERSION )
84
+ $(package)_config_opts_darwin += -device-option CROSS_COMPILE="$(host ) -"
85
+ $(package)_config_opts_darwin += -device-option MAC_MIN_VERSION=$(OSX_MIN_VERSION )
86
+ $(package)_config_opts_darwin += -device-option MAC_TARGET=$(host )
87
+ $(package)_config_opts_darwin += -device-option MAC_LD64_VERSION=$(LD64_VERSION )
38
88
endif
39
89
40
- $(package ) _config_opts_linux = -qt-xkbcommon -qt-xcb -no-eglfs -no-linuxfb -system-freetype -no-sm -fontconfig -no-xinput2 -no-libudev -no-egl -no-opengl
90
+ $(package ) _config_opts_linux = -qt-xkbcommon
91
+ $(package ) _config_opts_linux += -qt-xcb
92
+ $(package ) _config_opts_linux += -system-freetype
93
+ $(package ) _config_opts_linux += -no-sm
94
+ $(package ) _config_opts_linux += -fontconfig
95
+ $(package ) _config_opts_linux += -no-opengl
41
96
$(package ) _config_opts_arm_linux = -platform linux-g++ -xplatform $(host )
42
97
$(package ) _config_opts_i686_linux = -xplatform linux-g++-32
43
98
$(package ) _config_opts_mingw32 = -no-opengl -xplatform win32-g++ -device-option CROSS_COMPILE="$(host ) -"
44
99
$(package ) _build_env = QT_RCC_TEST=1
45
100
endef
46
101
102
+ define $(package)_fetch_cmds
103
+ $(call fetch_file,$(package ) ,$($(package ) _download_path) ,$($(package ) _download_file) ,$($(package ) _file_name) ,$($(package ) _sha256_hash) ) && \
104
+ $(call fetch_file,$(package ) ,$($(package ) _download_path) ,$($(package ) _qttranslations_file_name) ,$($(package ) _qttranslations_file_name) ,$($(package ) _qttranslations_sha256_hash) ) && \
105
+ $(call fetch_file,$(package ) ,$($(package ) _download_path) ,$($(package ) _qttools_file_name) ,$($(package ) _qttools_file_name) ,$($(package ) _qttools_sha256_hash) )
106
+ endef
107
+
108
+ define $(package)_extract_cmds
109
+ mkdir -p $($(package ) _extract_dir) && \
110
+ echo "$($(package ) _sha256_hash) $($(package ) _source) " > $($(package ) _extract_dir) /.$($(package ) _file_name) .hash && \
111
+ echo "$($(package ) _qttranslations_sha256_hash) $($(package ) _source_dir) /$($(package ) _qttranslations_file_name) " > $($(package ) _extract_dir) /.$($(package ) _file_name) .hash && \
112
+ echo "$($(package ) _qttools_sha256_hash) $($(package ) _source_dir) /$($(package ) _qttools_file_name) " > $($(package ) _extract_dir) /.$($(package ) _file_name) .hash && \
113
+ $(build_SHA256SUM ) -c $($(package ) _extract_dir) /.$($(package ) _file_name) .hash && \
114
+ mkdir qtbase && \
115
+ tar --strip-components=1 -xf $($(package ) _source) -C qtbase && \
116
+ mkdir qttranslations && \
117
+ tar --strip-components=1 -xf $($(package ) _source_dir) /$($(package ) _qttranslations_file_name) -C qttranslations && \
118
+ mkdir qttools && \
119
+ tar --strip-components=1 -xf $($(package ) _source_dir) /$($(package ) _qttools_file_name) -C qttools
120
+ endef
121
+
47
122
define $(package)_preprocess_cmds
48
123
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package ) _extract_dir) /qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
49
124
sed -i.old "s/src_plugins.depends = src_sql src_xml src_network/src_plugins.depends = src_xml src_network/" qtbase/src/src.pro && \
50
- sed -i.old "/XIproto.h/d" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \
125
+ sed -i.old "s/PIDLIST_ABSOLUTE/ITEMIDLIST */" qtbase/src/plugins/platforms/windows/qwindowscontext.h &&\
126
+ sed -i.old "s/PIDLIST_ABSOLUTE/ITEMIDLIST */" qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp &&\
127
+ sed -i.old "s/PCIDLIST_ABSOLUTE/const ITEMIDLIST */" qtbase/src/plugins/platforms/windows/qwindowscontext.h &&\
128
+ sed -i.old "s|X11/extensions/XIproto.h|X11/X.h|" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \
51
129
sed -i.old 's/if \[ "$$$$XPLATFORM_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/if \[ "$$$$BUILD_ON_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/' qtbase/configure && \
52
130
mkdir -p qtbase/mkspecs/macx-clang-linux &&\
53
131
cp -f qtbase/mkspecs/macx-clang/Info.plist.lib qtbase/mkspecs/macx-clang-linux/ &&\
54
132
cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\
55
133
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
56
134
cp -f $($(package ) _patch_dir) /mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
57
135
patch -p1 < $($(package ) _patch_dir) /fix-xcb-include-order.patch && \
58
- patch -p1 < $($(package ) _patch_dir) /qt5-tablet-osx.patch && \
59
- patch -d qtbase -p1 < $($(package ) _patch_dir) /qt5-yosemite.patch && \
136
+ patch -p1 < $($(package ) _patch_dir) /mingw-uuidof.patch && \
60
137
echo "QMAKE_CFLAGS += $($(package ) _cflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
61
138
echo "QMAKE_CXXFLAGS += $($(package ) _cxxflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
62
139
echo "QMAKE_LFLAGS += $($(package ) _ldflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
@@ -69,7 +146,6 @@ define $(package)_config_cmds
69
146
export PKG_CONFIG_SYSROOT_DIR=/ && \
70
147
export PKG_CONFIG_LIBDIR=$(host_prefix ) /lib/pkgconfig && \
71
148
export PKG_CONFIG_PATH=$(host_prefix ) /share/pkgconfig && \
72
- export CPATH=$(host_prefix ) /include && \
73
149
./configure $($(package ) _config_opts) && \
74
150
$(MAKE ) sub-src-clean && \
75
151
cd ../qttranslations && ../qtbase/bin/qmake qttranslations.pro -o Makefile && \
@@ -78,7 +154,6 @@ define $(package)_config_cmds
78
154
endef
79
155
80
156
define $(package ) _build_cmds
81
- export CPATH=$(host_prefix ) /include && \
82
157
$(MAKE ) -C src $(addprefix sub-,$($(package ) _qt_libs) ) && \
83
158
$(MAKE ) -C ../qttools/src/linguist/lrelease && \
84
159
$(MAKE ) -C ../qttranslations
@@ -94,6 +169,6 @@ define $(package)_stage_cmds
94
169
endef
95
170
96
171
define $(package ) _postprocess_cmds
97
- rm -rf mkspecs/ lib/cmake/ && \
98
- rm lib/libQt5Bootstrap.a lib/lib*.la lib/*.prl plugins/*/*.prl
172
+ rm -rf native/ mkspecs/ native/lib / lib/cmake/ && \
173
+ rm -f lib/lib*.la lib/*.prl plugins/*/*.prl
99
174
endef
0 commit comments