[134257] trunk/dports/science/gr-rds

michaelld at macports.org michaelld at macports.org
Fri Mar 20 10:36:16 PDT 2015


Revision: 134257
          https://trac.macports.org/changeset/134257
Author:   michaelld at macports.org
Date:     2015-03-20 10:36:15 -0700 (Fri, 20 Mar 2015)
Log Message:
-----------
gr-rds: patch to fix use of binary literal -> hex literal to be more compatible with older compilers.

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

Added Paths:
-----------
    trunk/dports/science/gr-rds/files/
    trunk/dports/science/gr-rds/files/patch-lib_encoder_impl.cc.diff

Modified: trunk/dports/science/gr-rds/Portfile
===================================================================
--- trunk/dports/science/gr-rds/Portfile	2015-03-20 17:27:02 UTC (rev 134256)
+++ trunk/dports/science/gr-rds/Portfile	2015-03-20 17:36:15 UTC (rev 134257)
@@ -49,6 +49,11 @@
 
 cmake.out_of_source yes
 
+# patch to fix use of binary literal -> hex literal to be more
+# compatible with older compilers
+
+patchfiles-append patch-lib_encoder_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-rds/files/patch-lib_encoder_impl.cc.diff
===================================================================
--- trunk/dports/science/gr-rds/files/patch-lib_encoder_impl.cc.diff	                        (rev 0)
+++ trunk/dports/science/gr-rds/files/patch-lib_encoder_impl.cc.diff	2015-03-20 17:36:15 UTC (rev 134257)
@@ -0,0 +1,11 @@
+--- lib/encoder_impl.cc.orig	2015-03-20 13:14:26.000000000 -0400
++++ lib/encoder_impl.cc	2015-03-20 13:14:37.000000000 -0400
+@@ -392,7 +392,7 @@
+ void encoder_impl::prepare_group1a(void) {
+ 	std::cout << "preparing group 1" << std::endl;
+ 	//infoword[1] = infoword[1] | (1 << 4); // TMC in 8A
+-	infoword[2] = (0b10000000 << 8) | 0xE0;
++	infoword[2] = (0x80 << 8) | 0xE0;
+ 	infoword[3] = 0; // time
+ }
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150320/ab7a35de/attachment.html>


More information about the macports-changes mailing list