From 0f3211eac7aeacfd2259222f46c1b42857410f6b Mon Sep 17 00:00:00 2001 From: Xiyue Deng Date: Sat, 12 Oct 2013 04:25:30 -0700 Subject: [PATCH] open-scene-graph: support C++11 mode. Closes Homebrew/homebrew#19999. --- Formula/open-scene-graph.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Formula/open-scene-graph.rb b/Formula/open-scene-graph.rb index 98f6ccdb6a..da306007f1 100644 --- a/Formula/open-scene-graph.rb +++ b/Formula/open-scene-graph.rb @@ -8,6 +8,7 @@ class OpenSceneGraph < Formula head 'http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk/' option 'docs', 'Build the documentation with Doxygen and Graphviz' + option :cxx11 depends_on 'cmake' => :build depends_on 'pkg-config' => :build @@ -29,6 +30,8 @@ class OpenSceneGraph < Formula end def install + ENV.cxx11 if build.cxx11? + # Turning off FFMPEG takes this change or a dozen "-DFFMPEG_" variables unless build.with? 'ffmpeg' inreplace 'CMakeLists.txt', 'FIND_PACKAGE(FFmpeg)', '#FIND_PACKAGE(FFmpeg)'