[132726] trunk/dports/science/airspy
michaelld at macports.org
michaelld at macports.org
Mon Feb 9 06:46:58 PST 2015
Revision: 132726
https://trac.macports.org/changeset/132726
Author: michaelld at macports.org
Date: 2015-02-09 06:46:58 -0800 (Mon, 09 Feb 2015)
Log Message:
-----------
airspy: remove use of -std=gnu90, since some older compilers do not recognize it, and doing so does not seem to hurt when using newer compilers; addresses ticket #46796.
Modified Paths:
--------------
trunk/dports/science/airspy/Portfile
Added Paths:
-----------
trunk/dports/science/airspy/files/
trunk/dports/science/airspy/files/patch-disable-std-gnu90.diff
Modified: trunk/dports/science/airspy/Portfile
===================================================================
--- trunk/dports/science/airspy/Portfile 2015-02-09 07:03:12 UTC (rev 132725)
+++ trunk/dports/science/airspy/Portfile 2015-02-09 14:46:58 UTC (rev 132726)
@@ -30,6 +30,10 @@
configure.dir ${workpath}/build
build.dir ${workpath}/build
+# remove use of -std=gnu90, since some older compilers do not recognize it
+
+patchfiles-append patch-disable-std-gnu90.diff
+
# remove top-level library path, such that internal libraries are used
# instead of any already-installed ones.
Added: trunk/dports/science/airspy/files/patch-disable-std-gnu90.diff
===================================================================
--- trunk/dports/science/airspy/files/patch-disable-std-gnu90.diff (rev 0)
+++ trunk/dports/science/airspy/files/patch-disable-std-gnu90.diff 2015-02-09 14:46:58 UTC (rev 132726)
@@ -0,0 +1,22 @@
+--- libairspy/CMakeLists.txt.orig 2015-02-09 09:40:53.000000000 -0500
++++ libairspy/CMakeLists.txt 2015-02-09 09:40:57.000000000 -0500
+@@ -67,7 +67,7 @@
+ set(THREADS_USE_PTHREADS_WIN32 true)
+ else()
+ add_definitions(-Wall)
+- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90")
++# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90")
+
+ INCLUDE(TestBigEndian)
+ TEST_BIG_ENDIAN(BIGENDIAN)
+--- airspy-tools/CMakeLists.txt.orig 2015-02-09 09:44:03.000000000 -0500
++++ airspy-tools/CMakeLists.txt 2015-02-09 09:44:23.000000000 -0500
+@@ -38,7 +38,7 @@
+ add_definitions(/D _CRT_SECURE_NO_WARNINGS)
+ else()
+ add_definitions(-Wall)
+-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90")
++#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90")
+ endif()
+
+ if(NOT libairspy_SOURCE_DIR)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150209/2da47a0a/attachment.html>
More information about the macports-changes
mailing list