open-scene-graph: support C++11 mode.

Closes Homebrew/homebrew#19999.
This commit is contained in:
Xiyue Deng 2013-10-12 04:25:30 -07:00
parent 38bcc718d7
commit 0f3211eac7

View file

@ -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)'