aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/field3d.rb
blob: 0771bf08ab622a0a35ebbb30e9e0ee5b5a5ae02d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
require 'formula'

class Field3d < Formula
  homepage 'https://sites.google.com/site/field3d/'
  url 'https://github.com/imageworks/Field3D/archive/v1.3.2.tar.gz'
  sha1 '08e9d70ffa23b0fb087f3a1d74d54f11f4875e2a'

  depends_on 'cmake' => :build
  depends_on 'boost'
  depends_on 'ilmbase'
  depends_on 'hdf5'

  def patches
    # add boost system to required boost libs
    # already reported upstream, see https://github.com/imageworks/Field3D/pull/51
    # Remove at > 1.3.2
    DATA
  end

  def install
    mkdir 'brewbuild' do
      args = std_cmake_args + %w[
        -DDOXYGEN_EXECUTABLE=NOTFOUND
        ..]
      system "cmake",  *args
      system "make install"
    end
  end
end

__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 )

 FIND_PACKAGE (Doxygen)
 FIND_PACKAGE (HDF5)
-FIND_PACKAGE (Boost COMPONENTS thread program_options)
+FIND_PACKAGE (Boost COMPONENTS system thread program_options)
 FIND_PACKAGE (ILMBase)

 OPTION (INSTALL_DOCS "Automatically install documentation." ON)