-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
meta.yaml
241 lines (225 loc) · 10.4 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
{% set version = "5.15.15" %}
package:
name: qt-main
version: {{ version }}
source:
- url: https://download.qt.io/official_releases/qt/{{ version.rpartition('.')[0] }}/{{ version }}/single/qt-everywhere-opensource-src-{{ version }}.tar.xz
sha256: b423c30fe3ace7402e5301afbb464febfb3da33d6282a37a665be1e51502335e
patches:
# qtbase
- patches/0001-qtbase-osx-allow-any-xcrun-in-PATH.patch
- patches/0002-qtbase-use-better-clang-optimize-size.patch
- patches/0003-qtbase-never-enable-new-dtags.patch
- patches/0004-qtbase-fix-harcoded-sysroot-paths.patch
- patches/0005-qtbase-fix-internal-mimetypes-db-on-windows.patch
# The following patches are required to cross-compile Qt host tools (osx)
# to work both on x86_64 and arm64
- patches/0006-Add-arm64-support-for-host-tools.patch # [arm64]
- patches/0007-Enable-arm64-x86_64-support-for-qttools.patch # [arm64]
- patches/0008-Make-qml-host-tools-to-be-arm64-compatible.patch # [arm64]
- patches/0009-Make-repc-arm64-compatible.patch # [arm64]
# - patches/0010-Enable-arm64-support-for-qgltf.patch # [arm64]
- patches/0011-Enable-arm64-support-for-qscxmlc.patch # [arm64]
# Patch for c++11 compatibility
- patches/0012-include-utility-in-mbgl-util-unique_any.patch
# Patch for openssl 3 compatibility, picked up from kde's patchset
- patches/0013-upstream-fixes-to-support-OpenSSL-3.0.patch
# This helps compatibility between qt and CXX17
# https://github.com/conda-forge/qt-main-feedstock/pull/136
# https://github.com/conda-forge/libcxx-feedstock/issues/114#issuecomment-1490672500
- patches/0014-remove-usage-of-unary-operator.patch
# https://github.com/xkbcommon/libxkbcommon/blob/6073565903488cb5b9a8d37fdc4a7c2f9d7ad04d/NEWS#L11
# https://gitlab.freedesktop.org/xorg/proto/xorgproto/-/merge_requests/70
- patches/0015-remove-deleted-xkb-keys.patch
# https://github.com/Homebrew/homebrew-core/pull/145729
- patches/0016-qmake-xcode15.patch
# https://bugreports.qt.io/browse/QTBUG-121183
# https://codereview.qt-project.org/c/qt/qtbase/+/532555
- patches/0017-Backport-fixes-for-compatibility-with-mysql-8.3.patch
- patches/0018-Avoid-usage-of-mysql_ssl_set.patch
# https://github.com/conda-forge/qt-main-feedstock/pull/282#issuecomment-2349349013
# icu 75 requires C++17, so enable it also in the dummy compilation of a icu snippet that qmake does for configuration
- patches/0019-use-cxx17-for-icu-config-tests.patch
# similarly, mapbox-gl-native uses icu, so we need to make sure that it compiles with C++17
- patches/0020-compile-mapbox-gl-native-with-cxx17-for-icu75-compat.patch
# mapbox-gl-native uses a old vendored boost, make sure that we used an up-to-date boost instead
- patches/0021-unvendor-boost-from-mapbox-gl-native.patch
# Taken from debian for gcc 13 compatibility
# https://github.com/conda-forge/qt-main-feedstock/pull/289#issuecomment-2354739087
- patches/0022-gcc_13.patch
# Patch from OpenMandriva also used by archlinux
- patches/0023-work-around-pyside2-llvm16.patch
# fix https://bugreports.qt.io/browse/QTBUG-123554 can be removed in 5.15.18
- patches/fix-touch-input-crash.diff
- url: https://download.qt.io/development_releases/prebuilt/llvmpipe/windows/opengl32sw-64-mesa_12_0_rc2.7z # [win64]
sha256: 2a0d2f92c60e0962ef5f6039d3793424c6f39e49ba27ac04a5b21ca4ae012e15 # [win64]
folder: opengl32sw # [win64]
build:
number: 2
detect_binary_files_with_prefix: true
run_exports:
- {{ pin_subpackage('qt-main', max_pin='x.x') }}
missing_dso_whitelist: # [osx]
- /usr/lib/libbsm.0.dylib # [osx]
- /usr/lib/libcups.2.dylib # [osx]
- /usr/lib/libresolv.9.dylib # [osx]
- /usr/lib/libsandbox.1.dylib # [osx]
- '/System/Library/Frameworks/CoreLocation.framework/**' # [osx]
requirements:
build:
- {{ compiler('c') }}
- {{ stdlib('c') }}
- {{ compiler('cxx') }}
# For fontconfig + freetype
- pkg-config # [unix]
- make # [unix]
- ninja
- ruby >=2.5 # [linux]
- bison # [linux]
- flex # [linux]
- gperf # [linux]
- m2-gperf # [win]
- m2-bison # [win]
- m2-flex # [win]
- m2-patch # [win]
- jom # [win]
- curl # [win]
- perl 5
# Add openssl to build requirements so that it gets
# pinned correctly during the 1 -> 3 migration
- openssl # [not osx]
# libclang is required in order to enable simultaneous x86_64 and
# arm64 support for QDoc
- libclang # [arm64]
# Although these should be host-only dependencies, they are needed when
# cross-compiling arm64 binaries on x86_64 since llvm-config (host/arm64)
# cannot be executed on x86_64 to locate libclang successfully
- llvmdev # [arm64]
- clangdev >=9 # [arm64]
host:
- libgl-devel # [linux]
- libegl-devel # [linux]
- libdrm # [linux]
# For pkg-config gl, fontconfig + freetype
- pthread-stubs # [linux]
- dbus # [linux]
- fontconfig # [linux]
- freetype # [linux]
- glib
- gst-plugins-base {{ gstreamer }}
- gstreamer
- pulseaudio-client # [linux]
- libxml2 # [linux]
- libxkbcommon # [linux]
- expat # [linux]
- libevent # [linux]
- icu
- libjpeg-turbo
- libpng
- nspr # [unix]
- nss # [unix]
- libsqlite
- mysql-devel # [not win]
- postgresql # [not win]
- zlib
- libxcb # [linux]
- openssl # [not osx]
# For QDoc
# http://doc.qt.io/Qt-5/qdoc-guide-clang.html
# Only libclang is needed, but needs the full package for detection.
- llvm
- clangdev >=9
# Ensure that build and host have the same clang version on osx
# otherwise qt6 may be out of sync compared to the pinned compiler
# version
- libclang {{ cxx_compiler_version }} # [osx]
- libclang-cpp {{ cxx_compiler_version }} # [osx]
- libclang # [not osx]
- libclang-cpp # [not osx]
- libcups # [linux]
- zstd
- alsa-lib # [linux]
- krb5
- harfbuzz # [linux]
# The xcb-util packages are necessary to build the Qt xcb plugin.
# It was decided to not use CDTs for qt to resolve issues
# that may exhibit as segfault due to missing libraries
# in some lighter weight linux installations
# https://github.com/conda-forge/qt-main-feedstock/issues/32
- xcb-util # [linux]
- xcb-util-wm # [linux]
- xcb-util-keysyms # [linux]
- xcb-util-image # [linux]
- xcb-util-renderutil # [linux]
- xorg-libx11 # [linux]
- xorg-libxext # [linux]
- xorg-libxdamage # [linux]
- xorg-libsm # [linux]
- xorg-libice # [linux]
# https://github.com/conda-forge/staged-recipes/pull/22084
- xorg-libxxf86vm # [linux]
- xorg-xorgproto # [linux]
# qtlocation requires mapbox-gl-native that uses libbost-headers
- libboost-headers
run:
- {{ pin_compatible("nss") }} # [unix]
- {{ pin_compatible("nspr") }} # [unix]
- libxcb # [linux]
# Adding the following xcb-util run requirements resolves issue
# that may exhibit as segfault due to missing libraries
# in some lighter weight linux installations
# https://github.com/conda-forge/qt-main-feedstock/issues/32
- xcb-util-wm # [linux]
- xcb-util-keysyms # [linux]
- xcb-util-image # [linux]
- xcb-util-renderutil # [linux]
run_constrained:
- qt {{ version }}
test:
requires:
- {{ compiler('cxx') }}
- libgl-devel # [linux]
- libegl-devel # [linux]
- make # [unix]
- xcb-util # [linux]
- xorg-libxdamage # [linux]
# https://github.com/conda-forge/staged-recipes/pull/22084
- xorg-libxxf86vm # [linux]
# llvm<16 require we manually add libcxx-devel on osx,
# see https://github.com/conda-forge/qt-main-feedstock/pull/288#issuecomment-2351649435
- libcxx-devel # [osx]
files:
- test/hello.pro
- test/main-qtwebengine.cpp
- test/main.cpp
- test/main.qml
- test/qml.qrc
- test/qrc_qml.cpp
- test/qtwebengine.pro
- test/test_qmimedatabase.pro
- test/test_qmimedatabase.cpp
- xcodebuild
- xcrun
about:
home: https://qt.io
license: LGPL-3.0-only
license_file: LICENSE.LGPLv3
summary: 'Qt is a cross-platform application and UI framework.'
description: |
Qt helps you create connected devices, UIs & applications that run
anywhere on any device, on any operating system at any time.
doc_url: https://doc.qt.io/
dev_url: https://github.com/qt
extra:
recipe-maintainers:
- andfoy
- ccordoba12
- gillins
- mingwandroid
- msarahan
- ocefpaf
- stuarteberg
- Tobias-Fischer
- matthiasdiener # (currently building linux_ppc64le manually)
- jschueller
- traversaro