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

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

Bump to 1.0.1 (latest version); fixed use of qt4-mac; added variants
for qwt and qwt52, and corrected inclusion of qwt's header path.

  • 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 69499 2010-07-08 03:10:27Z michaelld@macports.org $
3
4PortSystem          1.0
5PortGroup           xcode 1.0
6
7name                QMK-Groundstation
8version             1.0.1
9maintainers         lilalinux.net:macports
10description         Configuration and Debugging Utility for the MikroKopter Project
11long_description    Configuration and Debugging Utility for the MikroKopter Project.
12homepage            http://www.mikrokopter.de/
13
14master_sites        http://svn.mikrokopter.de/filedetails.php?repname=Projects&path=%2FQMK-Groundstation%2FRelease%2F
15distname            ${name}-v${version}
16extract.suffix      .tgz
17
18checksums           md5     9b131ccbaebf6bfdd6c5aaf3094b0328 \
19                    sha1    ced3a82e50fd2c69abbda23d3d091e5d158e7f1f \
20                    rmd160  10de4f90afa99abbfa2638d8e09fa005a50a1579
21
22worksrcdir          ${name}_${version}
23
24post-extract {
25    # rename worksrcdir to remove a space
26    file rename "${workpath}/${name} ${version}" ${workpath}/${worksrcdir}
27}
28
29post-patch {
30    # make sure ${prefix}/include and ${prefix}/include/qwt are in
31    # 'qmake's INCLUDEPATH
32    reinplace "/INCLUDEPATH/ s@include@include ${prefix}/include/qwt@" \
33        ${worksrcpath}/osx.pro
34}
35
36set qt_dir ${prefix}/libexec/qt4-mac
37
38configure.cmd       ${qt_dir}/bin/qmake
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.