2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-07 08:22:28 +00:00
repo/extra/freetype-harfbuzz/build
Dylan Araps 2e5271ccde
freetype-harfbuzz: bump to 2.10.2+2.7.0, swap to meson.
The harfbuzz upstream have decided to no longer publish release
tarballs (which contained pre-generated autotools stuff). This
commit swaps to using meson (as is recommended upstream) to
prevent adding a dependency on autotools.
2020-07-27 16:45:56 +03:00

48 lines
970 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
export DESTDIR="$1"
meson \
--default-library=both \
--prefix=/usr \
-Dfreetype=enabled \
-Dglib=enabled \
-Dicu=disabled \
-Dbenchmark=disabled \
-Dtests=disabled \
. output
ninja -C output
ninja -C output 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/output/src -lharfbuzz"
build_freetype "$1" yes