source: trunk/dports/devel/qt4-creator-mac/Portfile

Last change on this file was 140960, checked in by michaelld@…, 22 months ago

qt4 various: change qt_dir to ${prefix}/libexec/qt4 to allow for a parallel install with qt5; rev-bump dependencies that are known to work with this change. Addresses the primary issue of #44193. Will address secondary issues down the road.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
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 140960 2015-10-06 20:13:45Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           qmake 1.0
6
7name                qt4-creator-mac
8categories          devel aqua
9platforms           darwin
10license             LGPL-2.1
11maintainers         michaelld openmaintainer
12description         Cross-platform integrated development environment (IDE) tailored to the needs of Qt developers.
13long_description    Qt Creator is a cross-platform integrated development environment (IDE) tailored to the needs of Qt developers.
14
15version             2.8.1
16revision            1
17checksums           rmd160 9348896ff468a90e2c36260621c615c1ee89e82c \
18                    sha256 d5ae007a297a4288d0e95fd605edbfb8aee80f6788c7a6cfb9cb297f50c364b9
19
20set branch          [join [lrange [split ${version} .] 0 1] .]
21homepage            http://www.qt.io/ide/
22distname            qt-creator-${version}-src
23master_sites        https://download.qt.io/official_releases/qtcreator/${branch}/${version}/
24
25depends_lib-append  port:botan \
26                    port:qt4-mac-sqlite3-plugin
27
28# fix up QMake build files to remove debug and release building;
29# specify that here instead.
30patchfiles          patch-remove_build_types.diff \
31                    patch-macports-paths.diff
32
33post-patch {
34    # remove arch from QMake build scripts
35    reinplace "/ppc/d" ${worksrcpath}/qtcreator.pri
36
37    # add MacPorts-specific paths to the list of search paths for Qt binaries
38    reinplace "s|@@PREFIX@@|${prefix}|" \
39        ${worksrcpath}/src/libs/utils/environment.cpp
40    reinplace "s|@@QT_APPS_DIR@@|${qt_apps_dir}|" \
41        ${worksrcpath}/src/plugins/qtsupport/baseqtversion.cpp
42}
43
44pre-configure {
45    # set arch type(s); done is a stage to make sure the 'options
46    # qt_arch_types' is evaluated -after- +universal (if selected).
47    configure.pre_args CONFIG+="${qt_arch_types}"
48
49    # always build just the release, no debug
50    configure.pre_args-append CONFIG+="release"
51}
52
53configure.args      "USE_SYSTEM_BOTAN=1"
54
55build.target-append docs
56
57# allow ccache, if specified by the user
58pre-build {
59    if {[tbool configure.ccache]} {
60        build.post_args "CCACHE=ccache"
61    }
62}
63
64destroot {
65    xinstall -m 755 -d ${destroot}${qt_apps_dir}
66    copy "${worksrcpath}/bin/Qt Creator.app" "${destroot}${qt_apps_dir}"
67}
68
69livecheck.type      regex
70# Qt Creator >=2.6 requires Qt 4.8
71# Qt Creator >=3.0 requires Qt 5+, so stick with the 2.8 release
72livecheck.regex     qt-creator-(2.8.\[0-9\])-src.zip
73livecheck.url       ${master_sites}
Note: See TracBrowser for help on using the repository browser.