Behdad Esfahbod | e21921a | 2016-05-06 15:24:39 +0100 | [diff] [blame] | 1 | On Linux, install the development packages for FreeType, |
Ebrahim Byagowi | 2fb95a0 | 2015-10-19 22:02:12 +0330 | [diff] [blame] | 2 | Cairo, and GLib. For example, on Ubuntu / Debian, you would do: |
| 3 | * sudo apt-get install gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev |
| 4 | |
| 5 | whereas on Fedora, RHEL, CentOS, and other Red Hat based systems you would do: |
| 6 | * sudo yum install gcc gcc-c++ freetype-devel glib2-devel cairo-devel |
| 7 | |
Behdad Esfahbod | 5afebbd | 2016-01-07 22:53:59 +0000 | [diff] [blame] | 8 | on the Mac, using MacPorts: |
Ebrahim Byagowi | 2fb95a0 | 2015-10-19 22:02:12 +0330 | [diff] [blame] | 9 | * sudo port install freetype glib2 cairo |
| 10 | |
Behdad Esfahbod | 5afebbd | 2016-01-07 22:53:59 +0000 | [diff] [blame] | 11 | or using Homebrew: |
| 12 | * brew install freetype glib cairo |
| 13 | |
Ebrahim Byagowi | 2fb95a0 | 2015-10-19 22:02:12 +0330 | [diff] [blame] | 14 | If you are using a tarball, you can now proceed to running configure and make |
| 15 | as with any other standard package. That should leave you with a shared |
| 16 | library in src/, and a few utility programs including hb-view and hb-shape |
Chun-wei Fan | d7b6636 | 2015-11-03 19:00:42 +0800 | [diff] [blame] | 17 | under util/. From the tarball, NMake Makefiles are also provided in win32/, |
| 18 | which supports building HarfBuzz using Visual Studio, with a README.txt that |
| 19 | gives instructions on building using NMake. |
Ebrahim Byagowi | 2fb95a0 | 2015-10-19 22:02:12 +0330 | [diff] [blame] | 20 | If you are bootstraping from git, you need a few more tools before you can |
| 21 | run autogen.sh for the first time. Namely, pkg-config and ragel. Again, |
| 22 | on Ubuntu / Debian: |
| 23 | * sudo apt-get install autoconf automake libtool pkg-config ragel gtk-doc-tools |
| 24 | |
| 25 | and on Fedora, RHEL, CentOS: |
| 26 | * sudo yum install autoconf automake libtool pkgconfig ragel gtk-doc |
| 27 | |
Behdad Esfahbod | 5afebbd | 2016-01-07 22:53:59 +0000 | [diff] [blame] | 28 | on the Mac, using MacPorts: |
Ebrahim Byagowi | 2fb95a0 | 2015-10-19 22:02:12 +0330 | [diff] [blame] | 29 | * sudo port install autoconf automake libtool pkgconfig ragel gtk-doc |
Behdad Esfahbod | 5afebbd | 2016-01-07 22:53:59 +0000 | [diff] [blame] | 30 | |
| 31 | or using Homebrew: |
Behdad Esfahbod | e21921a | 2016-05-06 15:24:39 +0100 | [diff] [blame] | 32 | * brew install autoconf automake libtool pkgconfig ragel gtk-doc |
| 33 | |
| 34 | To build the Python bindings, you also need: |
| 35 | |
| 36 | * brew install pygobject3 |