Update of /cvsroot/fink/dists/10.3/stable/main/finkinfo/graphics
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv32682

Modified Files:
        freetype219.info freetype219.patch 
Log Message:
latest version to stable


Index: freetype219.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.3/stable/main/finkinfo/graphics/freetype219.info,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- freetype219.info    31 Aug 2006 13:33:27 -0000      1.5
+++ freetype219.info    25 Apr 2007 03:24:32 -0000      1.6
@@ -1,44 +1,40 @@
 Package: freetype219
-Version: 2.1.9
-Revision: 1
+Version: 2.2.1
+Revision: 3
 Depends: %N-shlibs (= %v-%r)
 Conflicts: freetype219-hinting
 Replaces: freetype219-hinting
 BuildDependsOnly: True
 Source: mirror:sourceforge:freetype/freetype-%v.tar.bz2
-Source-MD5: ec1b903e4be5f073caa72458ea58c29c
+Source-MD5: 5b2f827082c544392a7701f7423f0781
 Patch: %n.patch
+NoSetCPPFLAGS: true
 NoSetMAKEFLAGS: true
 SetMAKEFLAGS: -j1
 CompileScript: <<
- make setup CFG="--prefix=%p/lib/%N"
- perl -pi.bak -e 's/^allow_undefined_flag.*/allow_undefined_flag=\"\"/' 
builds/unix/libtool
- make
+#!/bin/sh -ev
+       export CPATH=%p/include
+       ./configure --prefix=%p/lib/%N --with-old-mac-fonts 
--mandir=%p/share/man --infodir=%p/share/info
+       make
 <<
 InstallScript: <<
-#!/bin/sh -e
- make install prefix=%i/lib/%N
- perl -pi -e 's,(dep.*%p/lib),$1/%N/lib,g' %i/lib/%N/lib/libfreetype.la
- rm -rf %i/lib/%N/share
- install -d -m 755 %i/share/doc/%N
- cp -pR docs/* %i/share/doc/%N/
+#!/bin/sh -ev
+       make install DESTDIR="%d"
+       rm -rf %i/lib/%N/share
+       install -d -m 755 %i/share/doc/%N
+       cp -pR docs/* %i/share/doc/%N/
 <<
+
 SplitOff: <<
-  Package: %N-shlibs
-  Replaces:  freetype219-hinting-shlibs, freetype2 (<< 2.0.8-2)
-  Conflicts: freetype219-hinting-shlibs
-  Files: lib/%N/lib/libfreetype.6*dylib
-  Shlibs: %p/lib/%N/lib/libfreetype.6.dylib 10.0.0 %n (>= 2.1.9-1)
-  DocFiles: <<
-    README src/autohint/CatharonLicense.txt
-    src/pcf/readme:README.pcf
-  <<
-  Description: TrueType font rendering library, shared libs
-<<
-DocFiles: <<
- README src/autohint/CatharonLicense.txt
- src/pcf/readme:README.pcf
+       Package: %N-shlibs
+       Replaces:  freetype219-hinting-shlibs, freetype2 (<< 2.0.8-2)
+       Conflicts: freetype219-hinting-shlibs
+       Files: lib/%N/lib/libfreetype.6*dylib
+       Shlibs: %p/lib/%N/lib/libfreetype.6.dylib 10.0.0 %n (>= 2.1.9-1)
+       DocFiles: README docs/LICENSE.TXT
+       Description: TrueType font rendering library, shared libs
 <<
+DocFiles: ChangeLog* README
 Description: TrueType font rendering library, headers
 DescDetail: <<
 FreeType 2 is a library that provides access to and rendering of a
@@ -46,15 +42,21 @@
 and several bitmap font formats.
 <<
 DescUsage: <<
-Packages that need freetype2 versions 2.1.8 or 2.1.9,
-should builddepend on freetype219 and depend on freetype219-shlibs
-and make sure that configure finds the freetype-config script in
-%p/lib/freetype219/bin. The headers and libraries needed at build
-time are in %p/lib/freetype219/{include,lib}.
+Packages that need freetype2 versions 2.1.8 or higher should
+BuildDepend on freetype219 and depend on freetype219-shlibs
+and potentially make sure that configure finds the freetype-config
+script in %p/lib/freetype219/bin. The headers and libraries needed
+at build time are in %p/lib/freetype219/{include,lib}.
 <<
 DescPort: <<
- Previous versions by Christoph Pfisterer
+* Previous versions by Christoph Pfisterer
+* 2006-08-06 Benjamin Reed <[EMAIL PROTECTED]>
+  - updated to 2.2.1
+  - integrated patches from debian's freetype-2.2.1 for
+    backwards-compatibility with 2.1.9 and earlier
+* 2006-11-14 Martin Costabel <[EMAIL PROTECTED]>
+  - integrated endianness fix from freetype CVS
 <<
 License: OSI-Approved
 Homepage: http://www.freetype.org/
-Maintainer: None <[EMAIL PROTECTED]>
+Maintainer: Jeffrey Whitaker <[EMAIL PROTECTED]>

Index: freetype219.patch
===================================================================
RCS file: 
/cvsroot/fink/dists/10.3/stable/main/finkinfo/graphics/freetype219.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- freetype219.patch   15 Sep 2005 12:03:38 -0000      1.3
+++ freetype219.patch   25 Apr 2007 03:24:32 -0000      1.4
@@ -1,23 +1,38 @@
-diff -uNr freetype-2.1.9/builds/unix/detect.mk 
freetype-2.1.9-new/builds/unix/detect.mk
---- freetype-2.1.9/builds/unix/detect.mk       Tue Apr 13 04:35:05 2004
-+++ freetype-2.1.9-new/builds/unix/detect.mk   Thu Feb 24 17:02:56 2005
-@@ -20,7 +20,8 @@
-   #
-   is_unix := $(strip $(wildcard /sbin/init) \
-                      $(wildcard /usr/sbin/init) \
--                     $(wildcard /hurd/auth))
-+                     $(wildcard /hurd/auth) \
-+                     $(wildcard /sbin/launchd))
-   ifneq ($(is_unix),)
+diff -uNr freetype-2.2.1/include/freetype/config/ftoption.h 
freetype-2.2.1-new/include/freetype/config/ftoption.h
+--- freetype-2.2.1/include/freetype/config/ftoption.h  2006-05-11 
14:05:49.000000000 -0400
++++ freetype-2.2.1-new/include/freetype/config/ftoption.h      2006-11-09 
17:36:43.000000000 -0500
+@@ -448,7 +448,7 @@
+   /* FT_PARAM_TAG_UNPATENTED_HINTING; or when the debug hook               */
+   /* FT_DEBUG_HOOK_UNPATENTED_HINTING is globally activated.               */
+   /*                                                                       */
+-#define TT_CONFIG_OPTION_UNPATENTED_HINTING
++/* #define TT_CONFIG_OPTION_UNPATENTED_HINTING */
  
-     PLATFORM := unix
-diff -uNr freetype-2.1.9/src/base/ftapi.c freetype-2.1.9-new/src/base/ftapi.c
---- freetype-2.1.9/src/base/ftapi.c    Sat Mar 30 08:16:33 2002
-+++ freetype-2.1.9-new/src/base/ftapi.c        Thu Feb 24 16:57:09 2005
-@@ -118,4 +118,18 @@
+ 
+   /*************************************************************************/
+diff -uNr freetype-2.2.1/include/freetype/freetype.h 
freetype-2.2.1-new/include/freetype/freetype.h
+--- freetype-2.2.1/include/freetype/freetype.h 2006-05-12 09:52:24.000000000 
-0400
++++ freetype-2.2.1-new/include/freetype/freetype.h     2006-11-09 
17:30:21.000000000 -0500
+@@ -17,11 +17,7 @@
+ 
+ 
+ #ifndef FT_FREETYPE_H
+-#error "`ft2build.h' hasn't been included yet!"
+-#error "Please always use macros to include FreeType header files."
+-#error "Example:"
+-#error "  #include <ft2build.h>"
+-#error "  #include FT_FREETYPE_H"
++#include <ft2build.h>
+ #endif
+ 
+ 
+diff -uNr freetype-2.2.1/src/base/ftapi.c freetype-2.2.1-new/src/base/ftapi.c
+--- freetype-2.2.1/src/base/ftapi.c    2002-03-30 08:16:33.000000000 -0500
++++ freetype-2.2.1-new/src/base/ftapi.c        2006-11-09 17:30:21.000000000 
-0500
+@@ -117,5 +117,17 @@
+     FT_Stream_ExitFrame( stream );
    }
                     
- 
 +  FT_BASE_DEF( FT_Short )
 +  FT_Get_Short( FT_Stream stream )
 +  {
@@ -30,83 +45,289 @@
 +  {
 +    return FT_GET_LONG();
 +  }
-+
-+
+ 
  /* END */
-diff -uNr freetype-2.1.9/src/base/ftbase.c freetype-2.1.9-new/src/base/ftbase.c
---- freetype-2.1.9/src/base/ftbase.c   Wed Feb 25 07:58:54 2004
-+++ freetype-2.1.9-new/src/base/ftbase.c       Thu Feb 24 16:57:09 2005
-@@ -29,6 +29,7 @@
- #include "ftgloadr.c"
+diff -uNr freetype-2.2.1/src/base/ftbase.c freetype-2.2.1-new/src/base/ftbase.c
+--- freetype-2.2.1/src/base/ftbase.c   2004-02-25 07:58:54.000000000 -0500
++++ freetype-2.2.1-new/src/base/ftbase.c       2006-11-09 17:30:21.000000000 
-0500
+@@ -30,6 +30,7 @@
  #include "ftobjs.c"
  #include "ftnames.c"
-+#include "ftapi.c"
  #include "ftrfork.c"
++#include "ftapi.c"
  
  #if defined( __APPLE__ ) && !defined ( DARWIN_NO_CARBON )
-diff -uNr freetype-2.1.9/src/base/ftobjs.c freetype-2.1.9-new/src/base/ftobjs.c
---- freetype-2.1.9/src/base/ftobjs.c   Mon Jun 21 17:16:56 2004
-+++ freetype-2.1.9-new/src/base/ftobjs.c       Thu Feb 24 17:01:59 2005
-@@ -947,7 +947,7 @@
-   /* there's a Mac-specific extended implementation of FT_New_Face() */
-   /* in src/base/ftmac.c                                             */
+ #include "ftmac.c"
+diff -uNr freetype-2.2.1/src/bdf/bdflib.c freetype-2.2.1-new/src/bdf/bdflib.c
+--- freetype-2.2.1/src/bdf/bdflib.c    2006-03-26 01:34:41.000000000 -0500
++++ freetype-2.2.1-new/src/bdf/bdflib.c        2006-11-09 17:30:21.000000000 
-0500
+@@ -1570,6 +1570,14 @@
+         goto Exit;
+       }
  
--#ifndef FT_MACINTOSH
-+/* #ifndef FT_MACINTOSH */
++      /* Check that the encoding is in the range [0, 65535] because       */
++      /* otherwise p->have (a bitmap with static size) overflows.         */
++      if ( p->glyph_enc >= sizeof(p->have) * 8 )
++      {
++        error = BDF_Err_Invalid_File_Format; /* Not the ideal error code */
++        goto Exit;
++      }
++
+       /* Check to see whether this encoding has already been encountered. */
+       /* If it has then change it to unencoded so it gets added if        */
+       /* indicated.                                                       */
+diff -uNr freetype-2.2.1/src/pcf/pcfread.c freetype-2.2.1-new/src/pcf/pcfread.c
+--- freetype-2.2.1/src/pcf/pcfread.c   2006-01-23 11:35:18.000000000 -0500
++++ freetype-2.2.1-new/src/pcf/pcfread.c       2006-11-09 17:32:22.000000000 
-0500
+@@ -439,6 +439,14 @@
  
-   /* documentation is in freetype.h */
+     for ( i = 0; i < nprops; i++ )
+     {
++      /* 2006:0500 (mbarnes) - Detect invalid string length.
++       * XXX Is this is best error code to return? */
++      if ( props[i].name < 0 )
++      {
++        error = FT_Err_Invalid_File_Format;
++        goto Bail;
++      }
++
+       /* XXX: make atom */
+       if ( FT_NEW_ARRAY( properties[i].name,
+                          ft_strlen( strings + props[i].name ) + 1 ) )
+@@ -451,6 +459,14 @@
  
-@@ -970,7 +970,7 @@
-     return FT_Open_Face( library, &args, face_index, aface );
+       if ( props[i].isString )
+       {
++      /* 2006:0500 (mbarnes) - Detect invalid string length.
++         * XXX Is this the best error code to return? */
++        if ( props[i].value < 0 )
++        {
++          error = FT_Err_Invalid_File_Format;
++          goto Bail;
++        }
++
+         if ( FT_NEW_ARRAY( properties[i].value.atom,
+                            ft_strlen( strings + props[i].value ) + 1 ) )
+           goto Bail;
+diff -uNr freetype-2.2.1/src/sfnt/ttmtx.c freetype-2.2.1-new/src/sfnt/ttmtx.c
+--- freetype-2.2.1/src/sfnt/ttmtx.c    2006-03-20 08:34:23.000000000 -0500
++++ freetype-2.2.1-new/src/sfnt/ttmtx.c        2006-11-09 17:30:21.000000000 
-0500
+@@ -169,7 +169,7 @@
+     }
+ 
+     if ( FT_QNEW_ARRAY( *longs,  num_longs  ) ||
+-         FT_QNEW_ARRAY( *shorts, num_shorts ) )
++         (num_shorts > 0 && FT_QNEW_ARRAY( *shorts, num_shorts ) ) )
+       goto Fail;
+ 
+     if ( FT_FRAME_ENTER( table_len ) )
+diff -uNr freetype-2.2.1/src/truetype/ttgload.c 
freetype-2.2.1-new/src/truetype/ttgload.c
+--- freetype-2.2.1/src/truetype/ttgload.c      2006-02-14 15:44:56.000000000 
-0500
++++ freetype-2.2.1-new/src/truetype/ttgload.c  2006-11-09 17:35:53.000000000 
-0500
+@@ -932,7 +932,7 @@
+   {
+     FT_Error     error;
+     FT_Outline*  outline;
+-
++    int i;
+ 
+     outline = &loader->gloader->base.outline;
+ 
+@@ -989,6 +989,12 @@
+ 
+     tt_prepare_zone( &loader->zone, &loader->gloader->base,
+                      start_point, start_contour );
++    /* Some points are likely touched during execution of
++     * instructions on components. So let's untouch them.
++     */
++    for (i = 0; i < loader->zone.n_points; i++)
++           loader->zone.tags[i] &= ~(FT_CURVE_TAG_TOUCH_X | 
FT_CURVE_TAG_TOUCH_Y);
++
+     loader->zone.n_points += 4;
+ 
+     return TT_Hint_Glyph( loader, 1 );
+Index: src/base/ftmac.c
+===================================================================
+RCS file: /sources/freetype/freetype2/src/base/ftmac.c,v
+retrieving revision 1.43
+retrieving revision 1.48
+diff -u -b -w -r1.43 -r1.48
+--- freetype2/src/base/ftmac.c 2 May 2006 09:00:29 -0000       1.43
++++ freetype2/src/base/ftmac.c 15 Oct 2006 07:15:28 -0000      1.48
+@@ -53,6 +53,12 @@
+     - If there is a TrueType font (an `sfnt' resource), read it into memory,
+       wrap it into a memory stream, load the TrueType driver and delegate
+       the rest of the work to it, by calling FT_Open_Face().
++
++    - Some suitcase fonts (notably Onyx) might point the `LWFN' file to
++      itself, even though it doesn't contains `POST' resources.  To handle
++      this special case without opening the file an extra time, we just
++      ignore errors from the `LWFN' and fallback to the `sfnt' if both are
++      available.
+   */
+ 
+ 
+@@ -64,11 +70,13 @@
+   /* This is for Mac OS X.  Without redefinition, OS_INLINE */
+   /* expands to `static inline' which doesn't survive the   */
+   /* -ansi compilation flag of GCC.                         */
++#undef  OS_INLINE
+ #define OS_INLINE   static __inline__
+ #include <Carbon/Carbon.h>
+ #else
+ #include <Resources.h>
+ #include <Fonts.h>
++#include <Endian.h>
+ #include <Errors.h>
+ #include <Files.h>
+ #include <TextUtils.h>
+@@ -536,7 +544,8 @@
+     /* The count is 1 greater than the value in the FOND.  */
+     /* Isn't that cute? :-)                                */
+ 
+-    return 1 + *( (short*)( fond_data + sizeof ( FamRec ) ) );
++    return EndianS16_BtoN( *( (short*)( fond_data +
++                                        sizeof ( FamRec ) ) ) ) + 1;
    }
  
--#endif  /* !FT_MACINTOSH */
-+/* #endif */ /* !FT_MACINTOSH */
  
+@@ -549,13 +558,14 @@
  
-   /* documentation is in freetype.h */
-diff -uNr freetype-2.1.9/src/truetype/ttinterp.c 
freetype-2.1.9-new/src/truetype/ttinterp.c
---- freetype-2.1.9/src/truetype/ttinterp.c     Fri Mar  5 04:26:22 2004
-+++ freetype-2.1.9-new/src/truetype/ttinterp.c Thu Feb 24 16:57:19 2005
-@@ -2474,7 +2474,7 @@
-     W = Vx * Vx + Vy * Vy;
  
-     /* Now, we want that Sqrt( W ) = 0x4000 */
--    /* Or 0x1000000 <= W < 0x1004000        */
-+    /* Or 0x10000000 <= W < 0x10004000        */
+     fond     = (FamRec*)fond_data;
+-    face_all = *( (short *)( fond_data + sizeof ( FamRec ) ) ) + 1;
++    face_all = EndianS16_BtoN( *( (short *)( fond_data +
++                                             sizeof ( FamRec ) ) ) ) + 1;
+     assoc    = (AsscEntry*)( fond_data + sizeof ( FamRec ) + 2 );
+     face     = 0;
  
-     if ( Vx < 0 )
+     for ( i = 0; i < face_all; i++ )
      {
-@@ -2492,7 +2492,7 @@
-     else
-       S2 = FALSE;
+-      if ( 0 == assoc[i].fontSize )
++      if ( 0 == EndianS16_BtoN( assoc[i].fontSize ) )
+         face++;
+     }
+     return face;
+@@ -597,19 +607,19 @@
  
--    while ( W < 0x1000000L )
-+    while ( W < 0x10000000L )
-     {
-       /* We need to increase W by a minimal amount */
-       if ( Vx < Vy )
-@@ -2503,7 +2503,7 @@
-       W = Vx * Vx + Vy * Vy;
+       /* if the face at this index is not scalable,
+          fall back to the first one (old behavior) */
+-      if ( assoc->fontSize == 0 )
++      if ( EndianS16_BtoN( assoc->fontSize ) == 0 )
+       {
+         *have_sfnt = 1;
+-        *sfnt_id   = assoc->fontID;
++        *sfnt_id   = EndianS16_BtoN( assoc->fontID );
+       }
+       else if ( base_assoc->fontSize == 0 )
+       {
+         *have_sfnt = 1;
+-        *sfnt_id   = base_assoc->fontID;
++        *sfnt_id   = EndianS16_BtoN( base_assoc->fontID );
+       }
      }
  
--    while ( W >= 0x1004000L )
-+    while ( W >= 0x10004000L )
+-    if ( fond->ffStylOff )
++    if ( EndianS32_BtoN( fond->ffStylOff ) )
      {
-       /* We need to decrease W by a minimal amount */
-       if ( Vx < Vy )
---- freetype-2.1.9/include/freetype/freetype.h Sat Jun 19 16:50:08 2004
-+++ freetype-2.1.9-new/include/freetype/freetype.h     Thu Feb 24 17:06:43 2005
-@@ -17,11 +17,7 @@
+       unsigned char*  p = (unsigned char*)fond_data;
+       StyleTable*     style;
+@@ -619,10 +629,10 @@
+       int             i;
  
  
- #ifndef FT_FREETYPE_H
--#error "`ft2build.h' hasn't been included yet!"
--#error "Please always use macros to include FreeType header files."
--#error "Example:"
--#error "  #include <ft2build.h>"
--#error "  #include FT_FREETYPE_H"
-+#include <ft2build.h>
- #endif
+-      p += fond->ffStylOff;
++      p += EndianS32_BtoN( fond->ffStylOff );
+       style = (StyleTable*)p;
+       p += sizeof ( StyleTable );
+-      string_count = *(unsigned short*)(p);
++      string_count = EndianS16_BtoN( *(short*)(p) );
+       p += sizeof ( short );
+ 
+       for ( i = 0; i < string_count && i < 64; i++ )
+@@ -770,13 +780,13 @@
+     Str255    lwfn_file_name;
+     UInt8     buff[HFS_MAXPATHLEN];
+     FT_Error  err;
++    short     num_faces;
+ 
+ 
+     have_sfnt = have_lwfn = 0;
+ 
+     HLock( fond );
+     parse_fond( *fond, &have_sfnt, &sfnt_id, lwfn_file_name, 0 );
+-    HUnlock( fond );
+ 
+     if ( lwfn_file_name[0] )
+     {
+@@ -787,9 +797,12 @@
+     }
+ 
+     if ( have_lwfn && ( !have_sfnt || PREFER_LWFN ) )
+-      return 1;
++      num_faces = 1;
+     else
+-      return count_faces_scalable( *fond );
++      num_faces = count_faces_scalable( *fond );
++
++    HUnlock( fond );
++    return num_faces;
+   }
  
  
+@@ -1010,6 +1023,8 @@
+     error = FT_Open_Face( library, &args, face_index, aface );
+     if ( error == FT_Err_Ok )
+       (*aface)->face_flags &= ~FT_FACE_FLAG_EXTERNAL_STREAM;
++    else
++      FT_Stream_Free( stream, 0 );
+ 
+     return error;
+   }
+@@ -1150,7 +1165,7 @@
+     Str255    lwfn_file_name;
+     UInt8     path_lwfn[HFS_MAXPATHLEN];
+     OSErr     err;
+-    FT_Error  error;
++    FT_Error  error = FT_Err_Ok;
+ 
+ 
+     GetResInfo( fond, &fond_id, &fond_type, fond_name );
+@@ -1233,19 +1248,21 @@
+     }
+ 
+     if ( have_lwfn && ( !have_sfnt || PREFER_LWFN ) )
+-      return FT_New_Face_From_LWFN( library,
++      error = FT_New_Face_From_LWFN( library,
+                                     path_lwfn,
+                                     face_index,
+                                     aface );
++    else
++      error = FT_Err_Unknown_File_Format;
+ 
+   found_no_lwfn_file:
+-    if ( have_sfnt )
+-      return FT_New_Face_From_SFNT( library,
++    if ( have_sfnt && FT_Err_Ok != error )
++      error = FT_New_Face_From_SFNT( library,
+                                     sfnt_id,
+                                     face_index,
+                                     aface );
+ 
+-    return FT_Err_Unknown_File_Format;
++    return error;
+   }
+ 
+ 
+diff -uNr freetype-2.2.1/modules.cfg freetype-2.2.1-new/modules.cfg
+--- freetype-2.2.1/modules.cfg 2006-03-01 02:01:21.000000000 +0900
++++ freetype-2.2.1-new/modules.cfg     2006-11-19 15:40:45.000000000 +0900
+@@ -124,7 +124,7 @@
+ 
+ # OpenType table validation.  Needs ftotval.c below.
+ #
+-# AUX_MODULES += otvalid
++AUX_MODULES += otvalid
+ 
+ # Auxiliary PostScript driver component to share common code.
+ #


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to