Before starting: Make sure you have the necessary folders and permissions — get more information.

Links: Homepage | Downloads
Dependencies: None
Version: 2.8

FreeType is a freely available software library to render fonts.

Get the Code

Switch to /usr/local/src and download the source package.

cd /usr/local/src
curl --remote-name --location

Extract the archive and move into the folder.

tar -xzvf freetype-VERSION.tar.gz
cd freetype-VERSION

Compile and Install

Configure, compile and install into /usr/local/mac-dev-env/freetype-VERSION.

./configure --prefix=/usr/local/mac-dev-env/freetype-VERSION
make install

Create a symbolic link to /usr/local/freetype.

ln -s mac-dev-env/freetype-VERSION /usr/local/freetype