# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup qmake 1.0 PortGroup active_variants 1.1 PortGroup github 1.0 name gqrx maintainers michaelld openmaintainer description Gqrx is a software defined radio (SDR) receiver using GNU Radio and Qt4. categories science comms homepage http://gqrx.dk/ license GPL-3 BSD platforms darwin macosx set description_common {Gqrx is a software defined radio receiver for Funcube Dongle (FCD), RTL2832U-based DVB-T devices (RTL-SDR), Universal Software Radio Peripherals (USRP) and Osmo SDR devices. Gqrx is powered by GNU Radio and the Qt GUI toolkit. Gqrx is free and open source software and anyone is invited to hack the source code to suit their needs.} configure.post_args gqrx.pro post-patch { # set install location reinplace "s|@APPSDIR@|${qt_apps_dir}|g" ${worksrcpath}/gqrx.pro # set version reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/gqrx.pro # set arch type(s) reinplace "s|@ARCHES@|${qt_arch_types}|g" ${worksrcpath}/gqrx.pro } post-destroot { # link the executable back to $qt_bins_dir ln -s ${qt_apps_dir}/Gqrx.app/Contents/MacOS/Gqrx \ ${destroot}${qt_bins_dir} } if {${subport} == ${name}} { long_description ${description} \ This port is kept up with the latest Gqrx tagged release, is typically updated every few months, and provides compatibility with the GNU Radio release 3.7 API: the gnuradio and gnuradio-devel ports. ${description_common} set full_commit 796ca0b077ef864185dc1ebf475dbbd2ed317a1a github.setup csete gqrx [string range ${full_commit} 0 7] version 2.2.0 checksums rmd160 e832f384f2760ed23d4d640adb288130a5e3af80 \ sha256 9612e8e421613078c2ce4dbec7b9b05e47a2be45df704ac0dbf899651860718c conflicts gqrx-legacy gqrx-devel patchfiles patch-gqrx.pro.diff } subport gqrx-devel { long_description ${description} \ This port is kept up with the Gqrx GIT 'master' branch, is typically updated weekly to monthly, and provides compatibility with the GNU Radio release 3.7 API: the gnuradio and gnuradio-devel ports. ${description_common} set full_commit 12c0f5581056c6fb5b4b19eefe8eb5ceb1f6ed97 github.setup csete gqrx [string range ${full_commit} 0 7] # fix port name set by github PortGroup name gqrx-devel version 2.2.1_20130825 checksums rmd160 38ac4ba5d7dc609adf7c2ad93318283f0ca9d33e \ sha256 3916bcdf8771d89a4820ca9e7a7493d573322966b738547fb3462b6573a528d8 conflicts gqrx-legacy gqrx patchfiles patch-gqrx.pro-devel.diff } subport gqrx-legacy { long_description ${description} \ This port is for the last Gqrx commit providing compatibility with GNU Radio release 3.6 API: the gnuradio-legacy port. ${description_common} github.setup csete gqrx 90ea4cfd # fix port name set by github PortGroup name gqrx-legacy version 2.0_20130703 checksums rmd160 eba005dfad221997a7d80a8d8cd132cfea209667 \ sha256 83403f9d2c05d10a8d8df76a4282c41b9d3547ceccaebecc92c1d3f0835a6f59 conflicts gqrx gqrx-devel # gqrx-legacy works with *-legacy only depends_lib-append port:gnuradio-legacy \ port:gr-osmosdr-legacy patchfiles patch-gqrx.pro-legacy.diff # no version checking for now livecheck.type none } if {${subport} != "gqrx-legacy"} { # allow gqrx to work with both gnuradio and gnuradio-devel ... depends_lib-append port:gr-osmosdr \ path:lib/libgnuradio-audio.dylib:gnuradio # ... but not with gnuradio-legacy or gnuradio-next pre-fetch { if {![catch {set installed [lindex [registry_active gnuradio-legacy] 0]}]} { # gnuradio-legacy is installed; this version of gr-osmosdr does not work with gnuradio-legacy ui_msg "\nError: ${name} requires the gnuradio or gnuradio-devel port, and will not work with the gnuradio-legacy port. deactivate gnuradio-legacy, and then install or activate gnuradio or gnuradio-devel.\n" return -code error "Invalid port dependency: gnuradio-legacy" } if {![catch {set installed [lindex [registry_active gnuradio-next] 0]}]} { # gnuradio-next is installed; this version of gr-osmosdr does not work with gnuradio-next ui_msg "\nError: ${name} requires the gnuradio or gnuradio-devel port, and will not work with the gnuradio-next port. deactivate gnuradio-next, and then install or activate gnuradio or gnuradio-devel.\n" return -code error "Invalid port dependency: gnuradio-next" } } variant portaudio description "Use PortAudio 2.0 for the audio interface" { depends_lib-append port:portaudio configure.args-append AUDIO_BACKEND=portaudio } # fix livecheck to look for commits, not tags livecheck.url https://github.com/csete/gqrx/commits/master livecheck.version ${full_commit} livecheck.regex .*permalink.*commits/(\[a-f0-9\]+).> }