2019-08-04 09:26:52 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2023-03-02 07:40:00 -07:00
|
|
|
export DESTDIR="$1"
|
|
|
|
|
2019-08-04 10:54:25 -06:00
|
|
|
build_freetype() (
|
|
|
|
cd freetype
|
2019-08-04 09:26:52 -06:00
|
|
|
|
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
|
2019-08-04 09:26:52 -06:00
|
|
|
|
2021-08-08 12:41:20 -06:00
|
|
|
ninja -C output
|
|
|
|
ninja -C output install
|
2019-08-04 09:26:52 -06:00
|
|
|
)
|
|
|
|
|
2019-08-04 10:54:25 -06:00
|
|
|
build_harfbuzz() (
|
|
|
|
cd harfbuzz
|
2019-08-04 09:26:52 -06:00
|
|
|
|
2023-11-18 13:51:12 -07:00
|
|
|
meson setup \
|
|
|
|
-Dprefix=/usr \
|
2020-07-28 05:14:10 -06:00
|
|
|
-Ddefault_library=both \
|
2022-05-20 14:56:43 -06:00
|
|
|
-Dglib=disabled \
|
2020-07-28 05:14:10 -06:00
|
|
|
-Dfreetype=enabled \
|
2021-08-08 11:19:30 -06:00
|
|
|
-Dgobject=disabled \
|
2020-07-28 05:14:10 -06:00
|
|
|
-Dcairo=disabled \
|
|
|
|
-Dicu=disabled \
|
|
|
|
-Dbenchmark=disabled \
|
|
|
|
-Dtests=disabled \
|
2023-11-18 13:51:12 -07:00
|
|
|
output
|
2020-07-28 05:14:10 -06:00
|
|
|
|
|
|
|
ninja -C output
|
|
|
|
ninja -C output install
|
2019-08-04 09:26:52 -06:00
|
|
|
)
|
|
|
|
|
2019-08-04 10:54:25 -06:00
|
|
|
# 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"
|
2019-08-04 10:54:25 -06:00
|
|
|
|
2021-08-08 12:41:20 -06:00
|
|
|
build_freetype -Dharfbuzz=disabled
|
|
|
|
build_harfbuzz
|
|
|
|
build_freetype -Dharfbuzz=enabled --reconfigure
|