openvdb: revison for glfw
This commit is contained in:
parent
283671e264
commit
831f8f30d5
1 changed files with 9 additions and 6 deletions
|
@ -3,6 +3,8 @@ class Openvdb < Formula
|
|||
homepage "http://www.openvdb.org/"
|
||||
url "https://github.com/dreamworksanimation/openvdb/archive/v4.0.0.tar.gz"
|
||||
sha256 "eaf37b8e723cfd011df350cb0ef93ffa22d927bf7cb1f72c38176fce523b3537"
|
||||
revision 1
|
||||
|
||||
head "https://github.com/dreamworksanimation/openvdb.git"
|
||||
|
||||
bottle do
|
||||
|
@ -11,12 +13,13 @@ class Openvdb < Formula
|
|||
sha256 "ab4d5550eeb804481176a61a3720bc131907c4506a1a006116cb8b12fce77156" => :yosemite
|
||||
end
|
||||
|
||||
option "with-viewer", "Installs the command-line tool to view OpenVDB files"
|
||||
option "with-glfw", "Installs the command-line tool to view OpenVDB files"
|
||||
option "with-test", "Installs the unit tests for the OpenVDB library"
|
||||
option "with-logging", "Requires log4cplus"
|
||||
option "with-docs", "Installs documentation"
|
||||
|
||||
deprecated_option "with-tests" => "with-test"
|
||||
deprecated_option "with-viewer" => "with-glfw"
|
||||
|
||||
depends_on "openexr"
|
||||
depends_on "ilmbase"
|
||||
|
@ -29,7 +32,7 @@ class Openvdb < Formula
|
|||
depends_on "boost"
|
||||
end
|
||||
|
||||
depends_on "homebrew/versions/glfw3" if build.with? "viewer"
|
||||
depends_on "glfw" => :optional
|
||||
depends_on "cppunit" if build.with? "test"
|
||||
depends_on "doxygen" if build.with? "docs"
|
||||
depends_on "log4cplus" if build.with? "logging"
|
||||
|
@ -63,10 +66,10 @@ class Openvdb < Formula
|
|||
args << "CONCURRENT_MALLOC_LIB="
|
||||
end
|
||||
|
||||
if build.with? "viewer"
|
||||
args << "GLFW_INCL_DIR=#{Formula["homebrew/versions/glfw3"].opt_lib}/include"
|
||||
args << "GLFW_LIB_DIR=#{Formula["homebrew/versions/glfw3"].opt_lib}/lib"
|
||||
args << "GLFW_LIB=-lglfw3"
|
||||
if build.with? "glfw"
|
||||
args << "GLFW_INCL_DIR=#{Formula["glfw"].opt_lib}/include"
|
||||
args << "GLFW_LIB_DIR=#{Formula["glfw"].opt_lib}/lib"
|
||||
args << "GLFW_LIB=-lglfw"
|
||||
else
|
||||
args << "GLFW_INCL_DIR="
|
||||
args << "GLFW_LIB_DIR="
|
||||
|
|
Loading…
Reference in a new issue