[61335] trunk/dports/print/freetype

ryandesign at macports.org ryandesign at macports.org
Tue Dec 8 19:33:04 PST 2009


Revision: 61335
          http://trac.macports.org/changeset/61335
Author:   ryandesign at macports.org
Date:     2009-12-08 19:33:02 -0800 (Tue, 08 Dec 2009)
Log Message:
-----------
freetype: no longer use deprecated method of accessing resource fork, to avoid warnings in the system logs; see #18859

Modified Paths:
--------------
    trunk/dports/print/freetype/Portfile

Added Paths:
-----------
    trunk/dports/print/freetype/files/patch-src_base_ftrfork.c.diff

Modified: trunk/dports/print/freetype/Portfile
===================================================================
--- trunk/dports/print/freetype/Portfile	2009-12-09 02:54:13 UTC (rev 61334)
+++ trunk/dports/print/freetype/Portfile	2009-12-09 03:33:02 UTC (rev 61335)
@@ -6,6 +6,7 @@
 
 name                    freetype
 version                 2.3.11
+revision                1
 categories              print graphics
 maintainers             ryandesign
 license                 freetype/GPLv2
@@ -47,6 +48,7 @@
 
 patchfiles \
     patch-detect.mk.diff \
+    patch-src_base_ftrfork.c.diff \
     patch-modules.cfg.diff
 
 depends_lib \

Added: trunk/dports/print/freetype/files/patch-src_base_ftrfork.c.diff
===================================================================
--- trunk/dports/print/freetype/files/patch-src_base_ftrfork.c.diff	                        (rev 0)
+++ trunk/dports/print/freetype/files/patch-src_base_ftrfork.c.diff	2009-12-09 03:33:02 UTC (rev 61335)
@@ -0,0 +1,33 @@
+--- src/base/ftrfork.c.orig	2009-03-12 01:50:33.000000000 -0600
++++ src/base/ftrfork.c	2009-03-15 19:57:24.000000000 -0600
+@@ -476,29 +476,7 @@
+     /*
+       Only meaningful on systems with hfs+ drivers (or Macs).
+      */
+-    FT_Error   error;
+-    char*      newpath;
+-    FT_Memory  memory;
+-    FT_Long    base_file_len = ft_strlen( base_file_name );
+-
+-    FT_UNUSED( stream );
+-
+-
+-    memory = library->memory;
+-
+-    if ( base_file_len + 6 > FT_INT_MAX )
+-      return FT_Err_Array_Too_Large;
+-
+-    if ( FT_ALLOC( newpath, base_file_len + 6 ) )
+-      return error;
+-
+-    FT_MEM_COPY( newpath, base_file_name, base_file_len );
+-    FT_MEM_COPY( newpath + base_file_len, "/rsrc", 6 );
+-
+-    *result_file_name = newpath;
+-    *result_offset    = 0;
+-
+-    return FT_Err_Ok;
++    return raccess_guess_darwin_newvfs( library, stream, base_file_name, result_file_name, result_offset );
+   }
+ 
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091208/12f08821/attachment.html>


More information about the macports-changes mailing list