Ticket #47733: Portfile

File Portfile, 2.5 KB (added by RJVB (René Bertin), 9 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 117140 2014-02-17 15:18:38Z nicos@macports.org $
3
4PortSystem          1.0
5PortGroup           kde4 1.1
6PortGroup           muniversal 1.0
7PortGroup           compiler_blacklist_versions 1.0
8
9name                kdev-qmake
10set release         1.6.60
11categories          kde kde4
12platforms           darwin
13license             GPL-2+
14maintainers         gmail.com:rjvbertin openmaintainer
15
16fetch.type          git
17if {[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:
23git.branch          a801daf
24version             ${release}-g${git.branch}
25revision            1
26
27description         a KDevelop plugin providing QMake support.
28long_description    a KDevelop plugin providing QMake support allowing to import projects defined via \
29                    a QMake .pro file.
30homepage            http://www.kdevelop.org
31distname            ${name}-${release}
32
33depends_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
37depends_build-append \
38                    path:${prefix}/share/apps/kdevappwizard/templates/qmake_qt4guiapp.tar.bz2:kapptemplate
39
40depends_lib-delete  port:phonon
41
42compiler.blacklist-append {clang < 500}
43compiler.blacklist-append macports-clang-3.1 macports-clang-3.0
44compiler.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
47license_noconflict  openssl
48
49configure.args-append   -DKDE4_BUILD_TESTS:BOOL=ON
50
51pre-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
56if {${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
63post-destroot {
64    # already in port:kapptemplate
65    delete ${destroot}${prefix}/share/apps/kdevappwizard/templates/qmake_qt4guiapp.tar.bz2
66}
67
68livecheck.type      none