[113626] trunk/dports/science/gr-osmosdr/Portfile
michaelld at macports.org
michaelld at macports.org
Wed Nov 20 18:34:56 PST 2013
Revision: 113626
https://trac.macports.org/changeset/113626
Author: michaelld at macports.org
Date: 2013-11-20 18:34:56 -0800 (Wed, 20 Nov 2013)
Log Message:
-----------
gr-osmosdr: fix require_active_variants to work for legacy too.
Modified Paths:
--------------
trunk/dports/science/gr-osmosdr/Portfile
Modified: trunk/dports/science/gr-osmosdr/Portfile
===================================================================
--- trunk/dports/science/gr-osmosdr/Portfile 2013-11-21 00:11:46 UTC (rev 113625)
+++ trunk/dports/science/gr-osmosdr/Portfile 2013-11-21 02:34:56 UTC (rev 113626)
@@ -139,9 +139,17 @@
# require gnuradio to also have this Python variant
- require_active_variants \
- path:lib/libgnuradio-runtime.dylib:gnuradio ${p}
+ if {"${subport}" eq "gr-osmosdr-legacy"} {
+ require_active_variants port:gnuradio-legacy ${p}
+
+ } else {
+
+ require_active_variants \
+ path:lib/libgnuradio-runtime.dylib:gnuradio ${p}
+
+ }
+
# specify the Python dependencies
depends_lib-append \
@@ -201,9 +209,17 @@
# require gnuradio to also have this variant
- require_active_variants \
- path:lib/libgnuradio-runtime.dylib:gnuradio uhd
+ if {${subport} eq "gr-osmosdr-legacy"} {
+ require_active_variants port:gnuradio-legacy uhd
+
+ } else {
+
+ require_active_variants \
+ path:lib/libgnuradio-runtime.dylib:gnuradio uhd
+
+ }
+
configure.args-append \
-DENABLE_UHD=ON \
-DGNURADIO_UHD_INCLUDE_DIRS=${prefix}/include \
@@ -231,9 +247,17 @@
# require gnuradio to also have this variant
- require_active_variants \
- path:lib/libgnuradio-runtime.dylib:gnuradio swig
+ if {${subport} eq "gr-osmosdr-legacy"} {
+ require_active_variants port:gnuradio-legacy swig
+
+ } else {
+
+ require_active_variants \
+ path:lib/libgnuradio-runtime.dylib:gnuradio swig
+
+ }
+
configure.args-append \
-DSWIG_EXECUTABLE=${prefix}/bin/swig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131120/62ede229/attachment.html>
More information about the macports-changes
mailing list