Ticket #17040: patch_cairo_universal_64.diff

File patch_cairo_universal_64.diff, 1.6 KB (added by pguyot (Paul Guyot), 16 years ago)
  • files/patch-quartz-lp64.diff

     
     1diff -ru src/cairo-quartz-font.c src/cairo-quartz-font.c
     2--- src/cairo-quartz-font.c     2008-04-08 06:30:31.000000000 +0800
     3+++ src/cairo-quartz-font.c     2008-04-23 22:36:35.000000000 +0800
     4@@ -775,6 +775,8 @@
     5  *
     6  * Since: 1.6
     7  **/
     8+
     9+#if !__LP64__
     10 cairo_font_face_t *
     11 cairo_quartz_font_face_create_for_atsu_font_id (ATSUFontID font_id)
     12 {
     13@@ -792,3 +794,4 @@
     14 {
     15     return cairo_quartz_font_face_create_for_atsu_font_id (font_id);
     16 }
     17+#endif
     18diff -ru src/cairo-quartz.h src/cairo-quartz.h
     19--- src/cairo-quartz.h  2008-04-08 06:30:31.000000000 +0800
     20+++ src/cairo-quartz.h  2008-04-23 22:37:18.000000000 +0800
     21@@ -66,8 +66,10 @@
     22 cairo_public cairo_font_face_t *
     23 cairo_quartz_font_face_create_for_cgfont (CGFontRef font);
     24 
     25+#if !__LP64__
     26 cairo_public cairo_font_face_t *
     27 cairo_quartz_font_face_create_for_atsu_font_id (ATSUFontID font_id);
     28+#endif
     29 
     30 #endif /* CAIRO_HAS_QUARTZ_FONT */
     31 
  • Portfile

     
    135135set my_worksrcpaths ${worksrcpath}
    136136
    137137variant universal {
     138    # See: http://bugs.freedesktop.org/show_bug.cgi?id=15702
     139    patchfiles-append patch-quartz-lp64.diff
     140   
    138141    set my_worksrcpaths {}
    139142    foreach arch ${universal_archs} {
    140143        lappend my_worksrcpaths ${workpath}/${arch}