--- CMakeLists.txt.orig	2020-03-15 02:57:28 UTC
+++ CMakeLists.txt
@@ -41,7 +41,9 @@ dune_register_package_flags(LIBRARIES dunepdelab)
 # Use the enable all packages feature
 dune_enable_all_packages()
 
+if (FREEBSD_INSTALL_DOCS)
 add_subdirectory(doc)
+endif()
 add_subdirectory(dune/pdelab)
 add_subdirectory(cmake/modules)
 add_subdirectory(lib)
