1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/net/krdc/files/patch-CMakeLists.txt

47 lines
1.7 KiB
Plaintext

--- CMakeLists.txt.orig 2019-02-05 00:43:19 UTC
+++ CMakeLists.txt
@@ -80,24 +80,27 @@ set_package_properties("libssh" PROPERTIES
PURPOSE "Needed to build VNC+SSH tunnel support "
)
-# Needs porting
-find_program(FREERDP_EXECUTABLE xfreerdp)
-if(FREERDP_EXECUTABLE)
- set(FREERDP_FOUND true) # mark the package found
- set(FREERDP_EXECUTABLE_FOUND true)
-endif(FREERDP_EXECUTABLE)
+option(WITH_FREERDP OFF)
+if (WITH_FREERDP)
+ # Needs porting
+ find_program(FREERDP_EXECUTABLE xfreerdp)
+ if(FREERDP_EXECUTABLE)
+ set(FREERDP_FOUND true) # mark the package found
+ set(FREERDP_EXECUTABLE_FOUND true)
+ endif(FREERDP_EXECUTABLE)
-# dud to allow the dep showing up in feature summary.
-# note that this must be after _FOUND is set so it doesn't incorrectly
-# set the metadata to not-found.
-find_package(freerdp QUIET)
+ # dud to allow the dep showing up in feature summary.
+ # note that this must be after _FOUND is set so it doesn't incorrectly
+ # set the metadata to not-found.
+ find_package(freerdp QUIET)
-set_package_properties(freerdp PROPERTIES
- DESCRIPTION "A free Remote Desktop Protocol (RDP) Implementation"
- URL "http://www.freerdp.com"
- PURPOSE "The xfreerdp binary is needed for RDP support in KRDC (at runtime)"
- TYPE RUNTIME
-)
+ set_package_properties(freerdp PROPERTIES
+ DESCRIPTION "A free Remote Desktop Protocol (RDP) Implementation"
+ URL "http://www.freerdp.com"
+ PURPOSE "The xfreerdp binary is needed for RDP support in KRDC (at runtime)"
+ TYPE RUNTIME
+ )
+endif()
# NX support is not ready for KDE 4.2; disabled (uwolfer)
# macro_optional_find_package(LibNXCL)