Source: vflib3
Version: 3.7.2+dfsg-1
Tags: upstream patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

vflib3 fails to cross build from source, because the upstream
configure.in hard codes the build architecture pkg-config for detecting
freetype2. As a consequence, it fails locating freetype2, misses the
flags and fails.

The common way to fix this problem is using PKG_CHECK_MODULES as that
macro takes care of figuring out the right pkg-config. I'm attaching a
patch to implement that, but I was unable to make autoreconf pick up and
substitute it. I fear for actually using it, you'll have to vendor
pkg.m4 into aclocal.m4. I'll leave the integration of the change up to
you.

Helmut
--- vflib3-3.7.2+dfsg.orig/configure.in
+++ vflib3-3.7.2+dfsg/configure.in
@@ -190,8 +190,9 @@
  [  --with-opentype         Build VFlib with OpenType font driver (FreeType2)],
  if test "${withval}" = yes; then withval="opentype"; fi;
  if test "${withval}" = no;  then withval="";         fi;
- opentype_lib=`pkg-config --libs freetype2`; 
- opentype_includedir=`pkg-config --cflags freetype2`; 
+ PKG_CHECK_MODULES([FREETYPE2],[freetype2])
+ opentype_lib="$FREETYPE2_LIBS"
+ opentype_includedir="$FREETYPE2_CFLAGS"
  otf_objs="drv_otf.lo"; 
  AC_DEFINE(WITH_OPENTYPE)
 )

Reply via email to