2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00
repo/extra/freetype-harfbuzz/build

50 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

#!/bin/sh -e
2023-03-02 07:40:00 -07:00
export DESTDIR="$1"
build_freetype() (
cd freetype
2023-11-18 13:51:12 -07:00
meson setup \
-Dprefix=/usr \
2021-08-08 12:41:20 -06:00
-Ddefault_library=both \
-Dbzip2=disabled \
-Dzlib=disabled \
"$@" \
2023-11-18 13:51:12 -07:00
output
2021-08-08 12:41:20 -06:00
ninja -C output
ninja -C output install
)
build_harfbuzz() (
cd harfbuzz
2023-11-18 13:51:12 -07:00
meson setup \
-Dprefix=/usr \
-Ddefault_library=both \
-Dglib=disabled \
-Dfreetype=enabled \
-Dgobject=disabled \
-Dcairo=disabled \
-Dicu=disabled \
-Dbenchmark=disabled \
-Dtests=disabled \
2023-11-18 13:51:12 -07:00
output
ninja -C output
ninja -C output install
)
# Point Freetype to the Harfbuzz files.
2022-06-27 13:26:11 -06:00
export CPPFLAGS="$CPPFLAGS -I$DESTDIR/usr/include/harfbuzz"
export LDFLAGS="$LDFLAGS -L$DESTDIR/usr/lib"
2022-09-27 11:20:09 -06:00
export PKG_CONFIG_PATH="$DESTDIR/usr/lib/pkgconfig"
2021-08-08 12:41:20 -06:00
# Point Harfbuzz to the Freetype files.
2022-06-27 13:26:11 -06:00
export CPPFLAGS="$CPPFLAGS -I$DESTDIR/usr/include/freetype2"
2021-08-08 12:41:20 -06:00
build_freetype -Dharfbuzz=disabled
build_harfbuzz
build_freetype -Dharfbuzz=enabled --reconfigure