<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/98a6d96874a4c0f194b95f2aaacf1fe54367c038">https://github.com/macports/macports-ports/commit/98a6d96874a4c0f194b95f2aaacf1fe54367c038</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 98a6d96874a4c0f194b95f2aaacf1fe54367c038
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Wed Oct 24 03:46:31 2018 -0700

<span style='display:block; white-space:pre;color:#404040;'>    OpenSceneGraph: respect MacPorts compiler flags
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Fixes https://trac.macports.org/ticket/45287
</span>---
 graphics/OpenSceneGraph/Portfile                   |  8 +++--
 .../OpenSceneGraph/files/patch-CMakeLists.txt.diff | 40 ++++++++++++++++++++++
 2 files changed, 45 insertions(+), 3 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/OpenSceneGraph/Portfile b/graphics/OpenSceneGraph/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 72c6424..216aa6c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/OpenSceneGraph/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/OpenSceneGraph/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup               cxx11 1.1
</span> PortGroup               cmake 1.1
 
 github.setup            openscenegraph OpenSceneGraph 3.6.2 OpenSceneGraph-
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision                1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision                2
</span> conflicts               OpenSceneGraph-devel
 platforms               darwin
 categories              graphics
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,6 +24,10 @@ checksums               rmd160  1cbd3fddd250fd7d2ffccdaa3b0f3f314cedea28 \
</span>                         sha256  07d8115d1a6fdcaf4d5ecb1e8e459c8f21f08ab7f18bc52aca349157f401275f \
                         size    5779191
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# respect MacPors compiler flags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# see https://trac.macports.org/ticket/45287
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append       patch-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build-append    port:pkgconfig
 
 depends_lib             port:freetype \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -40,8 +44,6 @@ depends_lib             port:freetype \
</span>                         port:boost \
                         port:gstreamer1-gst-plugins-base
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cxxflags-append -std=c++11
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> configure.args-append   -DOSG_CONFIG_HAS_BEEN_RUN_BEFORE=YES \
                         -DOSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio \
                         -DOSG_WINDOWING_SYSTEM=Cocoa
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/OpenSceneGraph/files/patch-CMakeLists.txt.diff b/graphics/OpenSceneGraph/files/patch-CMakeLists.txt.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..f6c43dc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/OpenSceneGraph/files/patch-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,40 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig    2018-09-14 03:16:53.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2018-10-24 03:10:52.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1014,7 +1014,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         #C4706 assignment within conditional expression
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         #C4589: Constructor of abstract class 'osgGA::CameraManipulator' ignores initializer for virtual base class 'osg::Object'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         SET(OSG_AGGRESSIVE_WARNING_FLAGS /W4 /wd4589 /wd4706 /wd4127 /wd4100)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ELSEIF(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ELSEIF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         SET(OSG_AGGRESSIVE_WARNING_FLAGS  -Wall -Wparentheses -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -Wno-overloaded-virtual)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         # CMake lacks an elseif, so other non-gcc, non-VS compilers need
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1025,25 +1025,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             SET(OSG_CXX_LANGUAGE_STANDARD "C++11" CACHE STRING "set the c++ language standard (C++98 / GNU++98 / C++11) for OSG" )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             MARK_AS_ADVANCED(OSG_CXX_LANGUAGE_STANDARD)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             # remove existing flags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            REMOVE_CXX_FLAG(-std=c++98)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            REMOVE_CXX_FLAG(-std=gnu++98)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            REMOVE_CXX_FLAG(-std=c++11)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            REMOVE_CXX_FLAG(-stdlib=libstdc++)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            REMOVE_CXX_FLAG(-stdlib=libc++)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             IF(${OSG_CXX_LANGUAGE_STANDARD} STREQUAL "c++98" OR ${OSG_CXX_LANGUAGE_STANDARD} STREQUAL "C++98")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                 set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++98")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-                set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libstdc++")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-                set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98 -stdlib=libstdc++")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++                set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             ELSE()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                 IF(${OSG_CXX_LANGUAGE_STANDARD} STREQUAL "gnu++98" OR ${OSG_CXX_LANGUAGE_STANDARD} STREQUAL "GNU++98")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                     set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "gnu++98")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-                    set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libstdc++")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-                    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++98 -stdlib=libstdc++")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++                    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++98")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                 ELSE()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                     set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-                    set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-                    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++                    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                 ENDIF()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             ENDIF()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span></pre><pre style='margin:0'>

</pre>