|
|
@ -786,34 +786,34 @@ make_cflags_and_ldflags() {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "$freetype_config" ]; then
|
|
|
|
if [ -n "$fontconfig_config" ]; then
|
|
|
|
CFLAGS="$CFLAGS -DWITH_FREETYPE"
|
|
|
|
CFLAGS="$CFLAGS -DWITH_FONTCONFIG"
|
|
|
|
CFLAGS="$CFLAGS `$freetype_config --cflags | tr '\n\r' ' '`"
|
|
|
|
CFLAGS="$CFLAGS `$fontconfig_config --cflags | tr '\n\r' ' '`"
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$enable_static" != "0" ]; then
|
|
|
|
if [ "$enable_static" != "0" ]; then
|
|
|
|
if [ "$os" = "OSX" ]; then
|
|
|
|
if [ "$os" = "OSX" ]; then
|
|
|
|
LIBS="$LIBS `$freetype_config --prefix`/lib/libfreetype.a"
|
|
|
|
LIBS="$LIBS `$fontconfig_config --variable=prefix`/lib/libfontconfig.a"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
# Is it possible to do static with freetype, if so: how?
|
|
|
|
LIBS="$LIBS `$fontconfig_config --libs --static | tr '\n\r' ' '`"
|
|
|
|
LIBS="$LIBS `$freetype_config --libs | tr '\n\r' ' '`"
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
else
|
|
|
|
LIBS="$LIBS `$freetype_config --libs | tr '\n\r' ' '`"
|
|
|
|
LIBS="$LIBS `$fontconfig_config --libs | tr '\n\r' ' '`"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "$fontconfig_config" ]; then
|
|
|
|
if [ -n "$freetype_config" ]; then
|
|
|
|
CFLAGS="$CFLAGS -DWITH_FONTCONFIG"
|
|
|
|
CFLAGS="$CFLAGS -DWITH_FREETYPE"
|
|
|
|
CFLAGS="$CFLAGS `$fontconfig_config --cflags | tr '\n\r' ' '`"
|
|
|
|
CFLAGS="$CFLAGS `$freetype_config --cflags | tr '\n\r' ' '`"
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$enable_static" != "0" ]; then
|
|
|
|
if [ "$enable_static" != "0" ]; then
|
|
|
|
if [ "$os" = "OSX" ]; then
|
|
|
|
if [ "$os" = "OSX" ]; then
|
|
|
|
LIBS="$LIBS `$fontconfig_config --variable=prefix`/lib/libfontconfig.a"
|
|
|
|
LIBS="$LIBS `$freetype_config --prefix`/lib/libfreetype.a"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
LIBS="$LIBS `$fontconfig_config --libs --static | tr '\n\r' ' '`"
|
|
|
|
# Is it possible to do static with freetype, if so: how?
|
|
|
|
|
|
|
|
LIBS="$LIBS `$freetype_config --libs | tr '\n\r' ' '`"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
else
|
|
|
|
LIBS="$LIBS `$fontconfig_config --libs | tr '\n\r' ' '`"
|
|
|
|
LIBS="$LIBS `$freetype_config --libs | tr '\n\r' ' '`"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|