From 81d23b3f6719e65fe411a31e596fd9f02ed5f23b Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Mon, 28 Nov 2011 17:35:55 -0600 Subject: openjpeg: fix compilation on 10.7 Fixes #8846. Closes #8853. Signed-off-by: Charlie Sharpsteen --- Library/Formula/openjpeg.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'Library') diff --git a/Library/Formula/openjpeg.rb b/Library/Formula/openjpeg.rb index 5444cd65b..5eaa917cb 100644 --- a/Library/Formula/openjpeg.rb +++ b/Library/Formula/openjpeg.rb @@ -12,8 +12,29 @@ class Openjpeg < Formula depends_on 'little-cms' => :optional depends_on 'libtiff' + def patches + # libpng 1.5 no longer #includes zlib.h, so add it to the relevant file + # see http://code.google.com/p/openjpeg/issues/detail?id=83 + DATA + end + def install system "cmake . #{std_cmake_parameters}" system "make install" end end + +__END__ +diff --git a/codec/convert.c b/codec/convert.c +index 25e715b..2d96971 100644 +--- a/codec/convert.c ++++ b/codec/convert.c +@@ -48,6 +48,7 @@ + #include "../libs/png/png.h" + #else + #include ++#include + #endif /* _WIN32 */ + #endif /* HAVE_LIBPNG */ + + -- cgit v1.2.3