<pre style='margin:0'>
Michael Dickens (michaelld) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/641781fa8cd32f3973738177feef563e97fd049f">https://github.com/macports/macports-ports/commit/641781fa8cd32f3973738177feef563e97fd049f</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 641781f CubicSDR: allow building back to OSX 10.7
</span>641781f is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 641781fa8cd32f3973738177feef563e97fd049f
</span>Author: Michael Dickens <michaelld@macports.org>
AuthorDate: Mon Apr 22 11:35:37 2019 -0400
<span style='display:block; white-space:pre;color:#404040;'> CubicSDR: allow building back to OSX 10.7
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Also make current builds cleaner via removing conflicting settings between MacPorts and the CMake script settings. Rev-bump just in case.
</span>---
science/CubicSDR/Portfile | 15 +++++++---
.../CubicSDR/files/patch-fix-build-older-osx.diff | 33 ++++++++++++++++++++++
2 files changed, 44 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/CubicSDR/Portfile b/science/CubicSDR/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 716351d..df29600 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/CubicSDR/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/CubicSDR/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,7 +23,7 @@ version 20190417-[string range ${github.version} 0 7]
</span> checksums rmd160 9e54b818c5777fefce428995e99f8ee60a7249f7 \
sha256 a13e9a5b0b0f09dfa26395a5f4d63662999bdfea85e99f638cce05c7aada1a52 \
size 36027266
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span>
wxWidgets.use wxWidgets-3.2
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -59,10 +59,17 @@ variant bundle description {Enable the optional macOS bundle of CubicSDR} {
</span>
default_variants-append +bundle
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# from documentation
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${os.platform} eq "darwin" && ${os.major} < 13} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# the readme -recommends- OSX 10.9 or later, but this is not really
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# required. Tweaking the top-level CMakeLists.txt to remove
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# constraints allows building at least back to OSX 10.7. Removing
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# these is also good practice since there are conflicts between what
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# macPorts provides (e.g., in CXXFLAGS) and what CubicSDR is trying to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# set internal to the build.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-fix-build-older-osx.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 11} {
</span> pre-fetch {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "${subport} @${version} requires OS X 10.9 or newer"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "${subport} @${version} requires OS X 10.7 or newer"
</span> return -code error "unsupported Mac OS X version"
}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/CubicSDR/files/patch-fix-build-older-osx.diff b/science/CubicSDR/files/patch-fix-build-older-osx.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..eeaef3e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/CubicSDR/files/patch-fix-build-older-osx.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,33 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -299,10 +299,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ENDIF(UNIX AND NOT APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF (APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- SET(CMAKE_OSX_DEPLOYMENT_TARGET, "10.9")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# SET(CMAKE_OSX_DEPLOYMENT_TARGET, "10.9")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(LIQUID_LIB liquid)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- link_directories(/usr/local/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# link_directories(/usr/local/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ link_directories(/opt/local/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADD_DEFINITIONS(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -706,7 +706,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF (APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADD_DEFINITIONS(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DHAVE_TYPE_TRAITS=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- -mmacosx-version-min=10.9
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# -mmacosx-version-min=10.9
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ENDIF(APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -734,7 +734,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ENDIF()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADD_DEFINITIONS(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- -std=c++0x
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# -std=c++0x
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -pthread
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -D_OSX_APP_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span></pre><pre style='margin:0'>
</pre>