2011-10-29 06:33:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Field3d < Formula
|
|
|
|
homepage 'https://sites.google.com/site/field3d/'
|
2012-02-21 06:04:21 +00:00
|
|
|
url 'https://github.com/imageworks/Field3D/tarball/v1.3.2'
|
2012-02-14 03:35:24 +00:00
|
|
|
sha1 '6f4de442869587f7fa5ce6f5f8bd0630b6ae7192'
|
2011-10-29 06:33:41 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
depends_on 'boost'
|
|
|
|
depends_on 'ilmbase'
|
|
|
|
depends_on 'hdf5'
|
|
|
|
|
2012-08-13 19:19:36 +00:00
|
|
|
def patches
|
|
|
|
# add boost system to required boost libs
|
|
|
|
# already reported upstream, see https://github.com/imageworks/Field3D/pull/51
|
2012-08-13 19:19:36 +00:00
|
|
|
# Remove at > 1.3.2
|
2012-08-13 19:19:36 +00:00
|
|
|
DATA
|
|
|
|
end
|
2011-10-29 06:33:41 +00:00
|
|
|
|
2012-08-13 19:19:36 +00:00
|
|
|
def install
|
2012-08-13 19:19:36 +00:00
|
|
|
mkdir 'brewbuild' do
|
|
|
|
args = std_cmake_args + %w[
|
|
|
|
-DDOXYGEN_EXECUTABLE=NOTFOUND
|
|
|
|
..]
|
|
|
|
system "cmake", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
2012-08-13 19:19:36 +00:00
|
|
|
end
|
|
|
|
end
|
2011-12-12 03:45:20 +00:00
|
|
|
|
2012-08-13 19:19:36 +00:00
|
|
|
__END__
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
|
index f382937..82d2487 100644
|
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
|
|
|
@@ -39,7 +39,7 @@ set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake )
|
2011-12-12 03:45:20 +00:00
|
|
|
|
2012-08-13 19:19:36 +00:00
|
|
|
FIND_PACKAGE (Doxygen)
|
|
|
|
FIND_PACKAGE (HDF5)
|
|
|
|
-FIND_PACKAGE (Boost COMPONENTS thread program_options)
|
|
|
|
+FIND_PACKAGE (Boost COMPONENTS system thread program_options)
|
|
|
|
FIND_PACKAGE (ILMBase)
|
2011-12-12 03:45:20 +00:00
|
|
|
|
2012-08-13 19:19:36 +00:00
|
|
|
OPTION (INSTALL_DOCS "Automatically install documentation." ON)
|