Skip to content

Commit a7bc8a2

Browse files
committed
Build harfbuzz with meson
1 parent 68b1129 commit a7bc8a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

buildconfig/manylinux-build/docker_base/freetype/build-freetype.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ cd ${HARFBUZZ_NAME}
3636
# Cairo and chafa are only needed for harfbuzz commandline utilities so we
3737
# don't use it. glib available is a bit old so we don't prefer it as of now.
3838
# we also don't compile-in icu so that harfbuzz uses built-in unicode handling
39-
./configure $PG_BASE_CONFIGURE_FLAGS --with-freetype=yes \
40-
--with-cairo=no --with-chafa=no --with-glib=no --with-icu=no \
41-
--disable-static
42-
make
43-
make install
39+
meson setup _build $PG_BASE_MESON_FLAGS -Dfreetype=enabled \
40+
-Dglib=disabled -Dgobject=disabled -Dcairo=disabled -Dchafa=disabled -Dicu=disabled \
41+
-Dtests=disabled -Dintrospection=disabled -Ddocs=disabled
42+
43+
meson compile -C _build
44+
meson install -C _build
4445

4546
if [[ "$OSTYPE" == "darwin"* ]]; then
4647
# We do a little hack...
@@ -51,7 +52,6 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
5152
# contains "freetype". This is fine for now when the harfbuzz we are
5253
# building has no other dependencies
5354
sed -i '' '/freetype/d' $PG_DEP_PREFIX/lib/pkgconfig/harfbuzz.pc
54-
sed -i '' 's/ [^ ]*libfreetype.la//g' $PG_DEP_PREFIX/lib/libharfbuzz.la
5555
fi
5656

5757
cd ..

0 commit comments

Comments
 (0)