Skip to content

Commit

Permalink
glbinding: revison for glfw
Browse files Browse the repository at this point in the history
Closes #7484.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
JCount authored and MikeMcQuaid committed Dec 4, 2016
1 parent 831f8f3 commit afca82e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Formula/glbinding.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class Glbinding < Formula
homepage "https://github.com/cginternals/glbinding"
url "https://github.com/cginternals/glbinding/archive/v2.1.1.tar.gz"
sha256 "253671f2b730a6efa55de92a704938bb0f1761d151f3f8e87c043c51d46ea1e4"
revision 1

bottle do
cellar :any
Expand All @@ -12,15 +13,17 @@ class Glbinding < Formula
sha256 "97b4e0dc61be2fdd33928db4b2ed51250f38b4cab55310819715ef6f9f324530" => :mavericks
end

option "with-glfw3", "Enable tools that display OpenGL information for your system"
option "with-glfw", "Enable tools that display OpenGL information for your system"

depends_on "cmake" => :build
depends_on "homebrew/versions/glfw3" => :optional
depends_on "glfw" => :optional
needs :cxx11

def install
ENV.cxx11
system "cmake", ".", *std_cmake_args
args = std_cmake_args
args << "-DGLFW_LIBRARY_RELEASE=" if build.without? "glfw"
system "cmake", ".", *args
system "cmake", "--build", ".", "--target", "install"
end

Expand Down

0 comments on commit afca82e

Please sign in to comment.