aboutsummaryrefslogtreecommitdiff
path: root/freetype/builds/unix/freetype-config.in
diff options
context:
space:
mode:
Diffstat (limited to 'freetype/builds/unix/freetype-config.in')
-rw-r--r--freetype/builds/unix/freetype-config.in25
1 files changed, 15 insertions, 10 deletions
diff --git a/freetype/builds/unix/freetype-config.in b/freetype/builds/unix/freetype-config.in
index 2edcd1135..41c3a8807 100644
--- a/freetype/builds/unix/freetype-config.in
+++ b/freetype/builds/unix/freetype-config.in
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# Copyright 2000-2005, 2008, 2009, 2013 by
+# Copyright 2000-2005, 2008, 2009, 2013, 2014 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -38,6 +38,8 @@ Options:
--libtool display library name for linking with libtool
--cflags display flags for compiling with the FreeType
library
+ --static make command line options display flags
+ for static linking
EOF
exit $1
}
@@ -88,6 +90,9 @@ while test $# -gt 0 ; do
--libtool)
echo_libtool=yes
;;
+ --static)
+ show_static=yes
+ ;;
*)
usage 1 1>&2
;;
@@ -119,13 +124,13 @@ else
fi
if test "$echo_ft_version" = "yes" ; then
- major=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \
+ 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/freetype.h \
+ 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/freetype.h \
+ patch=`grep define ${SYSROOT}$includedir/freetype2/freetype.h \
| grep FREETYPE_PATCH \
| sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'`
echo $major.$minor.$patch
@@ -133,15 +138,15 @@ fi
if test "$echo_cflags" = "yes" ; then
cflags="-I${SYSROOT}$includedir/freetype2"
- if test "${SYSROOT}$includedir" != "/usr/include" ; then
- echo $cflags -I${SYSROOT}$includedir
- else
- echo $cflags
- fi
+ echo $cflags
fi
if test "$echo_libs" = "yes" ; then
- libs="-lfreetype %LIBZ% %LIBBZ2% %FT2_EXTRA_LIBS%"
+ libs="%LIBS_CONFIG%"
+ staticlibs="%LIBSSTATIC_CONFIG%"
+ if test "$show_static" = "yes" ; then
+ libs="$staticlibs"
+ fi
if test "${SYSROOT}$libdir" != "/usr/lib" &&
test "${SYSROOT}$libdir" != "/usr/lib64"; then
echo -L${SYSROOT}$libdir $libs