aboutsummaryrefslogtreecommitdiff
path: root/graphics/osg-devel/files
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2014-01-17 22:21:37 +0000
committerMatthias Andree <mandree@FreeBSD.org>2014-01-17 22:21:37 +0000
commit6b9a97b506d59f14fc152943abc8e879baebc7bb (patch)
treea628091f57d0f3dd020c5444792f92d2e13e1200 /graphics/osg-devel/files
parent9fc878e88f2e7402f5592aef2377954facd88fc1 (diff)
Notes
Diffstat (limited to 'graphics/osg-devel/files')
-rw-r--r--graphics/osg-devel/files/patch-CMakeModules_FindFreeType.cmake44
-rw-r--r--graphics/osg-devel/files/patch-src-osgPlugins-freetype-FreeTypeFont.cpp14
2 files changed, 58 insertions, 0 deletions
diff --git a/graphics/osg-devel/files/patch-CMakeModules_FindFreeType.cmake b/graphics/osg-devel/files/patch-CMakeModules_FindFreeType.cmake
new file mode 100644
index 000000000000..135d24e12ff3
--- /dev/null
+++ b/graphics/osg-devel/files/patch-CMakeModules_FindFreeType.cmake
@@ -0,0 +1,44 @@
+--- CMakeModules/FindFreeType.cmake.orig 2013-12-24 19:18:24.000000000 +0100
++++ CMakeModules/FindFreeType.cmake 2013-12-24 19:19:27.000000000 +0100
+@@ -24,18 +24,18 @@
+ # wants explicit full paths and this trickery doesn't work too well.
+ # I'm going to attempt to cut out the middleman and hope
+ # everything still works.
+-FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build ft2build.h
++FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build freetype2/ft2build.h
+ PATHS
+ $ENV{FREETYPE_DIR}
+ NO_DEFAULT_PATH
+ PATH_SUFFIXES include
+ )
+-FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build ft2build.h
++FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build freetype2/ft2build.h
+ PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
+ NO_DEFAULT_PATH
+ PATH_SUFFIXES include
+ )
+-FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build ft2build.h
++FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build freetype2/ft2build.h
+ PATHS
+ /usr/local
+ /usr
+@@ -51,16 +51,16 @@
+ PATH_SUFFIXES include
+ )
+
+-FIND_PATH(FREETYPE_INCLUDE_DIR_freetype2 freetype/config/ftheader.h
++FIND_PATH(FREETYPE_INCLUDE_DIR_freetype2 config/ftheader.h
+ $ENV{FREETYPE_DIR}/include/freetype2
+ NO_DEFAULT_PATH
+ )
+-FIND_PATH(FREETYPE_INCLUDE_DIR_freetype2 freetype/config/ftheader.h
++FIND_PATH(FREETYPE_INCLUDE_DIR_freetype2 config/ftheader.h
+ PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
+ NO_DEFAULT_PATH
+ PATH_SUFFIXES include/freetype2
+ )
+-FIND_PATH(FREETYPE_INCLUDE_DIR_freetype2 freetype/config/ftheader.h
++FIND_PATH(FREETYPE_INCLUDE_DIR_freetype2 config/ftheader.h
+ /usr/local/include/freetype2
+ /usr/include/freetype2
+ /usr/local/X11R6/include/freetype2
diff --git a/graphics/osg-devel/files/patch-src-osgPlugins-freetype-FreeTypeFont.cpp b/graphics/osg-devel/files/patch-src-osgPlugins-freetype-FreeTypeFont.cpp
new file mode 100644
index 000000000000..eaae7ca841dc
--- /dev/null
+++ b/graphics/osg-devel/files/patch-src-osgPlugins-freetype-FreeTypeFont.cpp
@@ -0,0 +1,14 @@
+--- src/osgPlugins/freetype/FreeTypeFont.cpp.orig 2013-12-24 19:29:26.000000000 +0100
++++ src/osgPlugins/freetype/FreeTypeFont.cpp 2013-12-24 19:30:24.000000000 +0100
+@@ -14,8 +14,9 @@
+ #include "FreeTypeFont.h"
+ #include "FreeTypeLibrary.h"
+
+-#include <freetype/ftoutln.h>
+-#include <freetype/ftbbox.h>
++#include <ft2build.h>
++#include FT_OUTLINE_H
++#include FT_BBOX_H
+
+ #include <osg/Notify>
+ #include <osg/io_utils>