2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 14:50:07 -07:00
repo/extra/freetype-harfbuzz/build
Owen Rafferty 9c96f455c1
*: use 'meson setup'
closes #165
2023-11-18 14:51:12 -06:00

50 lines
1.0 KiB
Bash
Executable File

#!/bin/sh -e
export DESTDIR="$1"
build_freetype() (
cd freetype
meson setup \
-Dprefix=/usr \
-Ddefault_library=both \
-Dbzip2=disabled \
-Dzlib=disabled \
"$@" \
output
ninja -C output
ninja -C output install
)
build_harfbuzz() (
cd harfbuzz
meson setup \
-Dprefix=/usr \
-Ddefault_library=both \
-Dglib=disabled \
-Dfreetype=enabled \
-Dgobject=disabled \
-Dcairo=disabled \
-Dicu=disabled \
-Dbenchmark=disabled \
-Dtests=disabled \
output
ninja -C output
ninja -C output install
)
# Point Freetype to the Harfbuzz files.
export CPPFLAGS="$CPPFLAGS -I$DESTDIR/usr/include/harfbuzz"
export LDFLAGS="$LDFLAGS -L$DESTDIR/usr/lib"
export PKG_CONFIG_PATH="$DESTDIR/usr/lib/pkgconfig"
# Point Harfbuzz to the Freetype files.
export CPPFLAGS="$CPPFLAGS -I$DESTDIR/usr/include/freetype2"
build_freetype -Dharfbuzz=disabled
build_harfbuzz
build_freetype -Dharfbuzz=enabled --reconfigure