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 117140 2014-02-17 15:18:38Z nicos@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup kde4 1.1 |
---|
6 | PortGroup muniversal 1.0 |
---|
7 | PortGroup compiler_blacklist_versions 1.0 |
---|
8 | |
---|
9 | name kdev-qmake |
---|
10 | set release 1.6.60 |
---|
11 | categories kde kde4 |
---|
12 | platforms darwin |
---|
13 | license GPL-2+ |
---|
14 | maintainers gmail.com:rjvbertin openmaintainer |
---|
15 | |
---|
16 | fetch.type git |
---|
17 | if {[file exists ${filespath}/kdev-qmake/.git]} { |
---|
18 | git.url ${filespath}/kdev-qmake |
---|
19 | } else { |
---|
20 | git.url git://anongit.kde.org/kdev-qmake |
---|
21 | } |
---|
22 | # the latest version that still builds against KDE4: |
---|
23 | git.branch a801daf |
---|
24 | version ${release}-g${git.branch} |
---|
25 | revision 1 |
---|
26 | |
---|
27 | description a KDevelop plugin providing QMake support. |
---|
28 | long_description a KDevelop plugin providing QMake support allowing to import projects defined via \ |
---|
29 | a QMake .pro file. |
---|
30 | homepage http://www.kdevelop.org |
---|
31 | distname ${name}-${release} |
---|
32 | |
---|
33 | depends_lib-append port:kdelibs4 \ |
---|
34 | port:kdevelop-pg-qt \ |
---|
35 | path:lib/cmake/kdevplatform/KDevPlatformConfig.cmake:kdevplatform \ |
---|
36 | path:share/apps/cmake/modules/FindKDevelop.cmake:kdevelop |
---|
37 | depends_build-append \ |
---|
38 | path:${prefix}/share/apps/kdevappwizard/templates/qmake_qt4guiapp.tar.bz2:kapptemplate |
---|
39 | |
---|
40 | depends_lib-delete port:phonon |
---|
41 | |
---|
42 | compiler.blacklist-append {clang < 500} |
---|
43 | compiler.blacklist-append macports-clang-3.1 macports-clang-3.0 |
---|
44 | compiler.blacklist-append macports-llvm-gcc-4.2 llvm-gcc-4.2 |
---|
45 | |
---|
46 | #Binaries do not link to openssl, nor use the ssl backend of kdelibs4 |
---|
47 | license_noconflict openssl |
---|
48 | |
---|
49 | configure.args-append -DKDE4_BUILD_TESTS:BOOL=ON |
---|
50 | |
---|
51 | pre-configure { |
---|
52 | configure.args-append -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_STRIP:FILEPATH=/bin/echo |
---|
53 | } |
---|
54 | |
---|
55 | #Using c++0x for Lion and higher in case of clang 64-bit |
---|
56 | if {${configure.compiler} eq "clang" && ${os.platform} eq "darwin" && ${os.major} >= 11} { |
---|
57 | lappend merger_configure_args(x86_64) -DCMAKE_CXX_FLAGS='-stdlib=libc++' -DHAVE_UNORDERED_MAP=1 |
---|
58 | if {${build_arch} eq "x86_64" && ![variant_isset universal]} { |
---|
59 | configure.args-append -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DHAVE_UNORDERED_MAP=1 |
---|
60 | } |
---|
61 | } |
---|
62 | |
---|
63 | post-destroot { |
---|
64 | # already in port:kapptemplate |
---|
65 | delete ${destroot}${prefix}/share/apps/kdevappwizard/templates/qmake_qt4guiapp.tar.bz2 |
---|
66 | } |
---|
67 | |
---|
68 | livecheck.type none |
---|