FreeType-2.13.3 - Pass 2

Introduction to FreeType2 - Pass 2

Now that HarfBuzz-9.0.0 has been installed, it is time to recompile this package again. This is the second pass.

[Note]

Note

Development versions of GLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

Additional Downloads

FreeType2 Dependencies

Recommended

Optional (for documentation)

docwriter

Installation of FreeType2 - Pass 2

Reuse the directory you built the first pass from and follow the instructions below:

make distclean

./configure --prefix=/usr --enable-freetype-config --disable-static &&
make

This package does not come with a test suite.

Now, as the root user:

make install

If you downloaded the optional documentation, install it as the root user:

cp -v -R docs -T /usr/share/doc/freetype-2.13.3 &&
rm -v /usr/share/doc/freetype-2.13.3/freetype-config.1

32-bit Installation of FreeType2 - Pass 2

First clean the directory:

make distclean

Install lib32-FreeType2 by running the following commands:

CC="gcc -m32" CXX="g++ -m32"         \
PKG_CONFIG_PATH=/usr/lib32/pkgconfig \
./configure --prefix=/usr            \
            --libdir=/usr/lib32      \
            --host=i686-pc-linux-gnu \
            --enable-freetype-config \
            --disable-static

make

Now, as the root user:

make DESTDIR=$PWD/DESTDIR install
cp -vr DESTDIR/usr/lib32/* /usr/lib32
rm -rf DESTDIR
ldconfig

Command Explanations

--enable-freetype-config: This switch ensure that the man page for freetype-config is installed.

--without-harfbuzz: If harfbuzz is installed prior to freetype without freetype support, use this switch to avoid a build failure.

--disable-static: This switch prevents installation of static versions of the libraries.

Contents

Installed Program: freetype-config
Installed Library: libfreetype.so
Installed Directories: /usr/include/freetype2 and /usr/share/doc/freetype-2.13.3

Short Descriptions

freetype-config

is used to get FreeType compilation and linking information

libfreetype.so

contains functions for rendering various font types, such as TrueType and Type1