0003-drop-Check_header_library-for-freetype.patch 1.16 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
From: Hideki Yamane <h-yamane@sios.com>
Date: Tue, 11 Dec 2018 16:44:35 +0900
Subject: drop Check_header_library for freetype

I don't know why but Check_header_library for freetype doesn't work...
---
 OMakefile | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/OMakefile b/OMakefile
Kyle Robbertze's avatar
Kyle Robbertze committed
11
index d564990..b509b52 100644
12 13
--- a/OMakefile
+++ b/OMakefile
Kyle Robbertze's avatar
Kyle Robbertze committed
14
@@ -331,17 +331,15 @@ print_configured() =
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
   if $(true_if_not_defined ARG_WANT_FREETYPE)
     res=$(pkg_config freetype, freetype2)
     if $(not $(res))
-      HAVE_FREETYPE = $(Check_header_library freetype, freetype/freetype.h, FT_Library_Version)
-      SUPPORT_FREETYPE = $(HAVE_FREETYPE)
-      if $(SUPPORT_FREETYPE)
-        LDFLAGS_freetype=-lfreetype
-        export
-      else
-        failwith_if_defined(ARG_WANT_FREETYPE, freetype requested but not found)
+      SUPPORT_FREETYPE = true
+      LDFLAGS_freetype=-lfreetype
       export
     if $(SUPPORT_FREETYPE)
       SUPPORTED_NON_FORMATS+=freetype
       export
+    else
+      failwith_if_defined(ARG_WANT_FREETYPE, freetype requested but not found)
+    export
 
   SUPPORTED_SUBPACKAGES= $(SUPPORTED_FORMATS) $(SUPPORTED_NON_FORMATS)