| 27 | if {![info exists qt5.depends_component]} { |
| 28 | proc qt5.depends_component {first args} { |
| 29 | global qt5_component_lib |
| 30 | global qt5.using_kde |
| 31 | # join ${first} and (the optional) ${args} |
| 32 | set args [linsert $args[set list {}] 0 ${first}] |
| 33 | if {[info exists qt5.using_kde] && ${qt5.using_kde}} { |
| 34 | set qt5main "qt5-kde" |
| 35 | } else { |
| 36 | set qt5main "qt5" |
| 37 | } |
| 38 | foreach comp ${args} { |
| 39 | if {${comp} eq "qt5"} { |
| 40 | if {[info exists qt5.using_kde] && ${qt5.using_kde}} { |
| 41 | global qt5_dependency |
| 42 | depends_lib-append ${qt5_dependency} |
| 43 | } else { |
| 44 | depends_lib-append port:${qt5main} |
| 45 | } |
| 46 | } else { |
| 47 | set portname "${qt5main}-${comp}" |
| 48 | if {[info exists qt5_component_lib] && [info exists qt5_component_lib(${comp})]} { |
| 49 | # an explicit dependency pattern was given, e.g. path:foo |
| 50 | depends_lib-append "$qt5_component_lib(${comp}):${portname}" |
| 51 | } else { |
| 52 | depends_lib-append port:${portname} |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | } |
| 58 | |
36 | | --sip=${prefix}/bin/sip-${python.branch} |
| 70 | --sip=${prefix}/bin/sip-${python.branch} \ |
| 71 | --dbus=${python.include}/dbus-1.0 \ |
| 72 | --designer-plugindir=${qt_plugins_dir}/designer/Py${python.version}Qt5 \ |
| 73 | --qml-plugindir=${qt_plugins_dir}/Py${python.version}Qt5 \ |
| 74 | --disable=QtWebEngineCore --disable=QtWebEngineWidgets |
| 75 | |
| 76 | variant qtwebengine description {include QtWebEngine support} { |
| 77 | qt5.depends_component \ |
| 78 | qtwebengine |
| 79 | configure.args-delete \ |
| 80 | --disable=QtWebEngineCore --disable=QtWebEngineWidgets |
| 81 | } |
| 82 | |
| 83 | post-configure { |
| 84 | # using --dbus means the compiler will find dbus-python.h but not |
| 85 | # the DBus headers themselves. Correct dbus.pro : |
| 86 | set dbus1incpath [strsed [exec pkg-config --cflags-only-I dbus-1] "g/-I//"] |
| 87 | reinplace "s|INCLUDEPATH += .$|INCLUDEPATH += . ${dbus1incpath}|g" \ |
| 88 | ${worksrcpath}/dbus/dbus.pro |
| 89 | system -W ${worksrcpath}/dbus "${qt_qmake_cmd} dbus.pro" |
| 90 | } |