From 3602daba968a0e16ff8817cb961f23cd54730acc Mon Sep 17 00:00:00 2001 From: kwm Date: Tue, 24 Dec 2013 21:22:21 +0000 Subject: Update freetype to 2.5.2. Remove patch to add -I/usr/local/include in freetype-config --cflags. If ports need extra headers they should look for them, and not get them via a side-effect. Freetype had a header resuffle in 2.5.1, patch ports to use the new header style. Thanks go to bdrewery for the two exp-runs and rakuco for helping me with some troublesome cmake ports. PR: ports/184587 --- games/brutalchess/files/patch-src_fontloader.h | 17 +++++++++++++++++ games/openmortal/files/patch-src-sge__tt__text.cpp | 17 +++++++++++++++-- games/scorched3d/Makefile | 5 ++++- .../files/patch-src_client_GLEXT_GLFont2dFreeType.h | 17 +++++++++++++++++ .../files/patch-src_launcher_wxdialogs_TrueTypeFont.h | 17 +++++++++++++++++ 5 files changed, 70 insertions(+), 3 deletions(-) create mode 100644 games/brutalchess/files/patch-src_fontloader.h create mode 100644 games/scorched3d/files/patch-src_client_GLEXT_GLFont2dFreeType.h create mode 100644 games/scorched3d/files/patch-src_launcher_wxdialogs_TrueTypeFont.h (limited to 'games') diff --git a/games/brutalchess/files/patch-src_fontloader.h b/games/brutalchess/files/patch-src_fontloader.h new file mode 100644 index 000000000000..e1434464ce8d --- /dev/null +++ b/games/brutalchess/files/patch-src_fontloader.h @@ -0,0 +1,17 @@ +--- src/fontloader.h.orig 2013-12-13 10:49:49.000000000 +0100 ++++ src/fontloader.h 2013-12-13 10:50:39.000000000 +0100 +@@ -12,11 +12,9 @@ + //FreeType Headers + #include + #include FT_FREETYPE_H +- +-#include +-#include +-#include +-#include ++#include FT_GLYPH_H ++#include FT_OUTLINE_H ++#include FT_TRIGONOMETRY_H + + // Other Headers we'll need. + #include diff --git a/games/openmortal/files/patch-src-sge__tt__text.cpp b/games/openmortal/files/patch-src-sge__tt__text.cpp index 0df428b3db45..4cef2d593c2c 100644 --- a/games/openmortal/files/patch-src-sge__tt__text.cpp +++ b/games/openmortal/files/patch-src-sge__tt__text.cpp @@ -1,5 +1,5 @@ ---- src/sge_tt_text.cpp.orig Tue Sep 12 18:29:07 2006 -+++ src/sge_tt_text.cpp Tue Sep 12 18:29:12 2006 +--- src/sge_tt_text.cpp.orig 2004-03-03 21:17:48.000000000 +0100 ++++ src/sge_tt_text.cpp 2013-12-13 11:24:58.000000000 +0100 @@ -26,7 +26,6 @@ #include "SDL.h" @@ -8,3 +8,16 @@ #include #include #include +@@ -37,9 +36,9 @@ + + #ifndef _SGE_NOTTF + #include +-#include +-#include +-#include ++#include FT_FREETYPE_H ++#include FT_OUTLINE_H ++#include FT_TRUETYPE_IDS_H + + /* The structure used to hold glyph information (cached) */ + struct glyph { diff --git a/games/scorched3d/Makefile b/games/scorched3d/Makefile index 7c52265fb8e7..1e8f83e79a5b 100644 --- a/games/scorched3d/Makefile +++ b/games/scorched3d/Makefile @@ -30,12 +30,15 @@ USE_OPENAL= al alut USE_SDL= mixer net sdl USE_WX= 2.4+ WX_CONF_ARGS= absolute -USES= iconv perl5 gmake pkgconfig +USES= dos2unix iconv perl5 gmake pkgconfig USE_AUTOTOOLS= aclocal automake autoconf ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal AUTOMAKE_ARGS= --add-missing --copy --force --foreign CONFIGURE_ARGS= --datadir=${DATADIR} +DOS2UNIX_FILES= src/client/GLEXT/GLFont2dFreeType.h \ + src/launcher/wxdialogs/TrueTypeFont.h + CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib diff --git a/games/scorched3d/files/patch-src_client_GLEXT_GLFont2dFreeType.h b/games/scorched3d/files/patch-src_client_GLEXT_GLFont2dFreeType.h new file mode 100644 index 000000000000..5bcad3c1b8ff --- /dev/null +++ b/games/scorched3d/files/patch-src_client_GLEXT_GLFont2dFreeType.h @@ -0,0 +1,17 @@ +--- src/client/GLEXT/GLFont2dFreeType.h.orig 2013-12-17 09:58:11.000000000 +0100 ++++ src/client/GLEXT/GLFont2dFreeType.h 2013-12-17 09:59:18.000000000 +0100 +@@ -23,10 +23,10 @@ + + #include + #include +-#include +-#include +-#include +-#include ++#include FT_FREETYPE_H ++#include FT_GLYPH_H ++#include FT_OUTLINE_H ++#include FT_TRIGONOMETRY_H + #include + + class GLFont2dFreeType diff --git a/games/scorched3d/files/patch-src_launcher_wxdialogs_TrueTypeFont.h b/games/scorched3d/files/patch-src_launcher_wxdialogs_TrueTypeFont.h new file mode 100644 index 000000000000..d3f212392a55 --- /dev/null +++ b/games/scorched3d/files/patch-src_launcher_wxdialogs_TrueTypeFont.h @@ -0,0 +1,17 @@ +--- src/launcher/wxdialogs/TrueTypeFont.h.orig 2013-12-17 10:01:02.000000000 +0100 ++++ src/launcher/wxdialogs/TrueTypeFont.h 2013-12-17 10:01:16.000000000 +0100 +@@ -25,10 +25,10 @@ + #include + #include + #include +-#include +-#include +-#include +-#include ++#include FT_FREETYPE_H ++#include FT_GLYPH_H ++#include FT_OUTLINE_H ++#include FT_TRIGONOMETRY_H + + class TrueTypeFont + { -- cgit