From a6138da13ced3cb96e5762ed5fc54c7037a02fe3 Mon Sep 17 00:00:00 2001 From: Simone Rota Date: Sun, 19 Nov 2006 17:28:31 +0100 Subject: [PATCH] xpdf: added patches for freetype 2.2.x --- xpdf/.md5sum | 1 + xpdf/Pkgfile | 6 ++- xpdf/xpdf-3.01-noftinternals.patch | 78 ++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 2 deletions(-) create mode 100644 xpdf/xpdf-3.01-noftinternals.patch diff --git a/xpdf/.md5sum b/xpdf/.md5sum index 48184dc32..58d5259d0 100644 --- a/xpdf/.md5sum +++ b/xpdf/.md5sum @@ -1,2 +1,3 @@ +6acd0925240e9b7e7f917cd6cf28ab61 xpdf-3.01-noftinternals.patch e004c69c7dddef165d768b1362b44268 xpdf-3.01.tar.gz 8f1f5d37153c7e98f794f18d0b80fc25 xpdf-3.01pl2.patch diff --git a/xpdf/Pkgfile b/xpdf/Pkgfile index 749e864b0..73a71d329 100644 --- a/xpdf/Pkgfile +++ b/xpdf/Pkgfile @@ -6,14 +6,16 @@ name=xpdf version=3.01pl2 -release=1 +release=2 source=(ftp://ftp.foolabs.com/pub/xpdf/$name-3.01.tar.gz \ - $name-$version.patch) + $name-$version.patch + $name-3.01-noftinternals.patch) build() { cd $name-3.01 patch -p1 < ../$name-$version.patch + patch -p1 < ../$name-3.01-noftinternals.patch ./configure \ --prefix=/usr \ --with-Xm-library=/usr/lib \ diff --git a/xpdf/xpdf-3.01-noftinternals.patch b/xpdf/xpdf-3.01-noftinternals.patch new file mode 100644 index 000000000..86c2d16f5 --- /dev/null +++ b/xpdf/xpdf-3.01-noftinternals.patch @@ -0,0 +1,78 @@ +diff -urN xpdf-3.01-org/splash/SplashFTFont.cc xpdf-3.01/splash/SplashFTFont.cc +--- xpdf-3.01-org/splash/SplashFTFont.cc 2005-12-23 16:57:18.076514614 +0100 ++++ xpdf-3.01/splash/SplashFTFont.cc 2005-12-23 17:33:42.731318339 +0100 +@@ -14,7 +14,8 @@ + + #include + #include FT_OUTLINE_H +-#include FT_INTERNAL_OBJECTS_H // needed for FT_New_Size decl ++#include FT_SIZES_H // needed for FT_New_Size decl ++#include FT_GLYPH_H + #include "gmem.h" + #include "SplashMath.h" + #include "SplashGlyphBitmap.h" +@@ -25,11 +26,12 @@ + + //------------------------------------------------------------------------ + +-static int glyphPathMoveTo(FT_Vector *pt, void *path); +-static int glyphPathLineTo(FT_Vector *pt, void *path); +-static int glyphPathConicTo(FT_Vector *ctrl, FT_Vector *pt, void *path); +-static int glyphPathCubicTo(FT_Vector *ctrl1, FT_Vector *ctrl2, +- FT_Vector *pt, void *path); ++static int glyphPathMoveTo( const FT_Vector *pt, void *path); ++static int glyphPathLineTo( const FT_Vector *pt, void *path); ++static int glyphPathConicTo( const FT_Vector *ctrl, const FT_Vector *pt, ++ void* path ); ++static int glyphPathCubicTo( const FT_Vector *ctrl1, const FT_Vector *ctrl2, ++ const FT_Vector *pt, void *path); + + //------------------------------------------------------------------------ + // SplashFTFont +@@ -210,7 +212,7 @@ + }; + + SplashPath *SplashFTFont::getGlyphPath(int c) { +- static FT_Outline_Funcs outlineFuncs = { ++ static const FT_Outline_Funcs outlineFuncs = { + &glyphPathMoveTo, + &glyphPathLineTo, + &glyphPathConicTo, +@@ -249,7 +251,7 @@ + return path.path; + } + +-static int glyphPathMoveTo(FT_Vector *pt, void *path) { ++static int glyphPathMoveTo( const FT_Vector *pt, void *path) { + SplashFTFontPath *p = (SplashFTFontPath *)path; + + if (p->needClose) { +@@ -260,7 +262,7 @@ + return 0; + } + +-static int glyphPathLineTo(FT_Vector *pt, void *path) { ++static int glyphPathLineTo(const FT_Vector *pt, void *path) { + SplashFTFontPath *p = (SplashFTFontPath *)path; + + p->path->lineTo(pt->x / 64.0, -pt->y / 64.0); +@@ -268,7 +270,7 @@ + return 0; + } + +-static int glyphPathConicTo(FT_Vector *ctrl, FT_Vector *pt, void *path) { ++static int glyphPathConicTo(const FT_Vector *ctrl, const FT_Vector *pt, void *path) { + SplashFTFontPath *p = (SplashFTFontPath *)path; + SplashCoord x0, y0, x1, y1, x2, y2, x3, y3, xc, yc; + +@@ -306,8 +308,8 @@ + return 0; + } + +-static int glyphPathCubicTo(FT_Vector *ctrl1, FT_Vector *ctrl2, +- FT_Vector *pt, void *path) { ++static int glyphPathCubicTo(const FT_Vector *ctrl1, const FT_Vector *ctrl2, ++ const FT_Vector *pt, void *path) { + SplashFTFontPath *p = (SplashFTFontPath *)path; + + p->path->curveTo(ctrl1->x / 64.0, -ctrl1->y / 64.0,