--- build/CMakeLists.txt.orig	2023-07-10 17:04:30 UTC
+++ build/CMakeLists.txt
@@ -368,12 +368,12 @@ if (APPLE OR WIN32)
 	set (INSTALL_BIN 		${CMAKE_INSTALL_PREFIX})
 	set (INSTALL_LIB 		${CMAKE_INSTALL_PREFIX}/dev)
 	set (INSTALL_INC 		${CMAKE_INSTALL_PREFIX}/dev/include)
-	set (INSTALL_SAMPLES 	${CMAKE_INSTALL_PREFIX}/Examples)
-	set (INSTALL_GMN_SAMPLES 	${CMAKE_INSTALL_PREFIX}/GMN-Examples)
+	set (INSTALL_SAMPLES 	${FREEBSD_EXAMPLESDIR})
+	set (INSTALL_GMN_SAMPLES 	${FREEBSD_EXAMPLESDIR}/GMN-Examples)
 	set (INSTALL_BUNDLES 	${CMAKE_INSTALL_PREFIX}/Examples/Bundles)
 	set (INSTALL_TOOLS 		${CMAKE_INSTALL_PREFIX}/Tools)
 	set (INSTALL_INTERFACES ${CMAKE_INSTALL_PREFIX})
-	set (INSTALL_DOC 		${CMAKE_INSTALL_PREFIX}/Documentation)
+	set (INSTALL_DOC 		${FREEBSD_DOCSDIR})
 	set (INSTALL_LANGMOD 	${CMAKE_INSTALL_PREFIX}/language-modules)
 else()
 	set (INSTALL_BIN 		${CMAKE_INSTALL_PREFIX}/bin)
