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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup kde4 1.1 |
---|
6 | PortGroup muniversal 1.0 |
---|
7 | |
---|
8 | name kdevelop |
---|
9 | version 4.4.0 |
---|
10 | revision 1 |
---|
11 | categories kde kde4 |
---|
12 | platforms darwin |
---|
13 | license GPL-2+ |
---|
14 | maintainers nicos openmaintainer |
---|
15 | |
---|
16 | description KDE development IDE |
---|
17 | long_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 | |
---|
24 | homepage http://www.kdevelop.org/ |
---|
25 | master_sites kde:stable/kdevelop/${version}/src/ |
---|
26 | |
---|
27 | checksums rmd160 5bef6f24b9c43175c09fc8820139dcd5635103b5 \ |
---|
28 | sha256 eb276293a67f934919319e7561344a23e1e6fb07d3dc1aedbb424d9dc11f5f91 |
---|
29 | |
---|
30 | use_bzip2 yes |
---|
31 | |
---|
32 | depends_run-append port:cmake |
---|
33 | |
---|
34 | depends_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 |
---|
43 | patchfiles patch-ConfigureChecks.diff \ |
---|
44 | patch-okteta.diff \ |
---|
45 | patch-Cxx.diff \ |
---|
46 | patch-declarationbuilder.diff \ |
---|
47 | patch-context.diff |
---|
48 | |
---|
49 | if {![variant_isset docs]} { |
---|
50 | patchfiles-append patch-CMakeLists.diff |
---|
51 | } |
---|
52 | |
---|
53 | variant valgrind description "Adds support for valgrind" { |
---|
54 | depends_lib-append port:valgrind |
---|
55 | patchfiles-delete patch-ConfigureChecks.diff |
---|
56 | } |
---|
57 | |
---|
58 | variant 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 |
---|
64 | pre-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 | |
---|
74 | if {${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 | |
---|
80 | if {![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 | |
---|
87 | livecheck.url http://kde.mirrors.hoobly.com/stable/${name} |
---|
88 | livecheck.regex "\(\\d+(?:\\.\\d+)*)\/" |
---|