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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup kde4 1.1 |
---|
6 | PortGroup muniversal 1.0 |
---|
7 | |
---|
8 | name kdevplatform |
---|
9 | version 1.4.0 |
---|
10 | categories kde kde4 |
---|
11 | platforms darwin |
---|
12 | license GPL-2+ |
---|
13 | maintainers nicos openmaintainer |
---|
14 | |
---|
15 | description KDE libraries for IDE programs |
---|
16 | long_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 | |
---|
22 | set kdevelopversion 4.4.0 |
---|
23 | |
---|
24 | homepage http://www.kdevelop.org/ |
---|
25 | master_sites kde:stable/kdevelop/${kdevelopversion}/src/ |
---|
26 | distname ${name}-${version} |
---|
27 | |
---|
28 | checksums rmd160 e15b8a5733500efcba9f48232201153c9ed4f2bb \ |
---|
29 | sha256 fd00aff21af14c07eca6e0dfbc0d4dd1edcc4ec3c50e6a5dd7e962214922c08e |
---|
30 | |
---|
31 | use_bzip2 yes |
---|
32 | |
---|
33 | depends_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 |
---|
39 | patchfiles-append patch-pluginsCMakeLists.diff \ |
---|
40 | patch-uicontroller.cpp.diff |
---|
41 | |
---|
42 | variant 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 |
---|
48 | pre-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 | |
---|
58 | if {${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 | |
---|
65 | if {![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 | |
---|
72 | livecheck.url http://kde.mirrors.hoobly.com/stable/kdevelop/${kdevelopversion}/src |
---|
73 | livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+)${extract.suffix} |
---|