Ticket #34225: Portfile

File Portfile, 1.7 KB (added by devernay (Frédéric Devernay), 12 years ago)

devel/qcachegrind/Portfile

Line 
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
4PortSystem 1.0
5name            qcachegrind
6version         0.7.1
7#revision       1
8categories      devel
9maintainers     frederic.devernay@m4x.org
10description     Callgrind profile data visualization
11
12long_description        ${description}
13
14homepage        http://kcachegrind.sourceforge.net/
15checksums           md5     39376990a9ea2e9f1b75f43f9104fd70 \
16                    sha1    efa0b3abb7afe211c2f227b78a8699d80846f8ea \
17                    rmd160  5f03317e354e1d9f924983a7890abdcbc0423233
18master_sites    http://kcachegrind.sourceforge.net/
19distname kcachegrind-${version}
20extract.suffix  .tgz
21
22#depends_build \
23#    port:texinfo
24depends_lib \
25    port:qt4-mac
26
27universal_variant   no
28
29destroot {
30    copy ${worksrcpath}/qcachegrind/qcachegrind.app ${destroot}${applications_dir}
31}
32
33variant 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.
38set qt_qmake_cmd ""
39if {[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
51configure.cmd       ${qt_qmake_cmd}
52configure.pre_args  INSTALLBASE="${prefix}"
53
54livecheck.type  none