aboutsummaryrefslogtreecommitdiff
path: root/xorg/freetype-harfbuzz/build
diff options
context:
space:
mode:
Diffstat (limited to 'xorg/freetype-harfbuzz/build')
-rwxr-xr-xxorg/freetype-harfbuzz/build40
1 files changed, 40 insertions, 0 deletions
diff --git a/xorg/freetype-harfbuzz/build b/xorg/freetype-harfbuzz/build
new file mode 100755
index 00000000..d42d5ac0
--- /dev/null
+++ b/xorg/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=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