Ticket #17176: cairo-lp64.diff

File cairo-lp64.diff, 1.5 KB (added by arcata@…, 16 years ago)

Patch to disable ATSUI code in Cairo 64-bit

  • dports/graphics/cairo/files/patch-cairo-quartz-font.c.diff

     
     1--- src/cairo-quartz-font.c     2008-11-10 10:07:27.000000000 -0800
     2+++ src/cairo-quartz-font.c     2008-11-10 10:09:07.000000000 -0800
     3@@ -765,6 +765,7 @@
     4     return ffont->cgFont;
     5 }
     6 
     7+#ifndef __LP64__
     8 
     9 /*
     10  * compat with old ATSUI backend
     11@@ -805,3 +806,5 @@
     12 {
     13     return cairo_quartz_font_face_create_for_atsu_font_id (font_id);
     14 }
     15+
     16+#endif
     17--- src/cairo-quartz.h  2008-11-10 10:07:27.000000000 -0800
     18+++ src/cairo-quartz.h  2008-11-10 10:09:07.000000000 -0800
     19@@ -66,8 +66,10 @@
     20 cairo_public cairo_font_face_t *
     21 cairo_quartz_font_face_create_for_cgfont (CGFontRef font);
     22 
     23+#ifndef __LP64__
     24 cairo_public cairo_font_face_t *
     25 cairo_quartz_font_face_create_for_atsu_font_id (ATSUFontID font_id);
     26+#endif
     27 
     28 #endif /* CAIRO_HAS_QUARTZ_FONT */
  • dports/graphics/cairo/Portfile

     
    6767    --enable-xlib-xrender \
    6868    --with-x
    6969
     70patchfiles \
     71    patch-cairo-quartz-font.c.diff
     72
    7073variant glitz conflicts no_x11 description {Add glitz graphics interface} {
    7174    depends_lib-append \
    7275        port:glitz