pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/wxsvg Fix build with FreeType 2.2+
details: https://anonhg.NetBSD.org/pkgsrc/rev/30439abf459b
branches: trunk
changeset: 514885:30439abf459b
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue Jun 20 12:54:48 2006 +0000
description:
Fix build with FreeType 2.2+
diffstat:
graphics/wxsvg/distinfo | 3 +-
graphics/wxsvg/patches/patch-aa | 54 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 56 insertions(+), 1 deletions(-)
diffs (69 lines):
diff -r 78fdf8ff377e -r 30439abf459b graphics/wxsvg/distinfo
--- a/graphics/wxsvg/distinfo Tue Jun 20 12:25:51 2006 +0000
+++ b/graphics/wxsvg/distinfo Tue Jun 20 12:54:48 2006 +0000
@@ -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 -r 78fdf8ff377e -r 30439abf459b graphics/wxsvg/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/wxsvg/patches/patch-aa Tue Jun 20 12:54:48 2006 +0000
@@ -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)
Home |
Main Index |
Thread Index |
Old Index