|
|
@ -116,12 +116,15 @@ fi
|
|
|
|
# check for freetype2 headers
|
|
|
|
# check for freetype2 headers
|
|
|
|
FREETYPE2_INCDIR=
|
|
|
|
FREETYPE2_INCDIR=
|
|
|
|
if [ "$XFT" = "yes" ]; then
|
|
|
|
if [ "$XFT" = "yes" ]; then
|
|
|
|
INC="freetype2/freetype/freetype.h"
|
|
|
|
|
|
|
|
XDIRS=`sed -n -e '/^QMAKE_INCDIR_X11[ ]*=/ { s/[^=]*=[ ]*//; s/-I/ /g; p; }' $XCONFIG`
|
|
|
|
XDIRS=`sed -n -e '/^QMAKE_INCDIR_X11[ ]*=/ { s/[^=]*=[ ]*//; s/-I/ /g; p; }' $XCONFIG`
|
|
|
|
LDIRS=`sed -n -e '/^QMAKE_INCDIR[ ]*=/ { s/[^=]*=[ ]*//; s/-I/ /g; p; }' $XCONFIG`
|
|
|
|
LDIRS=`sed -n -e '/^QMAKE_INCDIR[ ]*=/ { s/[^=]*=[ ]*//; s/-I/ /g; p; }' $XCONFIG`
|
|
|
|
INCDIRS="$IN_INCDIRS $XDIRS $LDIRS /usr/include /include"
|
|
|
|
INCDIRS="$IN_INCDIRS $XDIRS $LDIRS /usr/include /include"
|
|
|
|
F=
|
|
|
|
F=
|
|
|
|
for INCDIR in $INCDIRS; do
|
|
|
|
for INCDIR in $INCDIRS; do
|
|
|
|
|
|
|
|
INC="freetype2/freetype/freetype.h" # libfreetype <= 2.4.9-1.1
|
|
|
|
|
|
|
|
if ! [ -f $INCDIR/$INC ]; then
|
|
|
|
|
|
|
|
INC="freetype2/freetype.h" # libfreetype >= 2.5.1-1
|
|
|
|
|
|
|
|
fi
|
|
|
|
if [ -f $INCDIR/$INC ]; then
|
|
|
|
if [ -f $INCDIR/$INC ]; then
|
|
|
|
# detect major version of freetype2
|
|
|
|
# detect major version of freetype2
|
|
|
|
FREETYPE_MAJOR=`grep "#define FREETYPE_MAJOR" $INCDIR/$INC | head -n 1 | awk '{ print \$3 }'`
|
|
|
|
FREETYPE_MAJOR=`grep "#define FREETYPE_MAJOR" $INCDIR/$INC | head -n 1 | awk '{ print \$3 }'`
|
|
|
|