# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
# for OpenSSLException, see source and header files in src/network/ssl of qtbase
license {LGPL-3 GPL-3 OpenSSLException}
set just_want_qt5_variables yes
unset just_want_qt5_variables
# get Qt's version numbers
set branch [join [lrange [split ${version} .] 0 1] .]
set qt_major [lindex [split ${version} .] 0]
# see https://wiki.qt.io/New_Features_in_Qt_5.7
http://download.qt.io/official_releases/qt/${branch}/${version}/submodules \
http://download.qt.io/community_releases/${branch}/${version}
# see https://trac.macports.org/ticket/53952
# file sizes are significantly smaller using xz
if { ${subport} ne ${name} && ${subport} ne "${name}-docs" } {
# conflict with all other version of qt5
foreach {qt_test_name qt_test_info} [array get available_qt_versions] {
if {${name} ne ${qt_test_name}} {
conflicts-append [lindex ${qt_test_info} 0]
# qt57-qtbase replaces qt5-qtbase, so can not conflict
if { ${os.major} == 12 } {
conflicts-delete qt5-qtbase
############################################################################### Modules Not Considered
# No qtactiveqt (Windows Only)
# No qtandroidextras (Android Only)
# No qtwayland (Linux Only)
# No qtx11extras (X11 Only)
# No qtwinextras (Windows Only)
###############################################################################
############################################################################### Finding Dependencies
# grep -r "%dependencies" *
# find ./ -name sync.profile
# grep -r qtCompileTest *
# find ./ -name config.tests
# find ./ -name Find\*.cmake
# grep -r packagesExist *
# port provides `find ./ -name \*.dylib -exec otool -L {} \; | grep /opt/local/libexec/qt5 | cut -d ' ' -f1` | cut -d : -f2 | sort -u
# port provides `find ./ -name \*.dylib -exec otool -L {} \; | grep /opt/local/lib/ | cut -d ' ' -f1` | cut -d : -f2 | sort -u
# http://code.qt.io/cgit/qt/qt5.git/tree/.gitmodules?h=5.7.1
###############################################################################
############################################################################### Notes
# qtconnectivity checks for bluetooth libraries
# bluez and bluez_le (Linux Only)
# qtconnectivity depends on