source: trunk/dports/aqua/QMK-Groundstation/Portfile @ 72605

Last change on this file since 72605 was 72605, checked in by michaelld@…, 9 years ago

Changes to use qt4 portgroup.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 72605 2010-10-21 12:41:08Z michaelld@macports.org $
3
4PortSystem          1.0
5PortGroup           xcode 1.0
6PortGroup           qt4 1.0
7
8name                QMK-Groundstation
9version             1.0.1
10revision            1
11maintainers         lilalinux.net:macports
12description         Configuration and Debugging Utility for the MikroKopter Project
13long_description    Configuration and Debugging Utility for the MikroKopter Project.
14homepage            http://www.mikrokopter.de/
15
16master_sites        http://svn.mikrokopter.de/filedetails.php?repname=Projects&path=%2FQMK-Groundstation%2FRelease%2F
17distname            ${name}-v${version}
18extract.suffix      .tgz
19
20checksums           md5     9b131ccbaebf6bfdd6c5aaf3094b0328 \
21                    sha1    ced3a82e50fd2c69abbda23d3d091e5d158e7f1f \
22                    rmd160  10de4f90afa99abbfa2638d8e09fa005a50a1579
23
24worksrcdir          ${name}_${version}
25
26post-extract {
27    # rename worksrcdir to remove a space
28    file rename "${workpath}/${name} ${version}" ${workpath}/${worksrcdir}
29}
30
31post-patch {
32    # make sure ${prefix}/include and ${prefix}/include/qwt are in
33    # 'qmake's INCLUDEPATH
34    reinplace "/INCLUDEPATH/ s@include@include ${prefix}/include/qwt@" \
35        ${worksrcpath}/osx.pro
36}
37
38configure.cmd       ${qt_qmake_cmd}
39configure.pre_args  -spec macx-xcode osx.pro
40use_configure       yes
41
42post-build {
43        delete ${worksrcpath}/build/bin/${name}.app
44}
45
46destroot {
47        set appPath ${destroot}${applications_dir}
48        xinstall -d -m 755 ${appPath}
49        file copy ${worksrcpath}/build/Default/${name}.app ${appPath}/${name}.app
50}
51
52variant qwt conflicts qwt52 description {Use qwt} {
53    depends_lib-append  port:qwt
54}
55
56variant qwt52 conflicts qwt description {Use qwt52} {
57    depends_lib-append  port:qwt52
58}
59
60if {![variant_isset qwt] && ![variant_isset qwt52]} {
61    default_variants    +qwt52
62}
Note: See TracBrowser for help on using the repository browser.