Ticket #36743: Portfile-kdevelop

File Portfile-kdevelop, 3.2 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 99111 2012-10-26 18:59:29Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           kde4 1.1
6PortGroup           muniversal 1.0
7
8name                kdevelop
9version             4.4.0
10revision            1
11categories          kde kde4
12platforms           darwin
13license             GPL-2+
14maintainers         nicos openmaintainer
15
16description         KDE development IDE
17long_description    KDevelop is a free, open source IDE (Integrated \
18                    Development Environment) for MS Windows, Mac OS X, \
19                    Linux, Solaris and FreeBSD. It is a feature-full, \
20                    plugin extensible IDE for C/C++ and other programming \
21                    languages. It is based on KDevPlatform, and the KDE \
22                    and Qt libraries and is under development since 1998.
23
24homepage            http://www.kdevelop.org/
25master_sites        kde:stable/kdevelop/${version}/src/
26
27checksums           rmd160  5bef6f24b9c43175c09fc8820139dcd5635103b5 \
28                    sha256  eb276293a67f934919319e7561344a23e1e6fb07d3dc1aedbb424d9dc11f5f91
29
30use_bzip2           yes
31
32depends_run-append  port:cmake
33
34depends_lib-append  port:kdelibs4 \
35                    port:kdevplatform \
36                    port:kate \
37                    port:oxygen-icons
38
39#1. Avoid automatic use of valgrind unless specified in variant
40#2. Avoid automatic use of okteta unless specified in variant
41#3. Suppress general std=c++0x definition which crashes with pure C files
42#4-5. Change use of std::list with QList which is recognized during build
43patchfiles          patch-ConfigureChecks.diff \
44                    patch-okteta.diff \
45                    patch-Cxx.diff \
46                    patch-declarationbuilder.diff \
47                    patch-context.diff
48
49if {![variant_isset docs]} {
50    patchfiles-append   patch-CMakeLists.diff
51}
52
53variant valgrind description "Adds support for valgrind" {
54    depends_lib-append  port:valgrind
55    patchfiles-delete   patch-ConfigureChecks.diff
56}
57
58variant okteta description "Adds support for okteta and kdesdk" {
59    depends_lib-append  port:kdesdk4
60    patchfiles-delete   patch-okteta.diff
61}   
62
63#Deleting double architecture build from cmake group
64pre-configure {
65    configure.universal_args-delete \
66        -DCMAKE_OSX_ARCHITECTURES=\"[join ${configure.universal_archs} \;]\"
67    if {${configure.sdkroot} != ""} {
68        configure.args-append -DCMAKE_OSX_SYSROOT="${configure.sdkroot}"
69    } else {
70        configure.args-append -DCMAKE_OSX_SYSROOT=/
71    }
72}
73
74if {${configure.compiler} == "clang" && ${os.major} >= 11} {
75    array set merger_configure_args {
76        x86_64 "-DCMAKE_CXX_FLAGS=\"-stdlib=libc++\" -DHAVE_UNORDERED_MAP=1"
77    }
78}
79
80if {![variant_isset universal]} {
81    #Using c++0x for Lion and higher in case of clang 64-bit
82    if {${configure.compiler} == "clang" && ${build_arch} == "x86_64" && ${os.major} >= 11} {
83        configure.args-append   -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DHAVE_UNORDERED_MAP=1
84    }
85}
86
87livecheck.url       http://kde.mirrors.hoobly.com/stable/${name}
88livecheck.regex     "\(\\d+(?:\\.\\d+)*)\/"