summaryrefslogtreecommitdiff
path: root/graphics/xpdf
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2004-06-22 16:45:37 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2004-06-22 16:45:37 +0000
commit70d92136ca4bb2e34d763a2568a44e46a620e506 (patch)
treeea44401ccee9aee1e9faa9c281f567e8ae2f0fcf /graphics/xpdf
parent. Update checksums on the distribution files and restore a more complete (diff)
Fix xpdf's configure cannot find freetype2 library.
PR: ports-jp/14693[1], ports/67902, ports/68203[2] Submitted by: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> [1] Shin-ya Kuwamura <kuwa@labs.fujitsu.com> Reported by: Andriy Gapon <avg@icyb.net.ua> [2] Approved by: maintainer timeout (6 weeks)
Notes
Notes: svn path=/head/; revision=111990
Diffstat (limited to 'graphics/xpdf')
-rw-r--r--graphics/xpdf/Makefile9
-rw-r--r--graphics/xpdf/files/patch-configure.in18
-rw-r--r--graphics/xpdf/files/patch-truetype.patch62
3 files changed, 67 insertions, 22 deletions
diff --git a/graphics/xpdf/Makefile b/graphics/xpdf/Makefile
index 1134a558a634..2c62668e14b4 100644
--- a/graphics/xpdf/Makefile
+++ b/graphics/xpdf/Makefile
@@ -7,7 +7,7 @@
PORTNAME= xpdf
PORTVERSION= 3.00
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics print
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
${MASTER_SITE_TEX_CTAN}
@@ -24,7 +24,7 @@ USE_X_PREFIX= yes
USE_MOTIF= yes
USE_GMAKE= yes
-GNU_CONFIGURE= yes
+USE_AUTOCONF_VER= 257
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
@@ -46,11 +46,6 @@ MAN1= pdffonts.1 \
xpdf.1
MAN5= xpdfrc.5
-post-patch:
- @${CP} ${WRKSRC}/configure ${WRKSRC}/configure.orig
- @${SED} -e "s#freetype.h#ft2build.h#" ${WRKSRC}/configure.orig > \
- ${WRKSRC}/configure
-
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
diff --git a/graphics/xpdf/files/patch-configure.in b/graphics/xpdf/files/patch-configure.in
new file mode 100644
index 000000000000..5eeba456e3f0
--- /dev/null
+++ b/graphics/xpdf/files/patch-configure.in
@@ -0,0 +1,18 @@
+--- configure.in.orig Fri May 7 22:54:35 2004
++++ configure.in Fri May 7 22:33:28 2004
+@@ -306,10 +306,13 @@
+ dnl ##### (Note: FT_Get_Name_Index was added in FT 2.0.5, and is
+ dnl ##### the reason that Xpdf requires 2.0.5+.)
+ smr_CHECK_LIB(freetype2, freetype, [FreeType2 font rasterizer - version 2.0.5+],
+- FT_Get_Name_Index, freetype/freetype.h, -lm)
++ FT_Get_Name_Index, freetype/ft2build.h, -lm)
+ if test x"$freetype2_LIBS" = x; then
+ smr_CHECK_LIB(freetype2, freetype, [FreeType2 font rasterizer - version 2.0.5+],
+- FT_Get_Name_Index, freetype.h, -lm)
++ FT_Get_Name_Index, ft2build.h, -lm)
++ if test "x$smr_have_freetype2_library" = xyes; then
++ AC_DEFINE(HAVE_FREETYPE_H)
++ fi
+ fi
+ AC_SUBST(freetype2_LIBS)
+ AC_SUBST(freetype2_CFLAGS)
diff --git a/graphics/xpdf/files/patch-truetype.patch b/graphics/xpdf/files/patch-truetype.patch
index 2337ed71f198..e523621f4ba9 100644
--- a/graphics/xpdf/files/patch-truetype.patch
+++ b/graphics/xpdf/files/patch-truetype.patch
@@ -1,5 +1,5 @@
--- splash/Splash.cc.orig Thu Jan 22 10:26:44 2004
-+++ splash/Splash.cc Fri Mar 5 21:37:59 2004
++++ splash/Splash.cc Fri May 7 20:20:08 2004
@@ -952,7 +952,7 @@
}
@@ -19,7 +19,7 @@
}
err = fillGlyph(x, y, &glyph);
--- splash/Splash.h.orig Thu Jan 22 10:26:44 2004
-+++ splash/Splash.h Fri Mar 5 21:37:59 2004
++++ splash/Splash.h Fri May 7 20:20:08 2004
@@ -104,7 +104,7 @@
SplashError xorFill(SplashPath *path, GBool eo);
@@ -30,7 +30,7 @@
// Draw a glyph, using the current fill pattern. This function does
// not free any data, i.e., it ignores glyph->freeData.
--- splash/SplashFTFont.cc.orig Thu Jan 22 10:26:44 2004
-+++ splash/SplashFTFont.cc Fri Mar 5 21:37:59 2004
++++ splash/SplashFTFont.cc Fri May 7 20:20:08 2004
@@ -125,12 +125,12 @@
}
@@ -101,8 +101,18 @@
return NULL;
}
--- splash/SplashFTFont.h.orig Thu Jan 22 10:26:44 2004
-+++ splash/SplashFTFont.h Fri Mar 5 21:37:59 2004
-@@ -33,15 +33,15 @@
++++ splash/SplashFTFont.h Fri May 7 22:53:52 2004
+@@ -15,7 +15,8 @@
+ #pragma interface
+ #endif
+
+-#include <freetype/freetype.h>
++#include <ft2build.h>
++#include FT_FREETYPE_H
+ #include "SplashFont.h"
+
+ class SplashFTFontFile;
+@@ -33,15 +34,15 @@
// Munge xFrac and yFrac before calling SplashFont::getGlyph.
virtual GBool getGlyph(int c, int xFrac, int yFrac,
@@ -122,7 +132,7 @@
private:
--- splash/SplashFTFontEngine.cc.orig Thu Jan 22 10:26:44 2004
-+++ splash/SplashFTFontEngine.cc Fri Mar 5 21:38:00 2004
++++ splash/SplashFTFontEngine.cc Fri May 7 20:20:08 2004
@@ -107,7 +107,12 @@
SplashFontFile *ret;
@@ -138,7 +148,7 @@
tmpFileName = NULL;
if (!openTempFile(&tmpFileName, &tmpFile, "wb", NULL)) {
--- splash/SplashFTFontFile.cc.orig Thu Jan 22 10:26:44 2004
-+++ splash/SplashFTFontFile.cc Fri Mar 5 21:38:00 2004
++++ splash/SplashFTFontFile.cc Fri May 7 20:20:08 2004
@@ -43,7 +43,7 @@
}
@@ -208,8 +218,18 @@
SplashFTFontFile::~SplashFTFontFile() {
--- splash/SplashFTFontFile.h.orig Thu Jan 22 10:26:44 2004
-+++ splash/SplashFTFontFile.h Fri Mar 5 21:38:00 2004
-@@ -53,13 +53,14 @@
++++ splash/SplashFTFontFile.h Fri May 7 22:51:30 2004
+@@ -15,7 +15,8 @@
+ #pragma interface
+ #endif
+
+-#include <freetype/freetype.h>
++#include <ft2build.h>
++#include FT_FREETYPE_H
+ #include "SplashFontFile.h"
+
+ class SplashFontFileID;
+@@ -53,13 +54,14 @@
SplashFTFontFile(SplashFTFontEngine *engineA,
SplashFontFileID *idA,
char *fileNameA, GBool deleteFileA,
@@ -226,7 +246,7 @@
friend class SplashFTFont;
};
--- splash/SplashFont.cc.orig Thu Jan 22 10:26:44 2004
-+++ splash/SplashFont.cc Fri Mar 5 21:38:00 2004
++++ splash/SplashFont.cc Fri May 7 20:20:08 2004
@@ -89,7 +89,7 @@
}
@@ -246,7 +266,7 @@
}
--- splash/SplashFont.h.orig Thu Jan 22 10:26:44 2004
-+++ splash/SplashFont.h Fri Mar 5 21:38:00 2004
++++ splash/SplashFont.h Fri May 7 20:20:08 2004
@@ -61,15 +61,15 @@
// should override this to zero out xFrac and/or yFrac if they don't
// support fractional coordinates.
@@ -267,7 +287,7 @@
protected:
--- splash/SplashT1Font.cc.orig Thu Jan 22 10:26:44 2004
-+++ splash/SplashT1Font.cc Fri Mar 5 21:38:00 2004
++++ splash/SplashT1Font.cc Fri May 7 20:20:08 2004
@@ -171,12 +171,12 @@
}
@@ -294,7 +314,7 @@
T1_OUTLINE *outline;
T1_PATHSEGMENT *seg;
--- splash/SplashT1Font.h.orig Thu Jan 22 10:26:44 2004
-+++ splash/SplashT1Font.h Fri Mar 5 21:38:00 2004
++++ splash/SplashT1Font.h Fri May 7 20:20:08 2004
@@ -30,15 +30,15 @@
// Munge xFrac and yFrac before calling SplashFont::getGlyph.
@@ -315,7 +335,7 @@
private:
--- splash/SplashTypes.h.orig Thu Jan 22 10:26:44 2004
-+++ splash/SplashTypes.h Fri Mar 5 21:38:00 2004
++++ splash/SplashTypes.h Fri May 7 20:20:08 2004
@@ -9,6 +9,7 @@
#include <aconf.h>
@@ -324,8 +344,20 @@
//------------------------------------------------------------------------
// coordinates
+--- splash/SplashFTFontEngine.h.orig Fri May 7 22:52:10 2004
++++ splash/SplashFTFontEngine.h Fri May 7 22:52:41 2004
+@@ -15,7 +15,8 @@
+ #pragma interface
+ #endif
+
+-#include <freetype/freetype.h>
++#include <ft2build.h>
++#include FT_FREETYPE_H
+ #include "gtypes.h"
+
+ class SplashFontFile;
--- xpdf/SplashOutputDev.cc.orig Thu Jan 22 10:26:45 2004
-+++ xpdf/SplashOutputDev.cc Fri Mar 5 21:38:00 2004
++++ xpdf/SplashOutputDev.cc Fri May 7 20:20:08 2004
@@ -823,12 +823,12 @@
// fill