1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | name qcachegrind |
---|
6 | version 0.7.1 |
---|
7 | #revision 1 |
---|
8 | categories devel |
---|
9 | maintainers frederic.devernay@m4x.org |
---|
10 | description Callgrind profile data visualization |
---|
11 | |
---|
12 | long_description ${description} |
---|
13 | |
---|
14 | homepage http://kcachegrind.sourceforge.net/ |
---|
15 | checksums md5 39376990a9ea2e9f1b75f43f9104fd70 \ |
---|
16 | sha1 efa0b3abb7afe211c2f227b78a8699d80846f8ea \ |
---|
17 | rmd160 5f03317e354e1d9f924983a7890abdcbc0423233 |
---|
18 | master_sites http://kcachegrind.sourceforge.net/ |
---|
19 | distname kcachegrind-${version} |
---|
20 | extract.suffix .tgz |
---|
21 | |
---|
22 | #depends_build \ |
---|
23 | # port:texinfo |
---|
24 | depends_lib \ |
---|
25 | port:qt4-mac |
---|
26 | |
---|
27 | universal_variant no |
---|
28 | |
---|
29 | destroot { |
---|
30 | copy ${worksrcpath}/qcachegrind/qcachegrind.app ${destroot}${applications_dir} |
---|
31 | } |
---|
32 | |
---|
33 | variant qt4nokia description {Use the official Qt4 distribution from http://qt.nokia.com/download} {} |
---|
34 | |
---|
35 | # move setting of 'qt_qmake_cmd' outside variants, since 'if' |
---|
36 | # statements are processed in-order while variants are processed after |
---|
37 | # everything else. |
---|
38 | set qt_qmake_cmd "" |
---|
39 | if {[variant_isset qt4nokia]} { |
---|
40 | set qt_qmake_cmd "/usr/bin/qmake -spec macx-g++" |
---|
41 | depends_lib-delete port:qt4-mac |
---|
42 | pre-configure { |
---|
43 | if {![file exists "/Library/Frameworks/QtOpenGL.framework/Headers/QtOpenGL"]} { |
---|
44 | return -code error "\n********************\n${name} requires Qt for Mac, please download and install it from http://qt.nokia.com/download\n********************" |
---|
45 | } |
---|
46 | } |
---|
47 | } else { |
---|
48 | PortGroup qt4 1.0 |
---|
49 | } |
---|
50 | |
---|
51 | configure.cmd ${qt_qmake_cmd} |
---|
52 | configure.pre_args INSTALLBASE="${prefix}" |
---|
53 | |
---|
54 | livecheck.type none |
---|