homebrew-core/Formula/openimageio.rb
Michael Lapinsky d79ee8d163 Changed X11R6 paths to X11
Fixed formulas referencing X11 via the X11R6 symlink to instead reference the
path X11 should be at directly (in case the user doesn't have that symlink,
like I didn't)

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-18 10:34:13 -07:00

36 lines
1.1 KiB
Ruby

require 'formula'
class Openimageio < Formula
url 'https://github.com/OpenImageIO/oiio/tarball/Release-0.9.0'
md5 'b9dc646c57c2137d7a9fe8bbb91e0ae7'
version "0.9.0"
homepage 'http://openimageio.org'
depends_on 'cmake' => :build
depends_on 'pkg-config' => :build
depends_on 'ilmbase'
depends_on 'openexr'
depends_on 'boost'
# build plugins
depends_on 'libtiff' => :optional
depends_on 'jpeg' => :optional
depends_on 'jasper' => :optional
# Qt linking, to build iv, is not currently working.
# Would need qt and glew as deps for this.
depends_on 'tbb' => :optional
def install
# 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/X11/include"
system "make install"
end
end