--- doc/CMakeLists.txt.orig	2026-01-09 13:06:10 UTC
+++ doc/CMakeLists.txt
@@ -1,8 +1,14 @@
 # SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
 # SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
 
+# Always include doxygen subdir so Doxystyle/doxygen-macros are installed
+# (referenced by dune-common-config.cmake via set_and_check)
 add_subdirectory("doxygen")
+if (FREEBSD_INSTALL_DOCS)
 add_subdirectory("buildsystem")
 add_subdirectory("comm")
+endif()
+if (FREEBSD_INSTALL_MANPAGES)
 install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dunecontrol.1
   DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
+endif()
