diff options
author | Koop Mast <kwm@FreeBSD.org> | 2013-12-24 21:22:21 +0000 |
---|---|---|
committer | Koop Mast <kwm@FreeBSD.org> | 2013-12-24 21:22:21 +0000 |
commit | b1bf1620a6571c5eb84bed4e3f06cf52094d0a48 (patch) | |
tree | 93506aaee5230ee46b75930c4b3a6b8e0f243d74 /devel/cmake | |
parent | 123411e1ee17366ee88efd54b8482949b8e76eb5 (diff) | |
download | ports-b1bf1620a6571c5eb84bed4e3f06cf52094d0a48.tar.gz ports-b1bf1620a6571c5eb84bed4e3f06cf52094d0a48.zip |
Notes
Diffstat (limited to 'devel/cmake')
-rw-r--r-- | devel/cmake/files/patch-Modules_FindFreetype.cmake | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/devel/cmake/files/patch-Modules_FindFreetype.cmake b/devel/cmake/files/patch-Modules_FindFreetype.cmake new file mode 100644 index 000000000000..e053e80bea84 --- /dev/null +++ b/devel/cmake/files/patch-Modules_FindFreetype.cmake @@ -0,0 +1,28 @@ +In the 2.5.1 release of freetype most of the headers where moved from +freetype2/freetype/* -> freetype2/*. So we need to update the detection +rules to take this into account. + +http://public.kitware.com/Bug/view.php?id=14601 + +--- Modules/FindFreetype.cmake.orig 2013-12-13 11:15:05.000000000 +0100 ++++ Modules/FindFreetype.cmake 2013-12-13 11:15:39.000000000 +0100 +@@ -56,7 +56,7 @@ + PATH_SUFFIXES include/freetype2 include + ) + +-find_path(FREETYPE_INCLUDE_DIR_freetype2 freetype/config/ftheader.h ++find_path(FREETYPE_INCLUDE_DIR_freetype2 config/ftheader.h + HINTS + ENV FREETYPE_DIR + PATHS +@@ -91,8 +91,8 @@ + endif() + set(FREETYPE_LIBRARIES "${FREETYPE_LIBRARY}") + +-if(FREETYPE_INCLUDE_DIR_freetype2 AND EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h") +- file(STRINGS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h" freetype_version_str ++if(FREETYPE_INCLUDE_DIR_freetype2 AND EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype.h") ++ file(STRINGS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype.h" freetype_version_str + REGEX "^#[\t ]*define[\t ]+FREETYPE_(MAJOR|MINOR|PATCH)[\t ]+[0-9]+$") + + unset(FREETYPE_VERSION_STRING) |