Ticket #48226: QMK-Groundstation_Portfile.diff

File QMK-Groundstation_Portfile.diff, 1.9 KB (added by michaelld (Michael Dickens), 9 years ago)
  • Portfile

     
    33
    44PortSystem          1.0
    55PortGroup           xcode 1.0
    6 PortGroup           qt4 1.0
     6PortGroup           qmake 1.0
    77
    88name                QMK-Groundstation
    99version             1.0.1
    10 revision            2
     10revision            3
    1111maintainers         lilalinux.net:macports
    1212description         Configuration and Debugging Utility for the MikroKopter Project
    1313long_description    Configuration and Debugging Utility for the MikroKopter Project.
    1414homepage            http://www.mikrokopter.de/
    1515
    16 master_sites        http://svn.mikrokopter.de/filedetails.php?repname=Projects&path=%2FQMK-Groundstation%2FRelease%2F
     16master_sites        http://svn.mikrokopter.de/websvn/listing.php?repname=Projects&path=%2FQMK-Groundstation%2FRelease%2F
    1717distname            ${name}-v${version}
    1818extract.suffix      .tgz
    1919
     
    2323
    2424worksrcdir          ${name}_${version}
    2525
     26depends_lib-append  port:qwt52
     27
    2628post-extract {
    2729    # rename worksrcdir to remove a space
    2830    file rename "${workpath}/${name} ${version}" ${workpath}/${worksrcdir}
     
    3537        ${worksrcpath}/osx.pro
    3638}
    3739
    38 configure.cmd       ${qt_qmake_cmd}
    39 configure.pre_args  -spec macx-xcode osx.pro
     40configure.pre_args-append -spec macx-xcode osx.pro
     41
     42# override the xcode PortGroup's setting, to use qmake for configure
    4043use_configure       yes
    4144
    4245post-build {
     
    4851        xinstall -d -m 755 ${appPath}
    4952        file copy ${worksrcpath}/build/Release/${name}.app ${appPath}/${name}.app
    5053}
    51 
    52 variant qwt conflicts qwt52 description {Use qwt} {
    53     depends_lib-append  port:qwt
    54 }
    55 
    56 variant qwt52 conflicts qwt description {Use qwt52} {
    57     depends_lib-append  port:qwt52
    58 }
    59 
    60 if {![variant_isset qwt] && ![variant_isset qwt52]} {
    61     default_variants    +qwt52
    62 }