[BACK]Return to patch-texk_web2c_configure CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / print / xetex / patches

File: [cvs.NetBSD.org] / pkgsrc / print / xetex / patches / Attic / patch-texk_web2c_configure (download)

Revision 1.1, Sat May 5 12:22:47 2018 UTC (4 years, 9 months ago) by minskim
Branch: MAIN
CVS Tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2

print/xetex: Make this build with freetype2-2.9.1

freetype2 no longer installs freetype-config. Use pkg-config instead.

$NetBSD: patch-texk_web2c_configure,v 1.1 2018/05/05 12:22:47 minskim Exp $

--- texk/web2c/configure.orig	2017-03-18 22:50:15.000000000 +0000
+++ texk/web2c/configure
@@ -1786,7 +1786,7 @@ Optional Packages:
   --with-system-libpng    use installed libpng headers and library (requires
                           pkg-config)
   --with-system-freetype2 use installed freetype2 headers and library
-                          (requires freetype-config)
+                          (requires pkg-config)
   --with-system-pixman    use installed pixman headers and library (requires
                           pkg-config)
   --with-system-cairo     use installed cairo headers and library (requires
@@ -23968,9 +23968,9 @@ esac
 else
   FT2_CONFIG="$ac_cv_prog_FT2_CONFIG"
 fi
-if $FT2_CONFIG --ftversion >/dev/null 2>&1; then
-  FREETYPE2_INCLUDES=`$FT2_CONFIG --cflags`
-  FREETYPE2_LIBS=`$FT2_CONFIG --libs`
+if $PKG_CONFIG --version >/dev/null 2>&1; then
+  FREETYPE2_INCLUDES=`$PKG_CONFIG --cflags freetype2`
+  FREETYPE2_LIBS=`$PKG_CONFIG --libs freetype2`
 elif test "x$need_freetype2:$with_system_freetype2" = xyes:yes; then
   as_fn_error $? "did not find freetype-config required for system freetype2 library" "$LINENO" 5
 fi