--- CMakeLists.txt.orig	2024-01-01 00:00:00 UTC
+++ CMakeLists.txt
@@ -36,7 +36,9 @@ dune_default_include_directories(dunegeometry PUBLIC)
 
 add_subdirectory("dune")
+if (FREEBSD_INSTALL_DOCS)
 add_subdirectory("doc")
+endif()
 
 # if Python bindings are enabled, include necessary sub directories.
