SDL_ttf: external libs, harfbuzz, custom config files for SDL2_ttf:

From f4f1093841e53b717d1354a43e901d8d93907a86 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 20 Dec 2021 01:10:02 +0300
Subject: [PATCH] external libs, harfbuzz, custom config files for SDL2_ttf:

enable HAVE_FT_DONE_MM_VAR and HAVE_FT_GET_VAR_BLEND_COORDINATES guarded
with proper freetype2 version checks.
---
 external/harfbuzz-2.8.0/config_sdl_unix.h  | 10 +++++++---
 external/harfbuzz-2.8.0/config_sdl_win32.h | 10 +++++++---
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/external/harfbuzz-2.8.0/config_sdl_unix.h b/external/harfbuzz-2.8.0/config_sdl_unix.h
index 9d363ee..9cedf0c 100644
--- a/external/harfbuzz-2.8.0/config_sdl_unix.h
+++ b/external/harfbuzz-2.8.0/config_sdl_unix.h
@@ -35,13 +35,17 @@
 #define HAVE_FREETYPE 1
 
 /* Define to 1 if you have the `FT_Done_MM_Var' function. */
-/* #define HAVE_FT_DONE_MM_VAR 1 */
+#if ((FREETYPE_MAJOR*10000 + FREETYPE_MINOR*100 + FREETYPE_PATCH) >= 20900)
+#define HAVE_FT_DONE_MM_VAR 1
+#endif
 
 /* Define to 1 if you have the `FT_Get_Var_Blend_Coordinates' function. */
-/* #define HAVE_FT_GET_VAR_BLEND_COORDINATES 1 */
+#if ((FREETYPE_MAJOR*10000 + FREETYPE_MINOR*100 + FREETYPE_PATCH) >= 20701)
+#define HAVE_FT_GET_VAR_BLEND_COORDINATES 1
+#endif
 
 /* Define to 1 if you have the `FT_Set_Var_Blend_Coordinates' function. */
-/* #define HAVE_FT_SET_VAR_BLEND_COORDINATES 1 */
+#define HAVE_FT_SET_VAR_BLEND_COORDINATES 1
 
 /* Have GDI library */
 /* #undef HAVE_GDI */
diff --git a/external/harfbuzz-2.8.0/config_sdl_win32.h b/external/harfbuzz-2.8.0/config_sdl_win32.h
index eb61793..3036885 100644
--- a/external/harfbuzz-2.8.0/config_sdl_win32.h
+++ b/external/harfbuzz-2.8.0/config_sdl_win32.h
@@ -35,13 +35,17 @@
 #define HAVE_FREETYPE 1
 
 /* Define to 1 if you have the `FT_Done_MM_Var' function. */
-/* #define HAVE_FT_DONE_MM_VAR 1 */
+#if ((FREETYPE_MAJOR*10000 + FREETYPE_MINOR*100 + FREETYPE_PATCH) >= 20900)
+#define HAVE_FT_DONE_MM_VAR 1
+#endif
 
 /* Define to 1 if you have the `FT_Get_Var_Blend_Coordinates' function. */
-/* #define HAVE_FT_GET_VAR_BLEND_COORDINATES 1 */
+#if ((FREETYPE_MAJOR*10000 + FREETYPE_MINOR*100 + FREETYPE_PATCH) >= 20701)
+#define HAVE_FT_GET_VAR_BLEND_COORDINATES 1
+#endif
 
 /* Define to 1 if you have the `FT_Set_Var_Blend_Coordinates' function. */
-/* #define HAVE_FT_SET_VAR_BLEND_COORDINATES 1 */
+#define HAVE_FT_SET_VAR_BLEND_COORDINATES 1
 
 /* Have GDI library */
 /* #undef HAVE_GDI */