[134861] trunk/dports/science/gqrx/Portfile
michaelld at macports.org
michaelld at macports.org
Wed Apr 8 18:16:38 PDT 2015
Revision: 134861
https://trac.macports.org/changeset/134861
Author: michaelld at macports.org
Date: 2015-04-08 18:16:38 -0700 (Wed, 08 Apr 2015)
Log Message:
-----------
gqrx: allow for building with Qt4 or Qt5.
Modified Paths:
--------------
trunk/dports/science/gqrx/Portfile
Modified: trunk/dports/science/gqrx/Portfile
===================================================================
--- trunk/dports/science/gqrx/Portfile 2015-04-08 23:39:22 UTC (rev 134860)
+++ trunk/dports/science/gqrx/Portfile 2015-04-09 01:16:38 UTC (rev 134861)
@@ -2,13 +2,12 @@
# $Id$
PortSystem 1.0
-PortGroup qmake 1.0
PortGroup github 1.0
name gqrx
maintainers michaelld openmaintainer
-description Gqrx is a software defined radio (SDR) receiver using GNU Radio, OSMOSDR, and Qt4.
+description Gqrx is a software defined radio (SDR) receiver using GNU Radio, OSMOSDR, and Qt (4 or 5).
categories science comms
license GPL-3 BSD
@@ -107,7 +106,7 @@
# libstdc++ and libc++ runtimes; this patch is included with the
# release and devel from upstream.
- patchfiles-append patch-fix-real-imag.diff
+ patchfiles-append patch-fix-real-imag.diff
# no version checking for now
@@ -121,6 +120,25 @@
if {${subport} ne "gqrx-devel"} {
+ variant qt4 conflicts qt5 description {Build ${subport} using Qt4} {
+ PortGroup qmake 1.0
+ }
+
+ variant qt5 conflicts qt4 description {Build ${subport} using Qt5} {
+ PortGroup qmake5 1.0
+ }
+
+ # default to +qt4
+ if {![variant_isset qt4] && ![variant_isset qt5]} {
+ default_variants +qt4
+ }
+
+ # make sure -qt4 is not used alone
+ if {![variant_isset qt4] && ![variant_isset qt5]} {
+ ui_error "\n\nYou must select either the +qt4 or +qt5 variant.\n"
+ return -code error "Invalid variant selection"
+ }
+
post-patch {
# set install location
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150408/ff663620/attachment-0001.html>
More information about the macports-changes
mailing list