repo/extra/freetype-harfbuzz/build

50 lines
1.1 KiB
Plaintext
Raw Normal View History

#!/bin/sh -e
build_freetype() (
cd freetype
2021-08-08 12:41:20 -06:00
meson \
--prefix=/usr \
2021-08-08 12:41:20 -06:00
-Ddefault_library=both \
-Dbzip2=disabled \
-Dzlib=disabled \
"$@" \
. output
2021-08-08 12:41:20 -06:00
ninja -C output
ninja -C output install
)
build_harfbuzz() (
cd harfbuzz
meson \
--prefix=/usr \
2021-08-08 12:41:20 -06:00
-Dpkg_config_path="$DESTDIR/usr/lib/pkgconfig" \
-Ddefault_library=both \
-Dglib=enabled \
-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.
2021-08-08 12:41:20 -06:00
export CFLAGS="$CFLAGS -I$DESTDIR/usr/include/harfbuzz"
export CFLAGS="$CFLAGS -L$DESTDIR/usr/lib "
export PKG_CONFIG_PATH=$DESTDIR/usr/lib/pkgconfig
# Point Harfbuzz to the Freetype files.
export CXXFLAGS="$CXXFLAGS -I$DESTDIR/usr/include/freetype2"
export CXXFLAGS="$CXXFLAGS -L$DESTDIR/usr/lib"
2021-08-08 12:41:20 -06:00
build_freetype -Dharfbuzz=disabled
build_harfbuzz
build_freetype -Dharfbuzz=enabled --reconfigure