diff options
author | Cem Keylan <cem@ckyln.com> | 2020-01-11 12:40:38 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-01-11 12:40:38 +0300 |
commit | ece97ea1d6fbbdb5fc4a0e228bfedd1ff7f65790 (patch) | |
tree | 89188b3453d8567b1902b626d2c9c1e87a296b23 /testing/freetype-harfbuzz/build | |
parent | 8bbaa75240be5d6d5cbfa6a7e13864a213fb7a21 (diff) | |
download | repository-ece97ea1d6fbbdb5fc4a0e228bfedd1ff7f65790.tar.gz |
freetype-harfbuzz: add to testing - build with icu
Diffstat (limited to 'testing/freetype-harfbuzz/build')
-rwxr-xr-x | testing/freetype-harfbuzz/build | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/freetype-harfbuzz/build b/testing/freetype-harfbuzz/build new file mode 100755 index 00000000..206bacd1 --- /dev/null +++ b/testing/freetype-harfbuzz/build @@ -0,0 +1,40 @@ +#!/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=yes + + 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 |