Bug 64379

Summary: [PATCH] fix build with freetype 2.1.7
Product: Ports & Packages Reporter: Sunpoet Po-Chuan Hsieh <sunpoet>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Sunpoet Po-Chuan Hsieh 2004-03-17 17:50:15 UTC
As freetype upgrades from 2.1.5 to 2.1.6, it blocks direct inclusion of freetype.h. New documented scheme is:
#include <ft2build.h>
#include FT_FREETYPE_H

Fix: % cat /usr/ports/lang/php4/files/patch-ext::gd::libgd::gdft.c


#include "gdcache.h"
-#include "freetype/freetype.h"
+#include <ft2build.h>
+#include FT_FREETYPE_H
 #include "freetype/ftglyph.h"

 /* number of fonts cached before least recently used is replaced */--nRC6AgCOMJSLdRpfDIwtWeJKUYUimmLGfli0E9AS3i1goVdC
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- ext/gd/libgd/gdft.c.orig	Tue Jun 17 21:37:57 2003
+++ ext/gd/libgd/gdft.c	Thu Mar 18 00:53:09 2004
@@ -60,7 +60,8 @@
 #else
How-To-Repeat: Build lang/php4 with freetype 2.1.7 installed, you will get error message as follows:

`ft2build.h' hasn't been included yet!
Please always use macros to include FreeType header files.
Example:
  #include <ft2build.h>
  #include FT_FREETYPE_H
Comment 1 Kirill Ponomarev freebsd_committer freebsd_triage 2004-03-17 20:30:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer.
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2004-03-22 19:32:28 UTC
State Changed
From-To: open->closed

Already fixed.