From 3bdfa0553dc42dcaa2989fb933291548636c878b Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 20 Jun 2006 12:54:48 +0000 Subject: Fix build with FreeType 2.2+ --- graphics/wxsvg/distinfo | 3 ++- graphics/wxsvg/patches/patch-aa | 54 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 graphics/wxsvg/patches/patch-aa (limited to 'graphics/wxsvg') diff --git a/graphics/wxsvg/distinfo b/graphics/wxsvg/distinfo index 2729d0017d4..aec60b5378a 100644 --- a/graphics/wxsvg/distinfo +++ b/graphics/wxsvg/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2006/01/24 03:42:28 xtraeme Exp $ +$NetBSD: distinfo,v 1.2 2006/06/20 12:54:48 joerg Exp $ SHA1 (wxsvg-1.0b5.tar.gz) = f3535f5336445e6b0d9cb1783958df2e1a9a4c6f RMD160 (wxsvg-1.0b5.tar.gz) = a59dfedf643365ec578bfa484b95f9ca30645014 Size (wxsvg-1.0b5.tar.gz) = 668735 bytes +SHA1 (patch-aa) = f57ed0c1ce39dc45d79d349e3b48f417e8d200db diff --git a/graphics/wxsvg/patches/patch-aa b/graphics/wxsvg/patches/patch-aa new file mode 100644 index 00000000000..9386e7b1d54 --- /dev/null +++ b/graphics/wxsvg/patches/patch-aa @@ -0,0 +1,54 @@ +$NetBSD: patch-aa,v 1.1 2006/06/20 12:54:48 joerg Exp $ + +--- src/freetype/SVGCanvasTextFreetype.cpp.orig 2006-06-20 12:31:40.000000000 +0000 ++++ src/freetype/SVGCanvasTextFreetype.cpp +@@ -165,7 +165,11 @@ void wxSVGCanvasTextFreetype::RenderLine + } + } + ++#if (FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 2) || FREETYPE_MAJOR >= 2 ++gint moveto(const FT_Vector* to, gpointer data) ++#else + gint moveto(FT_Vector* to, gpointer data) ++#endif + { + wxSVGCanvasTextFreetype* canvasText = (wxSVGCanvasTextFreetype*) data; + +@@ -181,7 +185,11 @@ gint moveto(FT_Vector* to, gpointer data + return 0; + } + ++#if (FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 2) || FREETYPE_MAJOR >= 2 ++static gint lineto (const FT_Vector* to, gpointer data) ++#else + static gint lineto (FT_Vector* to, gpointer data) ++#endif + { + wxSVGCanvasTextFreetype* canvasText = (wxSVGCanvasTextFreetype*) data; + if (!canvasText->m_endpath) +@@ -194,7 +202,11 @@ static gint lineto (FT_Vector* to, gpoin + return 0; + } + ++#if (FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 2) || FREETYPE_MAJOR >= 2 ++static gint conicto(const FT_Vector* ftcontrol, const FT_Vector* to, gpointer data) ++#else + static gint conicto(FT_Vector* ftcontrol, FT_Vector* to, gpointer data) ++#endif + { + wxSVGCanvasTextFreetype* canvasText = (wxSVGCanvasTextFreetype*) data; + if (!canvasText->m_endpath) +@@ -209,8 +221,13 @@ static gint conicto(FT_Vector* ftcontrol + return 0; + } + ++#if (FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 2) || FREETYPE_MAJOR >= 2 ++static gint cubicto(const FT_Vector* ftcontrol1, const FT_Vector* ftcontrol2, ++ const FT_Vector* to, gpointer data) ++#else + static gint cubicto(FT_Vector* ftcontrol1, FT_Vector* ftcontrol2, + FT_Vector* to, gpointer data) ++#endif + { + wxSVGCanvasTextFreetype* canvasText = (wxSVGCanvasTextFreetype*) data; + if (!canvasText->m_endpath) -- cgit v1.2.3