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)