blob: b8ba9b4c3b39c44efd3eccb3aea4d5da302b6c16 [file] [log] [blame]
Werner Lemberg89184192021-01-16 07:53:09 +01001README.git
2----------
3
Werner Lemberg1578e572021-03-16 06:59:01 +01004FreeType's official repository site is
5
6 https://gitlab.freedesktop.org/freetype ,
7
8from which the 'freetype.git' and 'freetype-demos.git' repositories
9can be cloned in the usual way.
10
11 git clone https://gitlab.freedesktop.org/freetype/freetype.git
12 git clone https://gitlab.freedesktop.org/freetype/freetype-demos.git
13
14If you want to use the Savannah mirror instead, you have to do a
15slightly different incantation because the repository names contain
16digit '2' for historical reasons.
17
18 git clone \
19 https://git.savannah.nongnu.org/git/freetype/freetype2.git \
20 freetype
21 git clone \
22 https://git.savannah.nongnu.org/git/freetype/freetype2-demos.git \
23 freetype-demos
24
25
Werner Lemberg0fbdf112009-07-15 07:50:06 +020026The git archive doesn't contain pre-built configuration scripts for
Werner Lembergb4119a92005-05-24 13:46:17 +000027UNIXish platforms. To generate them say
28
29 sh autogen.sh
30
31which in turn depends on the following packages:
Werner Lembergb0db0fc2005-03-05 17:05:35 +000032
Werner Lemberga984fda2008-06-09 21:02:13 +000033 automake (1.10.1)
34 libtool (2.2.4)
35 autoconf (2.62)
Werner Lembergb0db0fc2005-03-05 17:05:35 +000036
Werner Lemberg4ea0a7f2007-01-05 09:03:31 +000037The versions given in parentheses are known to work. Newer versions
Werner Lemberg89184192021-01-16 07:53:09 +010038should work too, of course. Note that `autogen.sh` also sets up
39proper file permissions for the `configure` and auxiliary scripts.
Werner Lembergb0db0fc2005-03-05 17:05:35 +000040
Werner Lemberg89184192021-01-16 07:53:09 +010041The `autogen.sh` script now checks the versions of the above three
42packages whether they match the numbers above. Otherwise it will
43complain and suggest either upgrading or using an environment variable
44to point to a more recent version of the required tool(s).
David Turner9750fcb2007-01-04 23:14:48 +000045
Werner Lemberg89184192021-01-16 07:53:09 +010046Note that `aclocal` is provided by the 'automake' package on Linux,
47and that `libtoolize` is called `glibtoolize` on Darwin (OS X).
David Turner9750fcb2007-01-04 23:14:48 +000048
49
Werner Lemberg89184192021-01-16 07:53:09 +010050For static builds that don't use platform-specific optimizations, no
Werner Lembergb0db0fc2005-03-05 17:05:35 +000051configure script is necessary at all; saying
52
53 make setup ansi
54 make
55
Werner Lemberg89184192021-01-16 07:53:09 +010056should work on all platforms that have GNU `make` (or `makepp`).
57Similarly, a build with `cmake` or `meson` can be done directly from
58the git repository.
Werner Lemberg60a04df2005-06-04 23:04:30 +000059
60
Werner Lemberg89184192021-01-16 07:53:09 +010061For using the `FT_DEBUG_LOGGING` macro while debugging (see file
62`docs/DEBUG` for more information) the following git commands are
63necessary to check out the 'dlg' library as a git submodule.
Priyesh Kumarab0ea062020-08-28 11:28:17 +053064
65 git submodule init
66 git submodule update
67
68
Werner Lembergb0f86752021-01-16 08:57:33 +010069If you want to contribute to FreeType it is recommended to install the
70`git-merge-changelog` program – we use a `ChangeLog` file, which often
71prevents simple merging due to conflicts. Most GNU/Linux
72distributions have a package for this program; otherwise you can
73install it via the 'gnulib' git repository. Detailed instructions can
74be found at the beginning of
75
76 https://git.savannah.gnu.org/cgit/gnulib.git/tree/lib/git-merge-changelog.c
77
78To make it actually work, add to file `.git/config` in the FreeType
79git repository (or to your `$HOME/.gitconfig` file) the lines
80
81 [merge "merge-changelog"]
82 name = GNU-style ChangeLog merge driver
83 driver = /usr/local/bin/git-merge-changelog %O %A %B
84
85
Werner Lemberg4ea0a7f2007-01-05 09:03:31 +000086----------------------------------------------------------------------
87
Werner Lembergb6e8a712021-01-17 07:18:48 +010088Copyright (C) 2005-2021 by
Werner Lemberg4ea0a7f2007-01-05 09:03:31 +000089David Turner, Robert Wilhelm, and Werner Lemberg.
90
91This file is part of the FreeType project, and may only be used,
92modified, and distributed under the terms of the FreeType project
93license, LICENSE.TXT. By continuing to use, modify, or distribute
94this file you indicate that you have read the license and understand
95and accept it fully.
96
97
Werner Lemberg8c4b4622010-07-12 21:25:01 +020098--- end of README.git ---