f9cb51
diff -Nrup a/Modules/FindFreetype.cmake b/Modules/FindFreetype.cmake
f9cb51
--- a/Modules/FindFreetype.cmake	2014-01-16 12:15:08.000000000 -0500
f9cb51
+++ b/Modules/FindFreetype.cmake	2016-03-02 17:06:31.962906464 -0500
f9cb51
@@ -70,6 +70,19 @@ find_path(FREETYPE_INCLUDE_DIR_freetype2
f9cb51
   PATH_SUFFIXES include/freetype2 include
f9cb51
 )
f9cb51
 
f9cb51
+if(NOT FREETYPE_INCLUDE_DIR_freetype2)
f9cb51
+  find_path(FREETYPE_INCLUDE_DIR_freetype2 config/ftheader.h
f9cb51
+    HINTS
f9cb51
+      ENV FREETYPE_DIR
f9cb51
+    PATHS
f9cb51
+      /usr/X11R6
f9cb51
+      /usr/local/X11R6
f9cb51
+      /usr/local/X11
f9cb51
+      /usr/freeware
f9cb51
+    PATH_SUFFIXES include/freetype2 include
f9cb51
+  )
f9cb51
+endif()
f9cb51
+
f9cb51
 find_library(FREETYPE_LIBRARY
f9cb51
   NAMES freetype libfreetype freetype219
f9cb51
   HINTS
f9cb51
@@ -91,8 +104,14 @@ if(FREETYPE_INCLUDE_DIR_ft2build AND FRE
f9cb51
 endif()
f9cb51
 set(FREETYPE_LIBRARIES "${FREETYPE_LIBRARY}")
f9cb51
 
f9cb51
-if(FREETYPE_INCLUDE_DIR_freetype2 AND EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h")
f9cb51
-    file(STRINGS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h" freetype_version_str
f9cb51
+if(EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h")
f9cb51
+  set(FREETYPE_H "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h")
f9cb51
+elseif(EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype.h")
f9cb51
+  set(FREETYPE_H "${FREETYPE_INCLUDE_DIR_freetype2}/freetype.h")
f9cb51
+endif()
f9cb51
+
f9cb51
+if(FREETYPE_INCLUDE_DIR_freetype2 AND FREETYPE_H)
f9cb51
+    file(STRINGS "${FREETYPE_H}" freetype_version_str
f9cb51
          REGEX "^#[\t ]*define[\t ]+FREETYPE_(MAJOR|MINOR|PATCH)[\t ]+[0-9]+$")
f9cb51
 
f9cb51
     unset(FREETYPE_VERSION_STRING)