From e03c876a1bd08aeb7d172a9ca61b80804cefb967 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 17 Apr 2014 06:17:58 -0700 Subject: [PATCH] opencolorio: fix clang builds Fixes Homebrew/homebrew#24294. Closes Homebrew/homebrew#27292. --- Formula/opencolorio.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Formula/opencolorio.rb b/Formula/opencolorio.rb index f287018f510..dee55c2d0d6 100644 --- a/Formula/opencolorio.rb +++ b/Formula/opencolorio.rb @@ -22,6 +22,10 @@ class Opencolorio < Formula sha1 "f4acc4028090ea8d438c6e0093e931afd836314c" end + # Fix includes on recent Clang; reported upstream: + # https://github.com/imageworks/OpenColorIO/issues/338#issuecomment-36589039 + patch :DATA + def install args = std_cmake_args args << "-DOCIO_BUILD_JNIGLUE=ON" if build.with? 'java' @@ -62,3 +66,17 @@ class Opencolorio < Formula EOS end end + +__END__ +diff --git a/export/OpenColorIO/OpenColorIO.h b/export/OpenColorIO/OpenColorIO.h +index 561ce50..796ca84 100644 +--- a/export/OpenColorIO/OpenColorIO.h ++++ b/export/OpenColorIO/OpenColorIO.h +@@ -34,6 +34,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include + #include + #include ++#include + + #include "OpenColorABI.h" + #include "OpenColorTypes.h"