sysklogd: fix build on musl
[buildroot-gz.git] / package / python-pyqt / 0002-configure-set-qws.patch
blob33a5648bee84f092ac4c3942fb745aa484b3c350
1 Add support for several Qt flavors
3 Qt has two flavors: X11 and embedded (QWS). QWS has some limitations
4 compared to X11. This patch adds an option to select which version to
5 use.
7 Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
8 ---
9 Index: PyQt-x11-gpl-4.11.3/configure-ng.py
10 ===================================================================
11 --- PyQt-x11-gpl-4.11.3.orig/configure-ng.py
12 +++ PyQt-x11-gpl-4.11.3/configure-ng.py
13 @@ -960,6 +960,9 @@ int main(int argc, char **argv)
14 if opts.vendlibdir is not None:
15 self.vend_lib_dir = opts.vendlibdir
17 + if opts.qtflavor is not None:
18 + self.qt_flavor = opts.qtflavor
20 # Handle any conflicts.
21 if self.qt_shared:
22 if len(self.static_plugins) != 0:
23 @@ -1177,6 +1180,11 @@ def create_optparser(target_config):
24 dest="notools",
25 help="disable the building of pyuic5, pyrcc5 and pylupdate5 "
26 "[default: enabled]")
27 + g.add_option("--qt-flavor", dest='qtflavor', type='string',
28 + default="WS_X11", metavar='QTFLAVOR', action='store',
29 + help="select Qt flavor beetween WS_X11 and WS_QWS "
30 + "only available on Linux)"
31 + "[default: WS_X11]")
32 p.add_option_group(g)
34 # Vendor ID.
35 @@ -2088,7 +2096,7 @@ def get_sip_flags(target_config):
36 elif target_config.py_platform == 'darwin':
37 plattag = 'WS_MACX'
38 else:
39 - plattag = 'WS_X11'
40 + plattag = target_config.qt_flavor
42 sip_flags.append('-t')
43 sip_flags.append(plattag)