Mon May 5 06:53:00 2008 UTC ()
Make this build on OS X 10.4.x/ppc.


(yyamano)
diff -r1.40 -r1.41 pkgsrc/graphics/cairo/distinfo
diff -r0 -r1.8 pkgsrc/graphics/cairo/patches/patch-ac

cvs diff -r1.40 -r1.41 pkgsrc/graphics/cairo/distinfo (expand / switch to unified diff)

--- pkgsrc/graphics/cairo/distinfo 2008/04/21 11:29:33 1.40
+++ pkgsrc/graphics/cairo/distinfo 2008/05/05 06:53:00 1.41
@@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
1$NetBSD: distinfo,v 1.40 2008/04/21 11:29:33 tnn Exp $ 1$NetBSD: distinfo,v 1.41 2008/05/05 06:53:00 yyamano Exp $
2 2
3SHA1 (cairo-1.6.4.tar.gz) = 9d990fe39a125ceb07221623c237cd7015855d5c 3SHA1 (cairo-1.6.4.tar.gz) = 9d990fe39a125ceb07221623c237cd7015855d5c
4RMD160 (cairo-1.6.4.tar.gz) = ccae736a40d985b72bda7c2f0a98a0838020658e 4RMD160 (cairo-1.6.4.tar.gz) = ccae736a40d985b72bda7c2f0a98a0838020658e
5Size (cairo-1.6.4.tar.gz) = 5042623 bytes 5Size (cairo-1.6.4.tar.gz) = 5042623 bytes
6SHA1 (patch-aa) = a6e95dc17dd316236dd7197f5e743c733e57587d 6SHA1 (patch-aa) = a6e95dc17dd316236dd7197f5e743c733e57587d
7SHA1 (patch-ab) = 2a0a99846fab962b552efa79c9261927de792dfd 7SHA1 (patch-ab) = 2a0a99846fab962b552efa79c9261927de792dfd
 8SHA1 (patch-ac) = 8baca078827ebc7c03eecc14c575a440239c3f03

File Added: pkgsrc/graphics/cairo/patches/patch-ac
$NetBSD: patch-ac,v 1.8 2008/05/05 06:53:00 yyamano Exp $

--- src/cairo-quartz-image-surface.c.orig	2008-04-04 15:45:23.000000000 -0700
+++ src/cairo-quartz-image-surface.c
@@ -42,6 +42,25 @@
 
 #include "cairo-quartz-private.h"
 
+/* XXX The following code is copied from cairo-quartz-surface.c to make this 
+ * build on 10.4.x ppc. Need clean up.
+ */
+/* We need to work with the 10.3 SDK as well (and 10.3 machines; luckily, 10.3.9
+ * has all the stuff we care about, just some of it isn't exported in the SDK.
+ */
+#ifndef kCGBitmapByteOrder32Host
+#define USE_10_3_WORKAROUNDS
+#define kCGBitmapAlphaInfoMask 0x1F
+#define kCGBitmapByteOrderMask 0x7000
+#define kCGBitmapByteOrder32Host 0
+
+typedef uint32_t CGBitmapInfo;
+
+/* public in 10.4, present in 10.3.9 */
+CG_EXTERN void CGContextReplacePathWithStrokedPath (CGContextRef);
+CG_EXTERN CGImageRef CGBitmapContextCreateImage (CGContextRef);
+#endif
+
 #define SURFACE_ERROR_NO_MEMORY (_cairo_surface_create_in_error(_cairo_error(CAIRO_STATUS_NO_MEMORY)))
 #define SURFACE_ERROR_INVALID_FORMAT (_cairo_surface_create_in_error(_cairo_error(CAIRO_STATUS_INVALID_FORMAT)))