misc/libfreetype/docs/INSTALL.UNIX
author Xeli
Fri, 16 Sep 2011 17:36:05 +0200
branchhedgeroid
changeset 5828 667fb58d7f18
parent 5172 88f2e05288ba
permissions -rw-r--r--
Changed firebutton, parameters in uTouch might need to be tweaked some more
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
This  document contains  instructions  on how  to  build the  FreeType
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     2
library on Unix  systems.  This also works for  emulations like Cygwin
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     3
or MSys on Win32:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     4
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
  1. Ensure that you are using GNU Make
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     7
  -------------------------------------
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     8
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     9
    The FreeType build system  _exclusively_ works with GNU Make.  You
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    10
    will  not be  able to  compile the  library with  the instructions
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    11
    below using any other alternative (including BSD Make).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    12
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    13
    Check that you have GNU make by running the command:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    14
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    15
       make -v
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    16
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    17
    This should dump some text that begins with:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    18
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    19
       GNU Make  <version number>
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    20
       Copyright (C) <year> Free Software Foundation Inc.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    21
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    22
    Note that version  3.80 or higher is *required* or the  build will
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    23
    fail.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    24
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    25
    It is also fine to have GNU Make under another name (e.g. 'gmake')
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    26
    if you use the GNUMAKE variable as described below.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    27
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    28
    As  a  special exception,  'makepp'  can  also  be used  to  build
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    29
    FreeType 2.  See the file docs/MAKEPP for details.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    30
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    31
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    32
  2. Regenerate the configure script if needed
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    33
  --------------------------------------------
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    34
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    35
    This only applies if you  are building a git snapshot or checkout,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    36
    *not* if you grabbed the sources of an official release.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    37
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    38
    You  need  to invoke  the  `autogen.sh'  script  in the  top-level
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    39
    directory  in order  to  create the  `configure'  script for  your
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    40
    platform.  Normally, this simply means typing:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    41
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    42
      sh autogen.sh
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
    In case of problems, you  may need to install or upgrade Automake,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    45
    Autoconf or  Libtool.  See  README.git in the  top-level directory
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    46
    for more information.
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
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    49
  3. Build and install the library
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
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    52
    The following  should work  on all Unix  systems where  the `make'
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    53
    command invokes GNU Make:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    54
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    55
      ./configure [options]
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    56
      make
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    57
      make install           (as root)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    58
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    59
    The default installation path  is `/usr/local'.  It can be changed
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    60
    with the `--prefix=<path>' option.  Example:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    61
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    62
      ./configure --prefix=/usr
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    63
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    64
    When using a different command to invoke GNU Make, use the GNUMAKE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    65
    variable.  For example,  if `gmake' is the command  to use on your
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    66
    system, do something like:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    67
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    68
       GNUMAKE=gmake ./configure [options]
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    69
       gmake
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    70
       gmake install            (as root)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    71
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    72
    If  this still doesn't  work, there  must be  a problem  with your
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    73
    system (e.g., you are using a very old version of GNU Make).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    74
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    75
    It  is possible  to  compile FreeType  in  a different  directory.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    76
    Assuming the FreeType source  files in directory `/src/freetype' a
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    77
    compilation in directory `foo' works as follows:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    78
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    79
      cd foo
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    80
      /src/freetype/configure [options]
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    81
      make
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    82
      make install
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
----------------------------------------------------------------------
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    85
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    86
Copyright 2003, 2004, 2005, 2006, 2007 by
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    87
David Turner, Robert Wilhelm, and Werner Lemberg.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    88
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    89
This  file is  part of  the FreeType  project, and  may only  be used,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    90
modified,  and distributed  under the  terms of  the  FreeType project
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    91
license,  LICENSE.TXT.  By  continuing to  use, modify,  or distribute
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    92
this file you  indicate that you have read  the license and understand
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    93
and accept it fully.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    94
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    95
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    96
--- end of INSTALL.UNIX ---