From 18b335e2f26ab5d7e7ff9ce90945a8bc99536213 Mon Sep 17 00:00:00 2001 From: Bryan Everly Date: Fri, 24 Apr 2015 08:38:35 -0400 Subject: [PATCH] Added support for manpage construction for OpenBSD --- CMakeLists.txt | 3 ++- client/X11/CMakeLists.txt | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a8147a51..b0acd44ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -376,7 +376,8 @@ endif(APPLE) # OpenBSD if(OPENBSD) - set(WITH_ALSA "OFF") + set(WITH_MANPAGES "ON") + set(WITH_ALSA "OFF") set(WITH_PULSE "ON") set(WITH_WAYLAND "OFF") endif() diff --git a/client/X11/CMakeLists.txt b/client/X11/CMakeLists.txt index 7bbde354e..621ee9a79 100644 --- a/client/X11/CMakeLists.txt +++ b/client/X11/CMakeLists.txt @@ -108,7 +108,11 @@ if(WITH_MANPAGES) add_custom_target(xfreerdp.manpage ALL DEPENDS xfreerdp.1) + if(OPENBSD) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/xfreerdp.1 DESTINATION man/man1) + else() install(FILES ${CMAKE_CURRENT_BINARY_DIR}/xfreerdp.1 DESTINATION share/man/man1) + endif() else() message(WARNING "WITH_MANPAGES was set, but xsltproc was not found. man-pages will not be installed") endif()