2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 23:12:28 +00:00
repo/xorg/freetype-harfbuzz/build
2019-08-05 09:39:30 +03:00

44 lines
871 B
Bash
Executable File

#!/bin/sh -e
build_freetype() (
cd freetype
CFLAGS="$CFLAGS -DDEFAULT_TT_INTERPRETER_VERSION=TT_INTERPRETER_VERSION_40" \
./configure \
--prefix=/usr \
--enable-freetype-config \
--with-harfbuzz="$2"
make
make DESTDIR="$1" install
)
build_harfbuzz() (
cd harfbuzz
./configure \
--prefix=/usr \
--with-glib=yes \
--with-icu=no
make
make DESTDIR="$1" install
)
build_freetype "$1" no
# Point Harfbuzz to the Freetype files.
export FREETYPE_CFLAGS="-I$PWD/freetype/include"
export FREETYPE_LIBS="-L$1/usr/lib -lfreetype"
build_harfbuzz "$1"
# Point Freetype to the Harfbuzz files.
export HARFBUZZ_CFLAGS="-I$PWD/harfbuzz/src"
export HARFBUZZ_LIBS="-L$PWD/harfbuzz/src/.libs -lharfbuzz"
build_freetype "$1" yes
# Remove a ton of HTML documentation.
rm -rf "$1/usr/share/gtk-doc"