[131909] trunk/dports/science/gr-dvbs

michaelld at macports.org michaelld at macports.org
Tue Jan 20 12:06:11 PST 2015


Revision: 131909
          https://trac.macports.org/changeset/131909
Author:   michaelld at macports.org
Date:     2015-01-20 12:06:10 -0800 (Tue, 20 Jan 2015)
Log Message:
-----------
gr-dvbs: temporary patch to hopefully fix compiling using libc++; also works with libstdc++.

Modified Paths:
--------------
    trunk/dports/science/gr-dvbs/Portfile

Added Paths:
-----------
    trunk/dports/science/gr-dvbs/files/patch-lib_modulator_bc_impl.cc.diff

Modified: trunk/dports/science/gr-dvbs/Portfile
===================================================================
--- trunk/dports/science/gr-dvbs/Portfile	2015-01-20 20:05:28 UTC (rev 131908)
+++ trunk/dports/science/gr-dvbs/Portfile	2015-01-20 20:06:10 UTC (rev 131909)
@@ -48,6 +48,11 @@
 configure.dir       ${workpath}/build
 build.dir           ${workpath}/build
 
+# temporary patch to fix compiling using libc++;
+# also works with libstdc++
+
+patchfiles-append patch-lib_modulator_bc_impl.cc.diff
+
 # remove top-level library path, such that internal libraries are used
 # instead of any already-installed ones.
 

Added: trunk/dports/science/gr-dvbs/files/patch-lib_modulator_bc_impl.cc.diff
===================================================================
--- trunk/dports/science/gr-dvbs/files/patch-lib_modulator_bc_impl.cc.diff	                        (rev 0)
+++ trunk/dports/science/gr-dvbs/files/patch-lib_modulator_bc_impl.cc.diff	2015-01-20 20:06:10 UTC (rev 131909)
@@ -0,0 +1,26 @@
+--- lib/modulator_bc_impl.cc.orig	2015-01-20 14:59:46.000000000 -0500
++++ lib/modulator_bc_impl.cc	2015-01-20 15:00:53.000000000 -0500
+@@ -43,16 +43,13 @@
+               gr::io_signature::make(1, 1, sizeof(unsigned char)),
+               gr::io_signature::make(1, 1, sizeof(gr_complex)))
+     {
+-        qpsk[0].real() = (cos(M_PI / 4.0));
+-        qpsk[0].imag() = (sin(M_PI / 4.0));
+-        qpsk[1].real() = (cos(7 * M_PI / 4.0));
+-        qpsk[1].imag() = (sin(7 * M_PI / 4.0));
+-        qpsk[2].real() = (cos(3 * M_PI / 4.0));
+-        qpsk[2].imag() = (sin(3 * M_PI / 4.0));
+-        qpsk[3].real() = (cos(5 * M_PI / 4.0));
+-        qpsk[3].imag() = (sin(5 * M_PI / 4.0));
+-        qpsk[4].real() = 0.0;
+-        qpsk[4].imag() = 0.0;
++      gr_complex l_qpsk[5] =
++	{gr_complex(cos(1 * M_PI / 4.0), sin(1 * M_PI / 4.0)),
++	 gr_complex(cos(7 * M_PI / 4.0), sin(7 * M_PI / 4.0)),
++	 gr_complex(cos(3 * M_PI / 4.0), sin(3 * M_PI / 4.0)),
++	 gr_complex(cos(5 * M_PI / 4.0), sin(5 * M_PI / 4.0)),
++	 gr_complex(0, 0)};
++      std::memcpy(qpsk, l_qpsk, sizeof(l_qpsk));
+         set_output_multiple(2);
+     }
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150120/edc1075f/attachment.html>


More information about the macports-changes mailing list