aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2013-12-24 21:22:21 +0000
committerKoop Mast <kwm@FreeBSD.org>2013-12-24 21:22:21 +0000
commitb1bf1620a6571c5eb84bed4e3f06cf52094d0a48 (patch)
tree93506aaee5230ee46b75930c4b3a6b8e0f243d74 /x11-fonts
parent123411e1ee17366ee88efd54b8482949b8e76eb5 (diff)
downloadports-b1bf1620a6571c5eb84bed4e3f06cf52094d0a48.tar.gz
ports-b1bf1620a6571c5eb84bed4e3f06cf52094d0a48.zip
Notes
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/fontmatrix/files/patch-cmake__modules__FREETYPEConfig.cmake22
-rw-r--r--x11-fonts/ttmkfdir/files/patch-ttf.cpp24
2 files changed, 39 insertions, 7 deletions
diff --git a/x11-fonts/fontmatrix/files/patch-cmake__modules__FREETYPEConfig.cmake b/x11-fonts/fontmatrix/files/patch-cmake__modules__FREETYPEConfig.cmake
new file mode 100644
index 000000000000..fa75a8cd357f
--- /dev/null
+++ b/x11-fonts/fontmatrix/files/patch-cmake__modules__FREETYPEConfig.cmake
@@ -0,0 +1,22 @@
+--- cmake/modules/FREETYPEConfig.cmake.orig 2008-04-07 23:45:10.000000000 +0300
++++ cmake/modules/FREETYPEConfig.cmake 2013-12-23 19:53:13.000000000 +0200
+@@ -1,14 +1,14 @@
+ #
+ # Find the native FREETYPE includes and library
+ # (from Scribus)
+- FIND_PATH(FREETYPE_INCLUDE_DIR_FT2BUILD ft2build.h
+- /usr/include/
+- /usr/local/include/
+- /usr/X11R6/include/
++ FIND_PATH(FREETYPE_INCLUDE_DIR_FT2BUILD freetype2/ft2build.h
++ /usr/include
++ /usr/local/include
++ /usr/X11R6/include
+ NO_CMAKE_SYSTEM_PATH
+ )
+
+- FIND_PATH(FREETYPE_INCLUDE_DIR_FTHEADER freetype/config/ftheader.h
++ FIND_PATH(FREETYPE_INCLUDE_DIR_FTHEADER config/ftheader.h
+ /usr/include/freetype2
+ /usr/local/include/freetype2
+ /usr/X11R6/include/freetype2
diff --git a/x11-fonts/ttmkfdir/files/patch-ttf.cpp b/x11-fonts/ttmkfdir/files/patch-ttf.cpp
index 7718aea50169..da260f32bd09 100644
--- a/x11-fonts/ttmkfdir/files/patch-ttf.cpp
+++ b/x11-fonts/ttmkfdir/files/patch-ttf.cpp
@@ -1,6 +1,16 @@
---- ttf.cpp 2003-01-08 00:25:25.000000000 -0500
-+++ ttf.cpp 2012-12-07 12:34:54.000000000 -0500
-@@ -51,20 +51,27 @@
+--- ttf.cpp.orig 2003-01-08 06:25:25.000000000 +0100
++++ ttf.cpp 2013-12-17 00:08:13.000000000 +0100
+@@ -3,7 +3,8 @@
+ #include <cctype>
+ #include <cstring>
+
+-#include "freetype/tttables.h"
++#include <ft2build.h>
++#include FT_TRUETYPE_TABLES_H
+ #include "ttmkfdir.h"
+ #include "ttf.h"
+ #include "ttos2val.h"
+@@ -51,20 +52,27 @@
bool
Face::MappingPresent (int cmapidx, NumericMapping *m, int enc_size, int start_code, bool enc_comp)
{
@@ -35,7 +45,7 @@
}
Face::Face (const std::string &filename)
-@@ -239,7 +246,7 @@
+@@ -239,7 +247,7 @@
for (i = 0; i < n; i++) {
if ((fterror = FT_Get_Sfnt_Name (face, i, &NamePtr)) != FT_Err_Ok) {
std::cout << "Warning: Can't SFNT name : " << FileName << "(" << fterror << ")" << std::endl;
@@ -44,7 +54,7 @@
};
platform = NamePtr.platform_id;
encoding = NamePtr.encoding_id;
-@@ -483,7 +490,7 @@
+@@ -483,7 +491,7 @@
const char *
Face::PanoseWeight (void) const
{
@@ -53,7 +63,7 @@
"any",
"no fit",
"very light",
-@@ -548,7 +555,7 @@
+@@ -548,7 +556,7 @@
const char *
Face::PanoseWidth (void) const
{
@@ -62,7 +72,7 @@
"any",
"no fit",
"old style",
-@@ -561,7 +568,7 @@
+@@ -561,7 +569,7 @@
"monospaced",
};