[134879] trunk/dports/science/gqrx/Portfile
michaelld at macports.org
michaelld at macports.org
Thu Apr 9 06:01:29 PDT 2015
Revision: 134879
https://trac.macports.org/changeset/134879
Author: michaelld at macports.org
Date: 2015-04-09 06:01:29 -0700 (Thu, 09 Apr 2015)
Log Message:
-----------
gqrx:
+ allow +qt4/+qt5 variants with qgrx only, not gqrx-legacy;
+ gqrx-legacy uses qt4 only;
+ when selecting +qt5, make sure gnuradio* is installed with -qtgui, because we can't have Qt4 and Qt5 installed at the same time (yet), and gnuradio* does not (yet) support Qt5.
Modified Paths:
--------------
trunk/dports/science/gqrx/Portfile
Modified: trunk/dports/science/gqrx/Portfile
===================================================================
--- trunk/dports/science/gqrx/Portfile 2015-04-09 12:58:49 UTC (rev 134878)
+++ trunk/dports/science/gqrx/Portfile 2015-04-09 13:01:29 UTC (rev 134879)
@@ -119,24 +119,44 @@
homepage http://gqrx.dk/
if {${subport} ne "gqrx-devel"} {
+ if {${subport} eq "gqrx"} {
- variant qt4 conflicts qt5 description {Build ${subport} using Qt4} {
- PortGroup qmake 1.0
- }
+ 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
- }
+ variant qt5 conflicts qt4 description {Build ${subport} using Qt5} {
- # default to +qt4
- if {![variant_isset qt4] && ![variant_isset qt5]} {
- default_variants +qt4
- }
+ PortGroup qmake5 1.0
+ PortGroup active_variants 1.1
- # 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"
+ # make sure gnuradio* is installed with -qtgui, because we
+ # can't have Qt4 and Qt5 installed at the same time (yet),
+ # and gnuradio* does not (yet) support Qt5.
+
+ require_active_variants path:lib/libgnuradio-audio.dylib:gnuradio "" qtgui
+
+ }
+
+ # 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"
+
+ }
+ } else {
+
+ # gqrx-legacy uses Qt4
+ PortGroup qmake 1.0
+
}
post-patch {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150409/d9059b1f/attachment.html>
More information about the macports-changes
mailing list