aboutsummaryrefslogtreecommitdiff
path: root/extra/freetype-harfbuzz/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-10-04 22:51:57 +0300
committerCem Keylan <cem@ckyln.com>2020-10-04 22:51:57 +0300
commitbd36e113fed47de6ac33e411daf7a0b2a34bcbf6 (patch)
treeaf403d84dc696fe517683cd563a5bbb3fdccac29 /extra/freetype-harfbuzz/build
parent7bc852f77943f4f92a548b3a0f43d6a0a303b585 (diff)
downloadrepository-bd36e113fed47de6ac33e411daf7a0b2a34bcbf6.tar.gz
move non xorg specific packages to extra
Diffstat (limited to 'extra/freetype-harfbuzz/build')
-rwxr-xr-xextra/freetype-harfbuzz/build50
1 files changed, 50 insertions, 0 deletions
diff --git a/extra/freetype-harfbuzz/build b/extra/freetype-harfbuzz/build
new file mode 100755
index 00000000..9fb13d97
--- /dev/null
+++ b/extra/freetype-harfbuzz/build
@@ -0,0 +1,50 @@
+#!/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() (
+
+ # Point Harfbuzz to the Freetype files.
+ export CFLAGS="$CFLAGS -I$1/usr/include/freetype2"
+ export CXXFLAGS="$CXXFLAGS -I$1/usr/include/freetype2"
+ export LDFLAGS="$LDFLAGS -L$1/usr/lib"
+
+ cd harfbuzz
+
+ export DESTDIR="$1"
+ meson \
+ --prefix=/usr \
+ -Dglib=enabled \
+ -Dfreetype=enabled \
+ -Ddefault_library=both \
+ -Dicu=disabled \
+ -Dbenchmark=disabled \
+ -Dtests=disabled \
+ -Dpkg_config_path="$1/usr/lib/pkgconfig" \
+ . output
+
+ ninja -C output
+ ninja -C output install
+)
+
+build_freetype "$1" no
+
+
+build_harfbuzz "$1"
+
+# Point Freetype to the Harfbuzz files.
+export HARFBUZZ_CFLAGS="-I$PWD/harfbuzz/src"
+export HARFBUZZ_LIBS="-L$PWD/harfbuzz/output/src -lharfbuzz"
+
+build_freetype "$1" yes