From 452af5f4522e750627d0c0ac9fbc794aeb1f1f8f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 12 Apr 2012 16:05:31 +0100 Subject: gbuildize internal zlib and stick headers into the solver in the same hierarchy as is "standard" so we don't have to patch so much, similiarly rename to libz --- cairo/cairo-1.10.2.patch | 44 +------------------------------------------- cairo/cairo/makefile.mk | 5 ----- 2 files changed, 1 insertion(+), 48 deletions(-) (limited to 'cairo') diff --git a/cairo/cairo-1.10.2.patch b/cairo/cairo-1.10.2.patch index d13c1e4e135e..2234383941f9 100644 --- a/cairo/cairo-1.10.2.patch +++ b/cairo/cairo-1.10.2.patch @@ -38,7 +38,7 @@ DEFAULT_CFLAGS += -I. -I$(top_srcdir) DEFAULT_CFLAGS += $(PIXMAN_CFLAGS) $(LIBPNG_CFLAGS) $(ZLIB_CFLAGS) +DEFAULT_CFLAGS += $(SOLARINC) -+DEFAULT_CFLAGS += -I$(SOLARVER)/$(INPATH)/inc/zlib -I$(SOLARVER)/$(INPATH)/inc/external/libpng -DZLIB_FIX -DDISABLE_SOME_FLOATING_POINT=1 ++DEFAULT_CFLAGS += -I$(SOLARVER)/$(INPATH)/inc/external/libpng -DDISABLE_SOME_FLOATING_POINT=1 CAIRO_CFLAGS = $(DEFAULT_CFLAGS) $(CFLAGS) @@ -189,20 +189,6 @@ cairo_cv_xml_use=$use_xml cairo_cv_xml_cache_vars=" BASE REQUIRES CFLAGS NONPKGCONFIG_CFLAGS LIBS NONPKGCONFIG_LIBS NONPKGCONFIG_EXTRA_LIBS" ---- misc/cairo-1.10.2/src/cairo-deflate-stream.c 2010-06-18 13:47:12.000000000 +0200 -+++ misc/build/cairo-1.10.2/src/cairo-deflate-stream.c 2010-06-18 13:47:12.000000000 +0200 -@@ -37,7 +37,11 @@ - #include "cairoint.h" - #include "cairo-error-private.h" - #include "cairo-output-stream-private.h" -+#ifdef ZLIB_FIX -+#include -+#else - #include -+#endif - - #define BUFFER_SIZE 16384 - --- misc/cairo-1.10.2/src/cairo-output-stream.c 2010-07-12 10:57:03.000000000 +0200 +++ misc/build/cairo-1.10.2/src/cairo-output-stream.c 2010-07-12 10:57:03.000000000 +0200 @@ -313,7 +313,11 @@ @@ -217,34 +203,6 @@ decimal_point_len = strlen (decimal_point); assert (decimal_point_len != 0); ---- misc/cairo-1.10.2/src/cairo-pdf-surface.c 2010-12-25 15:21:34.000000000 +0100 -+++ misc/build/cairo-1.10.2/src/cairo-pdf-surface.c 2010-12-25 15:21:34.000000000 +0100 -@@ -57,7 +57,11 @@ - #include "cairo-type3-glyph-surface-private.h" - - #include -+#ifdef ZLIB_FIX -+#include -+#else - #include -+#endif - - /* Issues: - * ---- misc/cairo-1.10.2/src/cairo-ps-surface.c 2010-12-25 15:21:34.000000000 +0100 -+++ misc/build/cairo-1.10.2/src/cairo-ps-surface.c 2010-12-25 15:21:34.000000000 +0100 -@@ -72,7 +72,11 @@ - #include - #include - #include -+#ifdef ZLIB_FIX -+#include -+#else - #include -+#endif - #include - - #define DEBUG_PS 0 --- misc/cairo-1.10.2/src/cairo-ft-font.c 2010-12-25 15:21:34.000000000 +0100 +++ misc/build/cairo-1.10.2/src/cairo-ft-font.c 2010-12-25 15:21:34.000000000 +0100 @@ -534,16 +534,16 @@ diff --git a/cairo/cairo/makefile.mk b/cairo/cairo/makefile.mk index 16a89bfad9a4..51854dcb8805 100644 --- a/cairo/cairo/makefile.mk +++ b/cairo/cairo/makefile.mk @@ -70,12 +70,7 @@ cairo_LDFLAGS=-L$(SOLARVER)$/$(INPATH)$/lib cairo_CPPFLAGS= -.IF "$(SYSTEM_ZLIB)"!="YES" -cairo_CPPFLAGS+=-I$(SOLARINCDIR)$/external$/zlib -cairo_COMPRESS=z_compress -.ELSE cairo_COMPRESS=compress -.ENDIF cairo_CPPFLAGS+=$(INCLUDE) .IF "$(OS)"=="WNT" -- cgit