Ticket #36743: Portfile-kdevplatform

File Portfile-kdevplatform, 2.7 KB (added by NicosPavlov, 12 years ago)
Line 
1# -*- 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
2# $Id: Portfile 99093 2012-10-26 02:51:38Z nicos@macports.org $
3
4PortSystem          1.0
5PortGroup           kde4 1.1
6PortGroup           muniversal 1.0
7
8name                kdevplatform
9version             1.4.0
10categories          kde kde4
11platforms           darwin
12license             GPL-2+
13maintainers         nicos openmaintainer
14
15description         KDE libraries for IDE programs
16long_description    KDevPlatform is a free, open source set of libraries \
17                    that can be used as a foundation for IDE-like \
18                    programs. It is programing-language independent, and \
19                    is planned to be used by programs like: KDevelop, \
20                    Quanta, Kile, KTechLab ... etc.
21
22set kdevelopversion 4.4.0
23
24homepage            http://www.kdevelop.org/
25master_sites        kde:stable/kdevelop/${kdevelopversion}/src/
26distname            ${name}-${version}
27
28checksums           rmd160  e15b8a5733500efcba9f48232201153c9ed4f2bb \
29                    sha256  fd00aff21af14c07eca6e0dfbc0d4dd1edcc4ec3c50e6a5dd7e962214922c08e
30
31use_bzip2           yes
32
33depends_lib-append  port:kdelibs4 \
34                    port:boost
35
36#1. Deactivating subversion detection at configure to avoid hidden \
37#   use of system one (ticket #35185)
38#2. Suppress ambiguous use of Sublime::Position class
39patchfiles-append   patch-pluginsCMakeLists.diff \
40                    patch-uicontroller.cpp.diff
41
42variant subversion description {Add subversion support for kdevelop} {
43    depends_lib-append  port:subversion 
44    patchfiles-delete   patch-pluginsCMakeLists.diff
45}
46
47#Deleting double architecture build from cmake group
48pre-configure {
49    configure.universal_args-delete \
50        -DCMAKE_OSX_ARCHITECTURES=\"[join ${configure.universal_archs} \;]\"
51    if {${configure.sdkroot} != ""} {
52        configure.args-append -DCMAKE_OSX_SYSROOT="${configure.sdkroot}"
53    } else {
54        configure.args-append -DCMAKE_OSX_SYSROOT=/
55    }
56}
57
58if {${configure.compiler} == "clang" && ${os.major} >= 11} {
59    array set merger_configure_args {
60        i386   ""
61        x86_64 "-DCMAKE_CXX_FLAGS=\"-stdlib=libc++\" -DHAVE_UNORDERED_MAP=1"
62    }
63}
64
65if {![variant_isset universal]} {
66    #Using c++0x for Lion and higher in case of clang 64-bit
67    if {${configure.compiler} == "clang" && ${build_arch} == "x86_64" && ${os.major} >= 11} {
68        configure.args-append   -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DHAVE_UNORDERED_MAP=1
69    }
70}
71
72livecheck.url       http://kde.mirrors.hoobly.com/stable/kdevelop/${kdevelopversion}/src
73livecheck.regex     ${name}-(\\d+\\.\\d+\\.\\d+)${extract.suffix}