2019-08-04 09:26:52 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2019-08-04 10:54:25 -06:00
|
|
|
build_freetype() (
|
|
|
|
cd freetype
|
2019-08-04 09:26:52 -06:00
|
|
|
|
2019-08-04 10:54:25 -06:00
|
|
|
CFLAGS="$CFLAGS -DDEFAULT_TT_INTERPRETER_VERSION=TT_INTERPRETER_VERSION_40" \
|
2019-08-04 09:26:52 -06:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2019-08-04 10:54:25 -06:00
|
|
|
--enable-freetype-config \
|
|
|
|
--with-harfbuzz="$2"
|
2019-08-04 09:26:52 -06:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR="$1" install
|
|
|
|
)
|
|
|
|
|
2019-08-04 10:54:25 -06:00
|
|
|
build_harfbuzz() (
|
|
|
|
cd harfbuzz
|
2019-08-04 09:26:52 -06:00
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2019-08-04 10:54:25 -06:00
|
|
|
--with-glib=yes \
|
2020-05-09 12:35:07 -06:00
|
|
|
--with-icu=no \
|
|
|
|
--with-cairo=no
|
2019-08-04 09:26:52 -06:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR="$1" install
|
|
|
|
)
|
|
|
|
|
|
|
|
build_freetype "$1" no
|
|
|
|
|
2019-08-04 10:54:25 -06:00
|
|
|
# Point Harfbuzz to the Freetype files.
|
2019-08-04 11:13:54 -06:00
|
|
|
export FREETYPE_CFLAGS="-I$PWD/freetype/include"
|
2019-08-04 11:25:10 -06:00
|
|
|
export FREETYPE_LIBS="-L$1/usr/lib -lfreetype"
|
2019-08-04 09:26:52 -06:00
|
|
|
|
|
|
|
build_harfbuzz "$1"
|
2019-08-04 10:54:25 -06:00
|
|
|
|
|
|
|
# Point Freetype to the Harfbuzz files.
|
|
|
|
export HARFBUZZ_CFLAGS="-I$PWD/harfbuzz/src"
|
|
|
|
export HARFBUZZ_LIBS="-L$PWD/harfbuzz/src/.libs -lharfbuzz"
|
|
|
|
|
2019-08-04 09:26:52 -06:00
|
|
|
build_freetype "$1" yes
|