freebsd-ports/graphics/xpdf/files/patch-configure.in
Norikatsu Shigemura 70d92136ca 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)
2004-06-22 16:45:37 +00:00

18 lines
808 B
Text

--- 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)