freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] broken includes and ftversion from freetype-config in 2.5


From: Hin-Tak Leung
Subject: Re: [ft-devel] broken includes and ftversion from freetype-config in 2.5.2
Date: Sun, 22 Dec 2013 05:44:57 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22.1

Argh, my mistake and apology for the noise - I have a local patch from redhat called "freetype-multilib.patch" which does this:

======================
--- freetype-2.4.12/builds/unix/freetype-config.in
+++ freetype-2.4.12/builds/unix/freetype-config.in
@@ -12,11 +12,11 @@
 LC_ALL=C
 export LC_ALL

-prefix="%prefix%"
-exec_prefix="%exec_prefix%"
+prefix=`pkg-config --variable prefix freetype2`
+exec_prefix=`pkg-config --variable exec_prefix freetype2`
 exec_prefix_set="no"
-includedir="%includedir%"
-libdir="%libdir%"
+includedir=`pkg-config --variable includedir freetype2`
+libdir=`pkg-config --variable libdir freetype2`
 enable_shared="%build_libtool_libs%"

 usage()
=====================

Wouldn't something like this makes sense also? In a way this makes freetype-config cross-compile aware, this pkg-config is sensitive to whether it is being
run in a cross-compile environment.

Hin-Tak Leung wrote:
Hi Werner,

Looks like a few "freetype2" should be removed from freetype-config:

$ pkg-config --variable includedir freetype2
/usr/include/freetype2

$ freetype-config --cflags
-I/usr/include/freetype2/freetype2

since "pkg-config --variable includedir freetype2" already put $includedir
right, some of the hard-coded "/freetype2/" in freetype-config
shouldn't be there? :

------------
if test "$echo_ft_version" = "yes" ; then
   major=`grep define ${SYSROOT}$includedir/freetype2/freetype.h \
          | grep FREETYPE_MAJOR \
          | sed 's/.*[     ]\([0-9][0-9]*\).*/\1/'`
   minor=`grep define ${SYSROOT}$includedir/freetype2/freetype.h \
          | grep FREETYPE_MINOR \
          | sed 's/.*[     ]\([0-9][0-9]*\).*/\1/'`
   patch=`grep define ${SYSROOT}$includedir/freetype2/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${SYSROOT}$includedir/freetype2"
   echo $cflags
fi
------------

That affects ftversion and cflags.

Hin-Tak



reply via email to

[Prev in Thread] Current Thread [Next in Thread]