Blame SOURCES/freetype-2.8-multilib.patch

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