089685
--- freetype-2.9/builds/unix/freetype-config.in
089685
+++ freetype-2.9/builds/unix/freetype-config.in
089685
@@ -13,45 +13,25 @@ LC_ALL=C
089685
 export LC_ALL
089685
 
089685
 
089685
-# if `pkg-config' is available, use values from `freetype2.pc'
089685
-%PKG_CONFIG% --atleast-pkgconfig-version 0.24 >/dev/null 2>&1
089685
-if test $? -eq 0 ; then
089685
-  # note that option `--variable' is not affected by the
089685
-  # PKG_CONFIG_SYSROOT_DIR environment variable
089685
-  if test "x$SYSROOT" != "x" ; then
089685
-    PKG_CONFIG_SYSROOT_DIR="$SYSROOT"
089685
-    export PKG_CONFIG_SYSROOT_DIR
089685
-  fi
089685
-
089685
-  prefix=`%PKG_CONFIG% --variable prefix freetype2`
089685
-  exec_prefix=`%PKG_CONFIG% --variable exec_prefix freetype2`
089685
-
089685
-  includedir=`%PKG_CONFIG% --variable includedir freetype2`
089685
-  libdir=`%PKG_CONFIG% --variable libdir freetype2`
089685
-
089685
-  version=`%PKG_CONFIG% --modversion freetype2`
089685
-
089685
-  cflags=`%PKG_CONFIG% --cflags freetype2`
089685
-  dynamic_libs=`%PKG_CONFIG% --libs freetype2`
089685
-  static_libs=`%PKG_CONFIG% --static --libs freetype2`
089685
-else
089685
-  prefix="%prefix%"
089685
-  exec_prefix="%exec_prefix%"
089685
-
089685
-  includedir="%includedir%"
089685
-  libdir="%libdir%"
089685
-
089685
-  version=%ft_version%
089685
-
089685
-  cflags="-I${SYSROOT}$includedir/freetype2"
089685
-  dynamic_libs="-lfreetype"
089685
-  static_libs="%LIBSSTATIC_CONFIG%"
089685
-  if test "${SYSROOT}$libdir" != "/usr/lib"   &&
089685
-     test "${SYSROOT}$libdir" != "/usr/lib64" ; then
089685
-    libs_L="-L${SYSROOT}$libdir"
089685
-  fi
089685
+# note that option `--variable' is not affected by the
089685
+# PKG_CONFIG_SYSROOT_DIR environment variable
089685
+if test "x$SYSROOT" != "x" ; then
089685
+  PKG_CONFIG_SYSROOT_DIR="$SYSROOT"
089685
+  export PKG_CONFIG_SYSROOT_DIR
089685
 fi
089685
 
089685
+prefix=`pkgconf --variable prefix freetype2`
089685
+exec_prefix=`pkgconf --variable exec_prefix freetype2`
089685
+
089685
+includedir=`pkgconf --variable includedir freetype2`
089685
+libdir=`pkgconf --variable libdir freetype2`
089685
+
089685
+version=`pkgconf --modversion freetype2`
089685
+
089685
+cflags=`pkgconf --cflags freetype2`
089685
+dynamic_libs=`pkgconf --libs freetype2`
089685
+static_libs=`pkgconf --static --libs freetype2`
089685
+
089685
 orig_prefix=$prefix
089685
 orig_exec_prefix=$exec_prefix
089685