# -*- 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
# from https://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/
# The GPL license comes with two exceptions that ensure that there are no license restrictions on generated code, and that bridging to 3rd party code is still possible.
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description Cross-platform integrated development environment (IDE) tailored to the needs of Qt developers.
long_description Qt Creator is a cross-platform integrated development environment (IDE) tailored to the needs of Qt developers.
homepage http://qt-project.org/wiki/Category:Tools::QtCreator
distname qt-creator-opensource-src-${version}
master_sites https://download.qt.io/official_releases/qtcreator/[join [lrange [split ${version} .] 0 1] .]/${version}/
checksums rmd160 a78956721e48c1ed14c42c444f3cf1633afcb6e5 \
sha256 86bfded5b11f7ff6edf84fbdc6b335a5d21bf545ab850b409c4a9762089ebb2a \
if {${os.platform} eq "darwin" && ${os.major} < 16} {
# last version that runs on Lion is 3.6.1
# see https://trac.macports.org/ticket/58504
ui_error "${subport} requires OS X 10.12 or later"
return -code error "incompatible OS version"
# qtcreator does not depend directly on openssl
# qtcreator links against QtNetwork.framework, and any OpenSSL functionality
# used is through QtNetwork
license_noconflict openssl
# avoid make[4]: write error
if { ${subport} eq ${name} } {
qt5.depends_component qtscript qtdeclarative qttools qtmacextras qtquickcontrols qtsvg
depends_lib-append port:qbs
configure.args-append "QBS_INSTALL_DIR=${prefix}"
depends_lib-append port:llvm-9.0 \
configure.args-append "LLVM_INSTALL_DIR=${prefix}/libexec/llvm-9.0"
depends_build-append port:python27
set python_framework ${frameworks_dir}/Python.framework/Versions/2.7
configure.env-append PATH=${python_framework}/bin:$env(PATH)
build.env-append PATH=${python_framework}/bin:$env(PATH)