cd src

# Disabling harfbuzz until upstream properly check for suitable version
GNUMAKE=${MAKE} sdh_configure --with-harfbuzz=no
sdh_make
sdh_make_install

# The following file may be present from old builds of freetype, and
# its presence can break the matplotlib build. So remove it. (The
# current version is $SAGE_LOCAL/include/freetype2/ftbuild.h.)

rm -f "$SAGE_LOCAL/include/ft2build.h"
