summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authoryyamano <yyamano>2008-05-05 06:53:00 +0000
committeryyamano <yyamano>2008-05-05 06:53:00 +0000
commit9254ca677b2e12a1fa385a8dac912fd089a24416 (patch)
tree709e8badde7b1ce65a1ec84c40b923a9339fa470 /graphics
parent8b4a3bbc082b303971f4cd62cfd478f10aca3ff2 (diff)
downloadpkgsrc-9254ca677b2e12a1fa385a8dac912fd089a24416.tar.gz
Make this build on OS X 10.4.x/ppc.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/cairo/distinfo3
-rw-r--r--graphics/cairo/patches/patch-ac30
2 files changed, 32 insertions, 1 deletions
diff --git a/graphics/cairo/distinfo b/graphics/cairo/distinfo
index b91367fb474..3287ca43fe5 100644
--- a/graphics/cairo/distinfo
+++ b/graphics/cairo/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.40 2008/04/21 11:29:33 tnn Exp $
+$NetBSD: distinfo,v 1.41 2008/05/05 06:53:00 yyamano Exp $
SHA1 (cairo-1.6.4.tar.gz) = 9d990fe39a125ceb07221623c237cd7015855d5c
RMD160 (cairo-1.6.4.tar.gz) = ccae736a40d985b72bda7c2f0a98a0838020658e
Size (cairo-1.6.4.tar.gz) = 5042623 bytes
SHA1 (patch-aa) = a6e95dc17dd316236dd7197f5e743c733e57587d
SHA1 (patch-ab) = 2a0a99846fab962b552efa79c9261927de792dfd
+SHA1 (patch-ac) = 8baca078827ebc7c03eecc14c575a440239c3f03
diff --git a/graphics/cairo/patches/patch-ac b/graphics/cairo/patches/patch-ac
new file mode 100644
index 00000000000..32d5af5b07d
--- /dev/null
+++ b/graphics/cairo/patches/patch-ac
@@ -0,0 +1,30 @@
+$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)))
+