[134400] trunk/dports/science/gnuradio

michaelld at macports.org michaelld at macports.org
Tue Mar 24 09:34:55 PDT 2015


Revision: 134400
          https://trac.macports.org/changeset/134400
Author:   michaelld at macports.org
Date:     2015-03-24 09:34:55 -0700 (Tue, 24 Mar 2015)
Log Message:
-----------
gnuradio:
+ add temporary patch to fix use of std::complex in dvbt2_paprtr_cc_impl.cc;
+ update devel to 90246821 and next to 65df3e31, both 2015-03-22.

Modified Paths:
--------------
    trunk/dports/science/gnuradio/Portfile

Added Paths:
-----------
    trunk/dports/science/gnuradio/files/patch-dvbt2_paprtr_cc_impl.cc.diff

Modified: trunk/dports/science/gnuradio/Portfile
===================================================================
--- trunk/dports/science/gnuradio/Portfile	2015-03-24 16:08:27 UTC (rev 134399)
+++ trunk/dports/science/gnuradio/Portfile	2015-03-24 16:34:55 UTC (rev 134400)
@@ -90,14 +90,14 @@
         This port is kept up with the GNU Radio GIT 'master' branch, which is typically updated daily to weekly.  This version of GNU Radio generally contains fixes to, and its API is compatible with, the current GNU Radio release, and will be incorporated in an upcoming release.  This port may or not compile or function correctly, as it represents a work in progress.  If it does not work, check back in a few days.  Or try deactivating the currently active gnuradio port, cleaning any current builds, and trying again.
 
     name                gnuradio-devel
-    github.setup        gnuradio gnuradio 8a3ad1a5a41f95c3b624a2a87e3285c44452c9a7
-    version             20150319
+    github.setup        gnuradio gnuradio 9024682186cf176749df4de948d034661b19638f
+    version             20150322
 
     conflicts           gnuradio-legacy gnuradio gnuradio-next
 
     checksums \
-        rmd160 58bd32d5b43745c7da66d4153610883095779d6b \
-        sha256 4358d346b15bcdbe54db3bcf12602a96eec1fc962dbb7553475642c320b1a4ce
+        rmd160 eeabe4d743c9a5c535d6a5f30bc5a08b3c975df2 \
+        sha256 0d81bd7d9b440716119fcb0824e28f59f86fd1810b9738a975b724c07e42f7b2
 
 }
 
@@ -107,14 +107,14 @@
         This port is kept up with the GNU Radio GIT 'next' branch, which is typically updated daily to weekly.  This version of GNU Radio represents the next major release of GNU Radio, and hence its API is likely to be different than that provided by either gnuradio or gnuradio-devel.  This port may or not compile or function correctly, as it represents a work in progress.  If it does not work, check back in a few days.  Or try deactivating the currently active gnuradio port, cleaning any current builds, and trying again.
 
     name                gnuradio-next
-    github.setup        gnuradio gnuradio e845d8bc2973649bf88aec79fad48198bd06a052
-    version             20150319
+    github.setup        gnuradio gnuradio 65df3e31166b8f517a3779cddcdb7db5e68cdc9c
+    version             20150322
 
     conflicts           gnuradio-legacy gnuradio gnuradio-devel
 
     checksums \
-        rmd160 aa884e5fe0608c82cc17d2c9c61d6c51b46ea70e \
-        sha256 43b9f3d2fffbe570c4f1470d7a40bf534348e75d678c9826f98b3fc521ed4161
+        rmd160 fbc5849e3f92c6f113d2360d86364c1b972cc953 \
+        sha256 a3bbe2ef48a44da51a6ccfa9cc64d6b99fc0cf26a48542a9e9122847cedcbfbe
 
     # overload the github livecheck URL with the correct branch
 
@@ -152,6 +152,11 @@
         # temporary misc patches for warnings and some bug fixes
         patchfiles-append \
             patch-various.diff
+
+        # temporary patch to fix use of std::complex in dvbt2_paprtr_cc_impl.cc
+        patchfiles-append \
+            patch-dvbt2_paprtr_cc_impl.cc.diff
+
     }
 
     # 3.7 API variants

Added: trunk/dports/science/gnuradio/files/patch-dvbt2_paprtr_cc_impl.cc.diff
===================================================================
--- trunk/dports/science/gnuradio/files/patch-dvbt2_paprtr_cc_impl.cc.diff	                        (rev 0)
+++ trunk/dports/science/gnuradio/files/patch-dvbt2_paprtr_cc_impl.cc.diff	2015-03-24 16:34:55 UTC (rev 134400)
@@ -0,0 +1,50 @@
+--- gr-dtv/lib/dvbt2/dvbt2_paprtr_cc_impl.cc.orig
++++ gr-dtv/lib/dvbt2/dvbt2_paprtr_cc_impl.cc
+@@ -24,7 +24,6 @@
+ 
+ #include <gnuradio/io_signature.h>
+ #include "dvbt2_paprtr_cc_impl.h"
+-#include <complex.h>
+ #include <volk/volk.h>
+ #include <stdio.h>
+ 
+@@ -670,21 +669,16 @@ namespace gr {
+     {
+       const gr_complex *in = (const gr_complex *) input_items[0];
+       gr_complex *out = (gr_complex *) output_items[0];
+-      gr_complex zero, one;
+-      int index, valid;
+-      int L_FC = 0;
+       gr_complex *dst;
++      int m = 0, L_FC = 0, index, valid;
+       float normalization = 1.0 / N_TR;
+-      int m = 0;
+-      float y, a, alpha, center = (C_PS - 1) / 2;
++      float y, a, alpha, center = (C_PS - 1) / 2.0;
+       float aMax = 5.0 * N_TR * sqrt(10.0 / (27.0 * C_PS));
++      const gr_complex zero (0.0, 0.0);
++      const gr_complex one (1.0, 0.0);
+       gr_complex u, result, temp;
+-      double _Complex vtemp;
++      double vtemp;
+ 
+-      one.real() = 1.0;
+-      one.imag() = 0.0;
+-      zero.real() = 0.0;
+-      zero.imag() = 0.0;
+       if (N_FC != 0) {
+         L_FC = 1;
+       }
+@@ -767,10 +761,8 @@ namespace gr {
+                 u.imag() = (in[m].imag() + c[m].imag()) / y;
+                 alpha = y - v_clip;
+                 for (int n = 0; n < N_TR; n++) {
+-                  vtemp = 0.0 + ((2 * M_PI * m * ((papr_map[n] + shift) - center)) / papr_fft_size * _Complex_I);
+-                  vtemp = cexp(vtemp);
+-                  ctemp[n].real() = creal(vtemp);
+-                  ctemp[n].imag() = -cimag(vtemp);
++                  vtemp = (-2.0 * M_PI * m * ((papr_map[n] + shift) - center)) / papr_fft_size;
++                  ctemp[n] = std::exp (gr_complexd (0.0, vtemp));
+                 }
+                 volk_32fc_s32fc_multiply_32fc(v, ctemp, u, N_TR);
+                 temp.real() = alpha;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150324/bf5ab0bf/attachment.html>


More information about the macports-changes mailing list