<pre style='margin:0'>
ra1nb0w (ra1nb0w) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f1216ade05badfc4d5e906328225e3c2897534c1">https://github.com/macports/macports-ports/commit/f1216ade05badfc4d5e906328225e3c2897534c1</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new f1216ade05b gr-osmosdr: update commit to cffef690
</span>f1216ade05b is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f1216ade05badfc4d5e906328225e3c2897534c1
</span>Author: Davide Gerhard <ra1nb0w@macports.org>
AuthorDate: Sun Jun 13 13:03:26 2021 +0200
<span style='display:block; white-space:pre;color:#404040;'> gr-osmosdr: update commit to cffef690
</span>---
science/gr-osmosdr/Portfile | 15 +--
science/gr-osmosdr/files/add_gr-iio_support.patch | 112 +++++++++++-----------
2 files changed, 65 insertions(+), 62 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/gr-osmosdr/Portfile b/science/gr-osmosdr/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index bf754c0be31..d74336d2e45 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/gr-osmosdr/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/gr-osmosdr/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,12 +23,12 @@ long_description Includes OSMO SDR support GNU Radio source and sink blocks i
</span> compiler.cxx_standard 2011
if {${name} eq ${subport}} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- github.setup osmocom gr-osmosdr af2fda22b3b3745520ef38e9aaa757484871ee0c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- version 20200214-[string range ${github.version} 0 7]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- checksums rmd160 36df660e45eba9a33e3e0af8554b89bd2e3e3741 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 4010a5fa7000b7d4382b87840f5399ba235fac34c5f19fb6ddac21093be5b49b \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 251199
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup osmocom gr-osmosdr cffef690f29e0793cd2d6c5d028c0c929115f0ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version 20210117-[string range ${github.version} 0 7]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 d80040fa6a40280dfff5e010d5f9b2575280f5e6 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 ce916d4fd04af6cde67e137f1ffc4ac69c12284c49f412312ace13622b1a1d07 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 252770
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span>
depends_lib-append \
path:lib/libgnuradio-runtime.dylib:gnuradio
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -42,6 +42,8 @@ if {${name} eq ${subport}} {
</span> patchfiles-append \
add_airspy-spyserver_support.patch \
add_gr-iio_support.patch
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.livecheck.branch gr3.8
</span> }
subport gr37-osmosdr {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -64,6 +66,7 @@ subport gr37-osmosdr {
</span> depends_lib-append \
port:gnuradio37
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.livecheck.branch gr3.7
</span> }
# Define the available variants
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/gr-osmosdr/files/add_gr-iio_support.patch b/science/gr-osmosdr/files/add_gr-iio_support.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index add5a452e58..3a2df9c11e5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/gr-osmosdr/files/add_gr-iio_support.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/gr-osmosdr/files/add_gr-iio_support.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,18 +1,18 @@
</span> diff --git CMakeLists.txt CMakeLists.txt
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 7a2cf9d..dab2089 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 74c54f5..1f3678e 100644
</span> --- CMakeLists.txt
+++ CMakeLists.txt
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -176,6 +176,7 @@ find_package(LibHackRF)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- find_package(LibAIRSPY)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- find_package(LibAIRSPYHF)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- find_package(LibbladeRF)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+find_package(GNURadioIIO)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- find_package(SoapySDR NO_MODULE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -183,6 +183,7 @@ find_package(SoapySDR NO_MODULE)
</span> find_package(LibFreeSRP)
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_package(LibXTRX)
</span> find_package(Doxygen)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git cmake/Modules/FindGnuradioIIO.cmake cmake/Modules/FindGnuradioIIO.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++find_package(GNURadioIIO)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ##########
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git cmake/Modules/FindGNURadioIIO.cmake cmake/Modules/FindGNURadioIIO.cmake
</span> new file mode 100644
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 0000000..d2e8326
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 0000000..f26da38
</span> --- /dev/null
+++ cmake/Modules/FindGNURadioIIO.cmake
@@ -0,0 +1,34 @@
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -85,12 +85,12 @@ index 0000000..bb87a4b
</span> +FIND_PACKAGE_HANDLE_STANDARD_ARGS(IIO DEFAULT_MSG IIO_LIBRARIES IIO_INCLUDE_DIRS)
+MARK_AS_ADVANCED(IIO_LIBRARIES IIO_INCLUDE_DIRS)
diff --git lib/CMakeLists.txt lib/CMakeLists.txt
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index d04cb1d..865b58a 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 1bb8655..8612409 100644
</span> --- lib/CMakeLists.txt
+++ lib/CMakeLists.txt
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -167,6 +167,14 @@ if(ENABLE_UHD)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- add_subdirectory(uhd)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- endif(ENABLE_UHD)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -167,6 +167,14 @@ if(ENABLE_RTL_TCP)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ add_subdirectory(rtl_tcp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif(ENABLE_RTL_TCP)
</span>
+########################################################################
+# Setup IIO component
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -101,46 +101,46 @@ index d04cb1d..865b58a 100644
</span> +endif(ENABLE_IIO)
+
########################################################################
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Setup MiriSDR component
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Setup UHD component
</span> ########################################################################
diff --git lib/config.h.in lib/config.h.in
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 5303d7d..d33203a 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index d96cd80..8c8bf49 100644
</span> --- lib/config.h.in
+++ lib/config.h.in
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -10,6 +10,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #cmakedefine ENABLE_RTL
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #cmakedefine ENABLE_RTL_TCP
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #cmakedefine ENABLE_UHD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -19,6 +19,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #cmakedefine ENABLE_REDPITAYA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #cmakedefine ENABLE_FREESRP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #cmakedefine ENABLE_XTRX
</span> +#cmakedefine ENABLE_IIO
<span style='display:block; white-space:pre;background:#ffe0e0;'>- #cmakedefine ENABLE_MIRI
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #cmakedefine ENABLE_SDRPLAY
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #cmakedefine ENABLE_HACKRF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //provide NAN define for MSVC older than VC12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined(_MSC_VER) && (_MSC_VER < 1800)
</span> diff --git lib/device.cc lib/device.cc
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 586062f..b0e8a77 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index d072e27..fb5aaa1 100644
</span> --- lib/device.cc
+++ lib/device.cc
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -54,6 +54,10 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <uhd_source_c.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -85,6 +85,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <freesrp_source_c.h>
</span> #endif
+#ifdef ENABLE_IIO
+#include <plutosdr_source_c.h>
+#endif
+
<span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef ENABLE_MIRI
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <miri_source_c.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -166,6 +170,10 @@ devices_t device::find(const device_t &hint)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- BOOST_FOREACH( std::string dev, uhd_source_c::get_devices() )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "arg_helpers.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ using namespace osmosdr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -185,6 +189,10 @@ devices_t device::find(const device_t &hint)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for (std::string dev : soapy_source_c::get_devices())
</span> devices.push_back( device_t(dev) );
#endif
+#ifdef ENABLE_IIO
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ BOOST_FOREACH( std::string dev, plutosdr_source_c::get_devices() )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ for (std::string dev : plutosdr_source_c::get_devices())
</span> + devices.push_back( device_t(dev) );
+#endif
<span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef ENABLE_MIRI
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- BOOST_FOREACH( std::string dev, miri_source_c::get_devices() )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- devices.push_back( device_t(dev) );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* software-only sources should be appended at the very end,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * hopefully resulting in hardware sources to be shown first
</span> diff --git lib/plutosdr/CMakeLists.txt lib/plutosdr/CMakeLists.txt
new file mode 100644
index 0000000..835f4f2
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -565,42 +565,42 @@ index 0000000..c515ec9
</span> +
+#endif // PLUTOSDR_SOURCE_C_H
diff --git lib/source_impl.cc lib/source_impl.cc
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index f1426e0..15042f3 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 8f2028b..89899e7 100644
</span> --- lib/source_impl.cc
+++ lib/source_impl.cc
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -56,6 +56,10 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <uhd_source_c.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -92,6 +92,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <xtrx_source_c.h>
</span> #endif
+#ifdef ENABLE_IIO
+#include <plutosdr_source_c.h>
+#endif
+
<span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef ENABLE_MIRI
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <miri_source_c.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -143,6 +147,9 @@ source_impl::source_impl( const std::string &args )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef ENABLE_UHD
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- dev_types.push_back("uhd");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "arg_helpers.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "source_impl.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -165,6 +169,9 @@ source_impl::source_impl( const std::string &args )
</span> #endif
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef ENABLE_XTRX
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dev_types.push_back("xtrx");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span> +#ifdef ENABLE_IIO
+ dev_types.push_back("plutosdr");
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef ENABLE_MIRI
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- dev_types.push_back("miri");
</span> #endif
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -216,6 +223,10 @@ source_impl::source_impl( const std::string &args )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- BOOST_FOREACH( std::string dev, uhd_source_c::get_devices() )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ std::cerr << "gr-osmosdr "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ << GR_OSMOSDR_VERSION << " (" << GR_OSMOSDR_LIBVER << ") "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -245,6 +252,10 @@ source_impl::source_impl( const std::string &args )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for (std::string dev : xtrx_source_c::get_devices())
</span> dev_list.push_back( dev );
#endif
+#ifdef ENABLE_IIO
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ BOOST_FOREACH( std::string dev, plutosdr_source_c::get_devices() )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ for (std::string dev : plutosdr_source_c::get_devices())
</span> + dev_list.push_back( dev );
+#endif
<span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef ENABLE_MIRI
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- BOOST_FOREACH( std::string dev, miri_source_c::get_devices() )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- dev_list.push_back( dev );
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -320,6 +331,13 @@ source_impl::source_impl( const std::string &args )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // std::cerr << std::endl;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // for (std::string dev : dev_list)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -376,6 +387,13 @@ source_impl::source_impl( const std::string &args )
</span> }
#endif
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -611,6 +611,6 @@ index f1426e0..15042f3 100644
</span> + }
+#endif
+
<span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef ENABLE_MIRI
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if ( dict.count("miri") ) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- miri_source_c_sptr src = make_miri_source_c( arg );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ( iface != NULL && long(block.get()) != 0 ) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _devs.push_back( iface );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>