# -*- 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
PortGroup compiler_blacklist_versions 1.0
maintainers {nicos @NicosPavlov} openmaintainer
description KDE development IDE
long_description KDevelop is a free, open source IDE (Integrated \
Development Environment) for MS Windows, Mac OS X, \
Linux, Solaris and FreeBSD. It is a feature-full, \
plugin extensible IDE for C/C++ and other programming \
languages. It is based on KDevPlatform, and the KDE \
and Qt libraries and is under development since 1998.
homepage http://www.kdevelop.org/
master_sites kde:stable/kdevelop/${version}/
checksums rmd160 047f2d2203f25a66a69e7f5b38a2a70cb2005966 \
sha256 cdef56196364eb97a4d9f15b6d47e12d893ef0bfa7100855f532ba7a9ff69130
depends_run-append path:bin/cmake:cmake
depends_lib-append port:kdelibs4 \
#Binaries do not link to openssl, nor use the ssl backend of kdelibs4
license_noconflict openssl
#1. Avoid automatic use of okteta unless specified in variant (find scripts are broken)
#2-3. Change use of std::list with QList which is recognized during build
patchfiles patch-okteta.diff \
patch-declarationbuilder.diff \
if {![variant_isset docs]} {
patchfiles-append patch-CMakeLists.diff
variant okteta description "Adds support for okteta" {
depends_lib-append port:okteta
patchfiles-delete patch-okteta.diff
#Printer tests fail building in version 4.7.4
reinplace "s|add_subdirectory(tests)|#add_subdirectory(tests)|g" \
${worksrcpath}/debuggers/gdb/printers/CMakeLists.txt
#Using c++11 for Lion and higher in case of clang 64-bit
if {${configure.compiler} eq "clang" && ${os.platform} eq "darwin" && ${os.major} >= 11} {
lappend merger_configure_args(x86_64) -DCMAKE_CXX_FLAGS='-stdlib=libc++ -std=c++11' -DHAVE_UNORDERED_MAP=1
if {${build_arch} eq "x86_64" && ![variant_isset universal]} {
configure.args-append -DCMAKE_CXX_FLAGS="-stdlib=libc++ -std=c++11" -DHAVE_UNORDERED_MAP=1
livecheck.url ${kde4.mirror}${name}
livecheck.regex (\\d+(\\.\\d+)+)