--- CMakeLists.txt.orig	2024-03-26 13:28:08 UTC
+++ CMakeLists.txt
@@ -32,7 +32,7 @@ PKG_CHECK_MODULES(GLIB2 glib-2.0>=2.66 gio-2.0 REQUIRE
 
 FIND_PACKAGE(PkgConfig)
 PKG_CHECK_MODULES(GLIB2 glib-2.0>=2.66 gio-2.0 REQUIRED)
-PKG_SEARCH_MODULE(LIBCRYPTO REQUIRED libcrypto openssl)
+#PKG_SEARCH_MODULE(LIBCRYPTO REQUIRED libcrypto openssl)
 PKG_CHECK_MODULES(LIBXML2 libxml-2.0 REQUIRED)
 FIND_PACKAGE(CURL 7.52.0 REQUIRED)
 
@@ -115,8 +115,8 @@ IF (ENABLE_PYTHON)
 # Python stuff
 
 IF (ENABLE_PYTHON)
-    FIND_PACKAGE (PythonInterp 3 EXACT REQUIRED)
-    FIND_PACKAGE (PythonLibs REQUIRED)
+    FIND_PACKAGE (PythonInterp ${FREEBSD_PYTHON_VERSION} EXACT REQUIRED)
+    FIND_PACKAGE (PythonLibs ${FREEBSD_PYTHON_VERSION} EXACT REQUIRED)
 ENDIF (ENABLE_PYTHON)
 
 # Subdirs
