[116624] trunk/dports/science/libosmo-dsp

michaelld at macports.org michaelld at macports.org
Fri Jan 31 07:30:42 PST 2014


Revision: 116624
          https://trac.macports.org/changeset/116624
Author:   michaelld at macports.org
Date:     2014-01-31 07:30:41 -0800 (Fri, 31 Jan 2014)
Log Message:
-----------
libosmo-dsp: add patch: <complex.h> -> "/usr/include/complex.h" to be compatible with C++ legacy headers if these are used by a C++-based project.

Modified Paths:
--------------
    trunk/dports/science/libosmo-dsp/Portfile

Added Paths:
-----------
    trunk/dports/science/libosmo-dsp/files/
    trunk/dports/science/libosmo-dsp/files/patch-complex.h.diff

Modified: trunk/dports/science/libosmo-dsp/Portfile
===================================================================
--- trunk/dports/science/libosmo-dsp/Portfile	2014-01-31 15:23:36 UTC (rev 116623)
+++ trunk/dports/science/libosmo-dsp/Portfile	2014-01-31 15:30:41 UTC (rev 116624)
@@ -15,6 +15,7 @@
 platforms           darwin macosx
 
 version             20130616
+revision            1
 
 fetch.type          git
 git.url             git://git.osmocom.org/libosmo-dsp
@@ -24,6 +25,12 @@
 depends_lib-append	port:fftw-3-single \
                     port:doxygen
 
+# <complex.h> -> "/usr/include/complex.h" to be compatible with C++
+# legacy headers if these are used by a C++-based project
+
+patchfiles-append   patch-complex.h.diff
+patch.pre_args      -p1
+
 use_autoreconf      yes
 autoreconf.args     -vi
 

Added: trunk/dports/science/libosmo-dsp/files/patch-complex.h.diff
===================================================================
--- trunk/dports/science/libosmo-dsp/files/patch-complex.h.diff	                        (rev 0)
+++ trunk/dports/science/libosmo-dsp/files/patch-complex.h.diff	2014-01-31 15:30:41 UTC (rev 116624)
@@ -0,0 +1,104 @@
+diff --git a/include/osmocom/dsp/cfile.h b/include/osmocom/dsp/cfile.h
+index be9392e..eab9996 100644
+--- a/include/osmocom/dsp/cfile.h
++++ b/include/osmocom/dsp/cfile.h
+@@ -33,7 +33,7 @@
+  *  \brief Osmocom .cfile helpers header
+  */
+ 
+-#include <complex.h>
++#include "/usr/include/complex.h"
+ 
+ /*! \brief Structure representing a currently mapped .cfile */
+ struct cfile {
+diff --git a/include/osmocom/dsp/cxvec.h b/include/osmocom/dsp/cxvec.h
+index 063e30c..5adc771 100644
+--- a/include/osmocom/dsp/cxvec.h
++++ b/include/osmocom/dsp/cxvec.h
+@@ -33,7 +33,7 @@
+  *  \brief Osmocom Complex vectors header
+  */
+ 
+-#include <complex.h>
++#include "/usr/include/complex.h"
+ 
+ #define CXVEC_FLG_REAL_ONLY	(1<<0)	/*!< \brief Real values only */
+ 
+diff --git a/include/osmocom/dsp/cxvec_math.h b/include/osmocom/dsp/cxvec_math.h
+index 7e372c4..fa045b7 100644
+--- a/include/osmocom/dsp/cxvec_math.h
++++ b/include/osmocom/dsp/cxvec_math.h
+@@ -34,7 +34,7 @@
+  *  \brief Osmocom Complex vectors math header
+  */
+ 
+-#include <complex.h>
++#include "/usr/include/complex.h"
+ #include <math.h>
+ 
+ #include <osmocom/dsp/cxvec.h>
+diff --git a/include/osmocom/dsp/iqbal.h b/include/osmocom/dsp/iqbal.h
+index c7f7e60..5b2b037 100644
+--- a/include/osmocom/dsp/iqbal.h
++++ b/include/osmocom/dsp/iqbal.h
+@@ -33,7 +33,7 @@
+  *  \brief Osmocom IQ balance utils header
+  */
+ 
+-#include <complex.h>
++#include "/usr/include/complex.h"
+ 
+ #include <osmocom/dsp/cxvec.h>
+ 
+diff --git a/src/cfile.c b/src/cfile.c
+index 4fa927f..beae845 100644
+--- a/src/cfile.c
++++ b/src/cfile.c
+@@ -30,7 +30,7 @@
+  *  \brief Osmocom .cfile helpers implementation
+  */
+ 
+-#include <complex.h>
++#include "/usr/include/complex.h"
+ #include <fcntl.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+diff --git a/src/cxvec.c b/src/cxvec.c
+index fcda8af..f6f0a9b 100644
+--- a/src/cxvec.c
++++ b/src/cxvec.c
+@@ -30,7 +30,7 @@
+  *  \brief Osmocom Complex vectors implementation
+  */
+ 
+-#include <complex.h>
++#include "/usr/include/complex.h"
+ #include <math.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+diff --git a/src/cxvec_math.c b/src/cxvec_math.c
+index 64e2d1b..24ecb58 100644
+--- a/src/cxvec_math.c
++++ b/src/cxvec_math.c
+@@ -30,7 +30,7 @@
+  *  \brief Osmocom Complex vectors math implementation
+  */
+ 
+-#include <complex.h>
++#include "/usr/include/complex.h"
+ #include <math.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+diff --git a/src/iqbal.c b/src/iqbal.c
+index e5432f9..f62db05 100644
+--- a/src/iqbal.c
++++ b/src/iqbal.c
+@@ -40,7 +40,7 @@
+  *   - Optimization based on steepest gradient with dynamic step size
+  */
+ 
+-#include <complex.h>
++#include "/usr/include/complex.h"
+ #include <stdlib.h>
+ #include <string.h>
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140131/87a5defb/attachment.html>


More information about the macports-changes mailing list