aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/openimageio.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-14 16:09:45 -0700
committerAdam Vandenberg2011-03-14 16:09:45 -0700
commit67ab0f641a9d18d5ea49947f1679e2b7c1e6a11a (patch)
tree69320371e0b87b671458f497692f0fec9efd847a /Library/Formula/openimageio.rb
parente00e8747a8b7a2ade0414d5264fce670d0ea381f (diff)
downloadhomebrew-67ab0f641a9d18d5ea49947f1679e2b7c1e6a11a.tar.bz2
openimageio: fix compilation
* Use workaround for Boost 1.46.0 Build issue reported upstream * Use system libpng
Diffstat (limited to 'Library/Formula/openimageio.rb')
-rw-r--r--Library/Formula/openimageio.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/openimageio.rb b/Library/Formula/openimageio.rb
index b1a7fb920..5791a91a0 100644
--- a/Library/Formula/openimageio.rb
+++ b/Library/Formula/openimageio.rb
@@ -23,7 +23,14 @@ class Openimageio < Formula
depends_on 'tbb' => :optional
def install
- system "cmake src/ #{std_cmake_parameters} -DUSE_QT:BOOL=OFF -DEMBEDPLUGINS:BOOL=ON"
+ # Allow compilation against boost 1.46.0
+ # See https://github.com/OpenImageIO/oiio/issues/37
+ inreplace "src/libOpenImageIO/imageioplugin.cpp",
+ "#include <boost/filesystem.hpp>",
+ "#define BOOST_FILESYSTEM_VERSION 2\n#include <boost/filesystem.hpp>"
+
+ # Add include path for libpng explicitly
+ system "cmake src/ #{std_cmake_parameters} -DUSE_QT:BOOL=OFF -DEMBEDPLUGINS:BOOL=ON -DCMAKE_CXX_FLAGS=-I/usr/X11R6/include"
system "make install"
end
end