From dfece76c277922550610f8c8179f149131522c7e Mon Sep 17 00:00:00 2001 From: root Date: Sun, 11 Aug 2013 22:40:22 -0400 Subject: [PATCH] fixed the patch so that tiff 4.0.3 works with libjpeg 9. WIP #3. --- inc/My/Utility.pm | 2 +- patches/libtiff.4.0.3.tiffio.h.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 patches/libtiff.4.0.3.tiffio.h.patch diff --git a/inc/My/Utility.pm b/inc/My/Utility.pm index 68b3d56..e509304 100644 --- a/inc/My/Utility.pm +++ b/inc/My/Utility.pm @@ -89,7 +89,7 @@ our $source_packs = [ 'ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz', ], sha1sum => '652e97b78f1444237a82cbcfe014310e776eb6f0', - patches => [], + patches => ['libtiff.4.0.3.tiffio.h.patch'], prereq_libs => [], }, { diff --git a/patches/libtiff.4.0.3.tiffio.h.patch b/patches/libtiff.4.0.3.tiffio.h.patch new file mode 100644 index 0000000..822b795 --- /dev/null +++ b/patches/libtiff.4.0.3.tiffio.h.patch @@ -0,0 +1,11 @@ +--- tiff-4.0.3/libtiff/tiffiop.h 2012-06-06 09:35:23.000000000 -0400 ++++ tiff-4.0.3/libtiff/tiffiop.h 2013-08-11 22:23:00.000000000 -0400 +@@ -70,4 +70,6 @@ extern void *lfind(const void *, const v + #ifndef TRUE +-#define TRUE 1 +-#define FALSE 0 ++//#define TRUE 1 ++//#define FALSE 0 ++typedef enum { FALSE=0, TRUE=1} boolean; ++#define HAVE_BOOLEAN + #endif