--- CMakeLists.txt.orig	2018-12-20 09:18:56 UTC
+++ CMakeLists.txt
@@ -29,7 +29,9 @@ if(GLIB_PKG_FOUND)
 ENDIF()
 
 # Look for OpenSSL
-PKG_CHECK_MODULES(OPENSSL REQUIRED openssl)
+if(NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
+    PKG_CHECK_MODULES(OPENSSL REQUIRED openssl)
+ENDIF()
 if(OPENSSL_FOUND)
     INCLUDE_DIRECTORIES(${OPENSSL_INCLUDE_DIRS})
     LINK_DIRECTORIES(${OPENSSL_LIBRARY_DIRS})
