[MPlayer-dev-eng] [Resend][PATCH] Compile with Freetype 2.1.6+
Pierre Lombard
p_l at gmx.fr
Tue Nov 25 19:31:20 CET 2003
Hi
* ismail dönmez <ismail.donmez at boun.edu.tr> [2003-11-14 19:43]:
> Attached patch fixes mplayer compilation with freetype 2.1.6+. Using
> freetype like :
>
> #include <freetype/freetype.h>
>
> is silently deprecated since Freetype 2.0.2 so my patch will not break
> anything and according the Freetype developers ( Werner Lemberg to be exact )
> its the Right Way ( TM ) to use Freetype2 .
>
> </quote>
>
> So this does *not* break anything at all. Can someone please apply/comment on
> it?
A part is missing to fix configure. Without the attached patch
freetype isn t detected here (debian unstable - freetype 2.1.7).
I'll apply later if nobody shouts.
> Index: libvo/font_load.h
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libvo/font_load.h,v
> retrieving revision 1.12
> diff -u -r1.12 font_load.h
> --- libvo/font_load.h 29 Dec 2002 14:59:23 -0000 1.12
> +++ libvo/font_load.h 9 Nov 2003 14:50:26 -0000
> @@ -2,7 +2,8 @@
> #define __MPLAYER_FONT_LOAD_H
>
> #ifdef HAVE_FREETYPE
> -#include <freetype/freetype.h>
> +#include <ft2build.h>
> +#include FT_FREETYPE_H
> #endif
>
> typedef struct {
> Index: libvo/font_load_ft.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libvo/font_load_ft.c,v
> retrieving revision 1.10
> diff -u -r1.10 font_load_ft.c
> --- libvo/font_load_ft.c 9 Jun 2003 12:15:47 -0000 1.10
> +++ libvo/font_load_ft.c 9 Nov 2003 14:50:44 -0000
> @@ -20,7 +20,8 @@
>
> #include <iconv.h>
>
> -#include <freetype/freetype.h>
> +#include <ft2build.h>
> +#include FT_FREETYPE_H
> #include <freetype/ftglyph.h>
>
> #include "../bswap.h"
--
Best regards,
Pierre Lombard
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.815
diff -u -r1.815 configure
--- configure 18 Nov 2003 20:50:48 -0000 1.815
+++ configure 25 Nov 2003 18:28:32 -0000
@@ -4206,7 +4206,8 @@
if ( $_freetypeconfig --version ) >/dev/null 2>&1 ; then
cat > $TMPC << EOF
#include <stdio.h>
-#include <freetype/freetype.h>
+#include <ft2build.h>
+#include FT_FREETYPE_H
#if ((FREETYPE_MAJOR < 2) || ((FREETYPE_MINOR == 0) && (FREETYPE_PATCH < 9)))
#error "Need FreeType 2.0.9 or newer"
#endif
More information about the MPlayer-dev-eng
mailing list