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

Last change on this file was 140991, checked in by michaelld@…, 2 years ago

QMK-Groundstation: various fixes and tweaks to make more robust; addresses ticket #48226 and #39424 maintainer timeout.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 140991 2015-10-07 15:59:23Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           xcode 1.0
6PortGroup           qmake 1.0
7
8name                QMK-Groundstation
9version             1.0.1
10revision            3
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/websvn/listing.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
26depends_lib-append  port:qwt52
27
28post-extract {
29    # rename worksrcdir to remove a space
30    file rename "${workpath}/${name} ${version}" ${workpath}/${worksrcdir}
31}
32
33post-patch {
34    # make sure ${prefix}/include and ${prefix}/include/qwt are in
35    # 'qmake's INCLUDEPATH
36    reinplace "/INCLUDEPATH/ s@include@include ${prefix}/include/qwt@" \
37        ${worksrcpath}/osx.pro
38}
39
40configure.pre_args-append -spec macx-xcode osx.pro
41
42# override the xcode PortGroup's setting, to use qmake for configure
43use_configure       yes
44
45post-build {
46        delete ${worksrcpath}/build/bin/${name}.app
47}
48
49destroot {
50        set appPath ${destroot}${applications_dir}
51        xinstall -d -m 755 ${appPath}
52        file copy ${worksrcpath}/build/Release/${name}.app ${appPath}/${name}.app
53}
Note: See TracBrowser for help on using the repository browser.