diff --git a/doc/building.html b/doc/building.html
index 03e87f6fa89..99ac9a5eb0c 100644
--- a/doc/building.html
+++ b/doc/building.html
@@ -319,6 +319,7 @@
FreeType
To install on an apt-based Linux, try running sudo apt-get install libfreetype6-dev
.
To install on an rpm-based Linux, try running sudo yum install freetype-devel
.
To install on Alpine Linux, try running sudo apk add freetype-dev
.
+To install on macOS, try running brew install freetype
.
Use --with-freetype-include=<path>
and --with-freetype-lib=<path>
if configure
does not automatically locate the platform FreeType files.
CUPS
diff --git a/doc/building.md b/doc/building.md
index ba3eb7d4c73..15babfa9790 100644
--- a/doc/building.md
+++ b/doc/building.md
@@ -451,6 +451,7 @@ rather than bundling the JDK's own copy.
* To install on an rpm-based Linux, try running `sudo yum install
freetype-devel`.
* To install on Alpine Linux, try running `sudo apk add freetype-dev`.
+ * To install on macOS, try running `brew install freetype`.
Use `--with-freetype-include=` and `--with-freetype-lib=`
if `configure` does not automatically locate the platform FreeType files.