--- client/Wayland/CMakeLists.txt.orig	2017-11-28 14:26:30 UTC
+++ client/Wayland/CMakeLists.txt
@@ -39,5 +39,12 @@ target_link_libraries(${MODULE_NAME} ${$
 install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT client)
 
 set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Client/Wayland")
+
+if(WITH_MANPAGES)
 configure_file(wlfreerdp.1.in ${CMAKE_CURRENT_BINARY_DIR}/wlfreerdp.1)
-install_freerdp_man(${CMAKE_CURRENT_BINARY_DIR}/wlfreerdp.1 1)
+	if(BSD)
+	    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/wlfreerdp.1 DESTINATION man/man1)
+	else()
+	    install_freerdp_man(${CMAKE_CURRENT_BINARY_DIR}/wlfreerdp.1 1)
+	endif()
+endif(WITH_MANPAGES)
