Revision
116555
Author
michaelld@macports.org
Date
2014-01-28 08:26:48 -0800 (Tue, 28 Jan 2014)

Log Message

gr-osmosdr: add bladeRF as variant, enabled by default.

Modified Paths

Diff

Modified: trunk/dports/science/gr-osmosdr/Portfile (116554 => 116555)


--- trunk/dports/science/gr-osmosdr/Portfile	2014-01-28 15:27:42 UTC (rev 116554)
+++ trunk/dports/science/gr-osmosdr/Portfile	2014-01-28 16:26:48 UTC (rev 116555)
@@ -23,6 +23,7 @@
         This port is kept up with the gr-osmosdr GIT 'master' branch, which is typically updated weekly to monthly, providing compatibility with GNU Radio release 3.7 API: the gnuradio and gnuradio-devel ports.  ${description_common}
 
     version             20140126
+    revision            1
 
     fetch.type          git
     git.url             git://git.osmocom.org/gr-osmosdr
@@ -61,6 +62,7 @@
         This port is for the gr-osmosdr gr3.6 branch, providing compatibility with GNU Radio release 3.6 API: the gnuradio-legacy port.  ${description_common}
 
     version             20140126
+    revision            1
 
     fetch.type          git
     git.url             git://git.osmocom.org/gr-osmosdr
@@ -111,7 +113,7 @@
 
 # per user concensus: enable all variants except +debug and +universal
 
-default_variants +docs +uhd +swig +hackrf +fcdproplus +rtlsdr
+default_variants +docs +uhd +swig +hackrf +fcdproplus +rtlsdr +bladeRF
 
 # set Python variants
 
@@ -306,3 +308,16 @@
     configure.args-append -DENABLE_RTL=OFF
 
 }
+
+variant bladeRF description "Install ${name} with support for bladeRF" {
+
+    depends_lib-append port:bladeRF
+    configure.args-append -DENABLE_BLADERF=ON
+
+}
+
+if {![variant_isset bladeRF]} {
+
+    configure.args-append -DENABLE_BLADERF=OFF
+
+}