# -*- 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 libraries for IDE programs
long_description KDevPlatform is a free, open source set of libraries \
that can be used as a foundation for IDE-like \
programs. It is programing-language independent, and \
is planned to be used by programs like: KDevelop, \
Quanta, Kile, KTechLab ... etc.
set kdevelopversion 4.7.4
homepage http://www.kdevelop.org/
master_sites kde:stable/kdevelop/${kdevelopversion}/
checksums rmd160 1175ef36e0b3626703d2caccc8f01be0f7aa55ad \
sha256 21ea4a6c4e241e3b9d6f991ac98b2df8b9c45e17bdb416e836cefbde2d524574
depends_lib-append port:kdelibs4 \
#Binaries do not link to openssl, nor use the ssl backend of kdelibs4
license_noconflict openssl
#1. Deactivating subversion detection at configure to avoid hidden \
# use of system one (ticket #35185)
patchfiles-append patch-pluginsCMakeLists.diff \
variant subversion description {Add subversion support for kdevelop} {
depends_lib-append port:subversion
patchfiles-delete patch-pluginsCMakeLists.diff
if {${configure.compiler} ne "clang"} {
#Adding -fexceptions, required by gcc compilers
patchfiles-append patch-languageCMakeLists.diff
} elseif {${os.platform} eq "darwin" && ${os.major} >= 11} {
#Using c++11 for Lion and higher in case of clang 64-bit
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}kdevelop/${kdevelopversion}