freetype.patch 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. Index: builds/unix/freetype-config.in
  2. --- builds/unix/freetype-config.in.orig 2005-06-04 23:58:48 +0200
  3. +++ builds/unix/freetype-config.in 2005-07-25 19:50:08 +0200
  4. @@ -128,7 +128,7 @@
  5. fi
  6. if test "$echo_cflags" = "yes" ; then
  7. - cflags="-I$includedir/freetype2"
  8. + cflags="-I$includedir"
  9. if test "$includedir" != "/usr/include" ; then
  10. echo $cflags -I$includedir
  11. else
  12. Index: builds/unix/freetype2.in
  13. --- builds/unix/freetype2.in.orig 2003-06-01 23:30:03 +0200
  14. +++ builds/unix/freetype2.in 2005-07-25 19:50:08 +0200
  15. @@ -8,4 +8,4 @@
  16. Version: @ft_version@
  17. Requires:
  18. Libs: -L${libdir} -lfreetype @LIBZ@
  19. -Cflags: -I${includedir}/freetype2
  20. +Cflags: -I${includedir}
  21. Index: builds/unix/install.mk
  22. --- builds/unix/install.mk.orig 2004-12-06 09:42:41 +0100
  23. +++ builds/unix/install.mk 2005-07-25 19:51:06 +0200
  24. @@ -26,33 +26,33 @@
  25. install: $(PROJECT_LIBRARY)
  26. $(MKINSTALLDIRS) $(DESTDIR)$(libdir) \
  27. $(DESTDIR)$(libdir)/pkgconfig \
  28. - $(DESTDIR)$(includedir)/freetype2/freetype/config \
  29. - $(DESTDIR)$(includedir)/freetype2/freetype/internal \
  30. - $(DESTDIR)$(includedir)/freetype2/freetype/cache \
  31. + $(DESTDIR)$(includedir)/freetype/config \
  32. + $(DESTDIR)$(includedir)/freetype/internal \
  33. + $(DESTDIR)$(includedir)/freetype/cache \
  34. $(DESTDIR)$(bindir) \
  35. $(DESTDIR)$(datadir)/aclocal
  36. $(LIBTOOL) --mode=install $(INSTALL) \
  37. $(PROJECT_LIBRARY) $(DESTDIR)$(libdir)
  38. -for P in $(PUBLIC_H) ; do \
  39. $(INSTALL_DATA) \
  40. - $$P $(DESTDIR)$(includedir)/freetype2/freetype ; \
  41. + $$P $(DESTDIR)$(includedir)/freetype ; \
  42. done
  43. -for P in $(BASE_H) ; do \
  44. $(INSTALL_DATA) \
  45. - $$P $(DESTDIR)$(includedir)/freetype2/freetype/internal ; \
  46. + $$P $(DESTDIR)$(includedir)/freetype/internal ; \
  47. done
  48. -for P in $(CONFIG_H) ; do \
  49. $(INSTALL_DATA) \
  50. - $$P $(DESTDIR)$(includedir)/freetype2/freetype/config ; \
  51. + $$P $(DESTDIR)$(includedir)/freetype/config ; \
  52. done
  53. -for P in $(CACHE_H) ; do \
  54. $(INSTALL_DATA) \
  55. - $$P $(DESTDIR)$(includedir)/freetype2/freetype/cache ; \
  56. + $$P $(DESTDIR)$(includedir)/freetype/cache ; \
  57. done
  58. $(INSTALL_DATA) $(BUILD_DIR)/ft2unix.h \
  59. $(DESTDIR)$(includedir)/ft2build.h
  60. $(INSTALL_DATA) $(OBJ_BUILD)/ftconfig.h \
  61. - $(DESTDIR)$(includedir)/freetype2/freetype/config/ftconfig.h
  62. + $(DESTDIR)$(includedir)/freetype/config/ftconfig.h
  63. $(INSTALL_SCRIPT) -m 755 $(OBJ_BUILD)/freetype-config \
  64. $(DESTDIR)$(bindir)/freetype-config
  65. $(INSTALL_SCRIPT) -m 644 $(BUILD_DIR)/freetype2.m4 \
  66. @@ -63,15 +63,15 @@
  67. uninstall:
  68. -$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/$(LIBRARY).$A
  69. - -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/cache/*
  70. - -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/cache
  71. - -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/config/*
  72. - -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/config
  73. - -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/internal/*
  74. - -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/internal
  75. - -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/*
  76. - -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype
  77. - -$(DELDIR) $(DESTDIR)$(includedir)/freetype2
  78. + -$(DELETE) $(DESTDIR)$(includedir)/freetype/cache/*
  79. + -$(DELDIR) $(DESTDIR)$(includedir)/freetype/cache
  80. + -$(DELETE) $(DESTDIR)$(includedir)/freetype/config/*
  81. + -$(DELDIR) $(DESTDIR)$(includedir)/freetype/config
  82. + -$(DELETE) $(DESTDIR)$(includedir)/freetype/internal/*
  83. + -$(DELDIR) $(DESTDIR)$(includedir)/freetype/internal
  84. + -$(DELETE) $(DESTDIR)$(includedir)/freetype/*
  85. + -$(DELDIR) $(DESTDIR)$(includedir)/freetype
  86. + -$(DELDIR) $(DESTDIR)$(includedir)
  87. -$(DELETE) $(DESTDIR)$(includedir)/ft2build.h
  88. -$(DELETE) $(DESTDIR)$(bindir)/freetype-config
  89. -$(DELETE) $(DESTDIR)$(datadir)/aclocal/freetype2.m4
  90. Index: include/freetype/freetype.h
  91. --- include/freetype/freetype.h.orig 2005-06-06 08:18:32 +0200
  92. +++ include/freetype/freetype.h 2005-07-25 19:50:08 +0200
  93. @@ -16,15 +16,6 @@
  94. /***************************************************************************/
  95. -#ifndef FT_FREETYPE_H
  96. -#error "`ft2build.h' hasn't been included yet!"
  97. -#error "Please always use macros to include FreeType header files."
  98. -#error "Example:"
  99. -#error " #include <ft2build.h>"
  100. -#error " #include FT_FREETYPE_H"
  101. -#endif
  102. -
  103. -
  104. #ifndef __FREETYPE_H__
  105. #define __FREETYPE_H__
  106. Index: src/base/ftsynth.c
  107. --- src/base/ftsynth.c.orig Tue Dec 13 00:44:56 2005
  108. +++ src/base/ftsynth.c Tue Dec 13 00:45:05 2005
  109. @@ -123,7 +123,6 @@
  110. if ( !error )
  111. {
  112. slot->advance.x += xstr;
  113. - slot->advance.y += ystr;
  114. slot->metrics.width += xstr;
  115. slot->metrics.height += ystr;
  116. Index: src/sfnt/sfdriver.c.orig
  117. --- src/sfnt/sfdriver.c.orig Wed Aug 3 18:46:34 2005
  118. +++ src/sfnt/sfdriver.c Wed Aug 3 18:47:24 2005
  119. @@ -367,8 +367,13 @@
  120. /* see `ttsbit.h' and `sfnt.h' */
  121. tt_face_set_sbit_strike,
  122. tt_face_load_sbit_strikes,
  123. - 0 /* tt_find_sbit_image */,
  124. - 0 /* tt_load_sbit_metrics */,
  125. +#ifdef FT_OPTIMIZE_MEMORY
  126. + 0,
  127. + 0,
  128. +#else
  129. + tt_find_sbit_image,
  130. + tt_load_sbit_metrics,
  131. +#endif
  132. tt_face_load_sbit_image,
  133. tt_face_free_sbit_strikes,