misc/libfreetype/builds/unix/freetype-config.in
author dag10
Mon, 21 Jan 2013 21:52:49 -0500
changeset 8424 225ede46e3dc
parent 5172 88f2e05288ba
permissions -rw-r--r--
On pagenetgame, when window is too small the map/game options becomes a tabbed interface to allow for a few lines of chat to always be visible. Restored HWForm's min height to 580. Fixed the 2px alignment issue with the map list and map previews' top edges that unC0Rr was whining about. <3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5172
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     1
#! /bin/sh
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     2
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     3
# Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009 by
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     4
# David Turner, Robert Wilhelm, and Werner Lemberg.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     5
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     6
# This file is part of the FreeType project, and may only be used, modified,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     7
# and distributed under the terms of the FreeType project license,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     8
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     9
# indicate that you have read the license and understand and accept it
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    10
# fully.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    11
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    12
prefix=@prefix@
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    13
exec_prefix=@exec_prefix@
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    14
exec_prefix_set=no
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    15
includedir=@includedir@
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    16
libdir=@libdir@
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    17
enable_shared=@build_libtool_libs@
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    18
wl=@wl@
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    19
hardcode_libdir_flag_spec='@hardcode_libdir_flag_spec@'
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    20
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    21
usage()
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    22
{
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    23
  cat <<EOF
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    24
Usage: freetype-config [OPTION]...
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    25
Get FreeType compilation and linking information.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    26
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    27
Options:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    28
  --prefix               display \`--prefix' value used for building the
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    29
                         FreeType library
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    30
  --prefix=PREFIX        override \`--prefix' value with PREFIX
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    31
  --exec-prefix          display \`--exec-prefix' value used for building
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    32
                         the FreeType library
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    33
  --exec-prefix=EPREFIX  override \`--exec-prefix' value with EPREFIX
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    34
  --version              display libtool version of the FreeType library
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    35
  --ftversion            display FreeType version number
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    36
  --libs                 display flags for linking with the FreeType library
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    37
  --libtool              display library name for linking with libtool
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    38
  --cflags               display flags for compiling with the FreeType
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    39
                         library
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    40
EOF
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    41
  exit $1
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    42
}
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    43
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    44
if test $# -eq 0 ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    45
  usage 1 1>&2
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    46
fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    47
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    48
while test $# -gt 0 ; do
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    49
  case "$1" in
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    50
  -*=*)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    51
    optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'`
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    52
    ;;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    53
  *)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    54
    optarg=
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    55
    ;;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    56
  esac
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    57
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    58
  case $1 in
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    59
  --prefix=*)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    60
    prefix=$optarg
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    61
    local_prefix=yes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    62
    ;;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    63
  --prefix)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    64
    echo_prefix=yes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    65
    ;;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    66
  --exec-prefix=*)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    67
    exec_prefix=$optarg
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    68
    exec_prefix_set=yes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    69
    local_prefix=yes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    70
    ;;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    71
  --exec-prefix)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    72
    echo_exec_prefix=yes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    73
    ;;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    74
  --version)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    75
    echo @ft_version@
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    76
    exit 0
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    77
    ;;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    78
  --ftversion)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    79
    echo_ft_version=yes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    80
    ;;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    81
  --cflags)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    82
    echo_cflags=yes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    83
    ;;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    84
  --libs)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    85
    echo_libs=yes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    86
    ;;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    87
  --libtool)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    88
    echo_libtool=yes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    89
    ;;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    90
  *)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    91
    usage 1 1>&2
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    92
    ;;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    93
  esac
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    94
  shift
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    95
done
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    96
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    97
if test "$local_prefix" = "yes" ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    98
  if test "$exec_prefix_set" != "yes" ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    99
    exec_prefix=$prefix
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   100
  fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   101
fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   102
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   103
if test "$echo_prefix" = "yes" ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   104
  echo ${SYSROOT}$prefix
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   105
fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   106
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   107
if test "$echo_exec_prefix" = "yes" ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   108
  echo ${SYSROOT}$exec_prefix
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   109
fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   110
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   111
if test "$exec_prefix_set" = "yes" ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   112
  libdir=$exec_prefix/lib
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   113
else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   114
  if test "$local_prefix" = "yes" ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   115
    includedir=$prefix/include
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   116
    libdir=$prefix/lib
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   117
  fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   118
fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   119
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   120
if test "$echo_ft_version" = "yes" ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   121
  major=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   122
         | grep FREETYPE_MAJOR \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   123
         | sed 's/.*[ 	]\([0-9][0-9]*\).*/\1/'`
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   124
  minor=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   125
         | grep FREETYPE_MINOR \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   126
         | sed 's/.*[ 	]\([0-9][0-9]*\).*/\1/'`
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   127
  patch=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   128
         | grep FREETYPE_PATCH \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   129
         | sed 's/.*[ 	]\([0-9][0-9]*\).*/\1/'`
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   130
  echo $major.$minor.$patch
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   131
fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   132
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   133
if test "$echo_cflags" = "yes" ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   134
  cflags="-I${SYSROOT}$includedir/freetype2"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   135
  if test "${SYSROOT}$includedir" != "/usr/include" ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   136
    echo $cflags -I${SYSROOT}$includedir
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   137
  else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   138
    echo $cflags
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   139
  fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   140
fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   141
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   142
if test "$echo_libs" = "yes" ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   143
  rpath=
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   144
  if test "$enable_shared" = "yes" ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   145
    eval "rpath=\"$hardcode_libdir_flag_spec\""
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   146
  fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   147
  libs="-lfreetype @LIBZ@ @LIBBZ2@ @FT2_EXTRA_LIBS@"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   148
  if test "${SYSROOT}$libdir" != "/usr/lib" && test "${SYSROOT}$libdir" != "/usr/lib64"; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   149
    echo -L${SYSROOT}$libdir $libs
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   150
  else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   151
    echo $libs
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   152
  fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   153
fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   154
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   155
if test "$echo_libtool" = "yes" ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   156
  convlib="libfreetype.la"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   157
  echo ${SYSROOT}$libdir/$convlib
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   158
fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   159
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   160
# EOF