1 | # -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: qmake5-2.0.tcl 106930 2015-01-12 15:45:56Z gmail.com:rjvbertin $ |
---|
3 | # $Id: qmake-1.0.tcl 106930 2013-06-12 03:13:56Z ryandesign@macports.org $ |
---|
4 | |
---|
5 | # |
---|
6 | # Copyright (c) 2013 The MacPorts Project |
---|
7 | # All rights reserved. |
---|
8 | # |
---|
9 | # Redistribution and use in source and binary forms, with or without |
---|
10 | # modification, are permitted provided that the following conditions are |
---|
11 | # met: |
---|
12 | # |
---|
13 | # 1. Redistributions of source code must retain the above copyright |
---|
14 | # notice, this list of conditions and the following disclaimer. |
---|
15 | # 2. Redistributions in binary form must reproduce the above copyright |
---|
16 | # notice, this list of conditions and the following disclaimer in the |
---|
17 | # documentation and/or other materials provided with the distribution. |
---|
18 | # 3. Neither the name of Apple Computer, Inc. nor the names of its |
---|
19 | # contributors may be used to endorse or promote products derived from |
---|
20 | # this software without specific prior written permission. |
---|
21 | # |
---|
22 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
---|
23 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
---|
24 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
---|
25 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
---|
26 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
---|
27 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
---|
28 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
---|
29 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
---|
30 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
---|
31 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
---|
32 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
---|
33 | # |
---|
34 | # |
---|
35 | # This portgroup defines standard settings when using qmake. |
---|
36 | # |
---|
37 | # Usage: |
---|
38 | # PortGroup qmake5 2.0 |
---|
39 | |
---|
40 | PortGroup qt5 2.0 |
---|
41 | |
---|
42 | configure.cmd ${qt_qmake_cmd} -r |
---|
43 | configure.pre_args-replace --prefix=${prefix} PREFIX=${prefix} |
---|
44 | configure.universal_args-delete --disable-dependency-tracking |
---|
45 | |
---|
46 | # qmake defaults to -mmacosx-version-min=10.6, which implies stdlib is libstdc++, which caused problems |
---|
47 | # (see https://trac.macports.org/wiki/FAQ#libcpp) |
---|
48 | configure.pre_args-append "QMAKE_MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}" |
---|
49 | |
---|
50 | # qt5-mac does not currently support debug. |
---|
51 | configure.pre_args-append "CONFIG+=release" |
---|