30 | | checksums rmd160 e9b03671545aa5349541495bc226328f639178cf \ |
31 | | sha256 317874cfc7fc528dddbb3a7a32fd46372aae22bdc4527be1cfb55c93fa66e3bd |
| 28 | checksums rmd160 647cdad41974b93c5745a358e1129f2ed5f6e577 \ |
| 29 | sha256 d3a992f3e67463e68630cb0b455d408a2a12f4da7a19e46807fa08a79f09b2b6 |
| 30 | |
| 31 | subport ${name}-qt5 { |
| 32 | description ${description} - Qt5 version |
| 33 | long_description \ |
| 34 | ${long_description} Built against Qt5. |
| 35 | } |
| 36 | |
| 37 | if {${subport} eq "${name}"} { |
| 38 | conflicts ${name}-qt5 |
| 39 | PortGroup qt4 1.0 |
| 40 | } else { |
| 41 | conflicts ${name} |
| 42 | PortGroup qt5 1.0 |
| 43 | if {[info procs qt5.depends_component] eq ""} { |
| 44 | # A procedure to indicate dependencies on Qt components that are not |
| 45 | # included in the default dependency declared by the Qt5 PortGroup. |
| 46 | # It allows to specify those dependencies without having to handle |
| 47 | # the appropriate path-style declarations that work against every Qt5 port |
| 48 | # (currently port:qt5, port:qt55, "soon" port:qt5-kde too.) |
| 49 | # A complete version of this procedure will be provided by the Qt5 PG |
| 50 | # after qt5-kde is introduced. Provide a simplified version in the meantime. |
| 51 | proc qt5.depends_component {first args} { |
| 52 | global os.major |
| 53 | # join ${first} and (the optional) ${args} |
| 54 | set args [linsert $args[set list {}] 0 ${first}] |
| 55 | # select the Qt5 port prefix, depending on OS version and which Qt5 port is installed |
| 56 | if {${os.major} == 11} { |
| 57 | set qt5pprefix "qt55" |
| 58 | } else { |
| 59 | set qt5pprefix "qt5" |
| 60 | } |
| 61 | foreach comp ${args} { |
| 62 | if {${comp} eq "qt5"} { |
| 63 | # in case one needs an explicit dependency on the Qt5 main port itself: |
| 64 | depends_lib-append port:${qt5pprefix} |
| 65 | } else { |
| 66 | set portname "${qt5pprefix}-${comp}" |
| 67 | depends_lib-append port:${portname} |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | qt5.depends_component \ |
| 74 | qtsvg |
| 75 | } |