From 978b11dc59d3c00fececff3361d548f98fafb8aa Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Tue, 22 Dec 2009 00:25:38 +0100 Subject: [PATCH] Make freetype-config aware of $SYSROOT. * builds/unix/freetype-config.in: Decorate with ${SYSROOT} where appropriate. --- ChangeLog | 7 +++++++ builds/unix/freetype-config.in | 22 +++++++++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9a5235a1..8eb9d510 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-12-22 Marc Kleine-Budde + + Make freetype-config aware of $SYSROOT. + + * builds/unix/freetype-config.in: Decorate with ${SYSROOT} where + appropriate. + 2009-12-20 Werner Lemberg Fix compiler warning. diff --git a/builds/unix/freetype-config.in b/builds/unix/freetype-config.in index 9606d318..0a7a767d 100644 --- a/builds/unix/freetype-config.in +++ b/builds/unix/freetype-config.in @@ -101,11 +101,11 @@ if test "$local_prefix" = "yes" ; then fi if test "$echo_prefix" = "yes" ; then - echo $prefix + echo ${SYSROOT}$prefix fi if test "$echo_exec_prefix" = "yes" ; then - echo $exec_prefix + echo ${SYSROOT}$exec_prefix fi if test "$exec_prefix_set" = "yes" ; then @@ -118,22 +118,22 @@ else fi if test "$echo_ft_version" = "yes" ; then - major=`grep define $includedir/freetype2/freetype/freetype.h \ + major=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \ | grep FREETYPE_MAJOR \ | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'` - minor=`grep define $includedir/freetype2/freetype/freetype.h \ + minor=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \ | grep FREETYPE_MINOR \ | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'` - patch=`grep define $includedir/freetype2/freetype/freetype.h \ + patch=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \ | grep FREETYPE_PATCH \ | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'` echo $major.$minor.$patch fi if test "$echo_cflags" = "yes" ; then - cflags="-I$includedir/freetype2" - if test "$includedir" != "/usr/include" ; then - echo $cflags -I$includedir + cflags="-I${SYSROOT}$includedir/freetype2" + if test "${SYSROOT}$includedir" != "/usr/include" ; then + echo $cflags -I${SYSROOT}$includedir else echo $cflags fi @@ -145,8 +145,8 @@ if test "$echo_libs" = "yes" ; then eval "rpath=\"$hardcode_libdir_flag_spec\"" fi libs="-lfreetype @LIBZ@ @FT2_EXTRA_LIBS@" - if test "$libdir" != "/usr/lib" && test "$libdir" != "/usr/lib64"; then - echo -L$libdir $rpath $libs + if test "${SYSROOT}$libdir" != "/usr/lib" && test "${SYSROOT}$libdir" != "/usr/lib64"; then + echo -L${SYSROOT}$libdir $libs else echo $libs fi @@ -154,7 +154,7 @@ fi if test "$echo_libtool" = "yes" ; then convlib="libfreetype.la" - echo $libdir/$convlib + echo ${SYSROOT}$libdir/$convlib fi # EOF