--- CMakeLists.txt.orig	2017-10-19 22:13:49 UTC
+++ CMakeLists.txt
@@ -1,5 +1,4 @@
 cmake_minimum_required (VERSION 2.8.10 FATAL_ERROR)
-
 if (APPLE)
   #
   # The following variables define the portability and compatability attributes of the Mac OS X build
@@ -132,6 +131,12 @@ if (CMAKE_BUILD_TYPE MATCHES "[Dd][Ee][B
   set (is_debug_build 1)
 endif ()
 
+if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
+  set (FREEBSD TRUE)
+  link_directories("/usr/lib" "${LOCALBASE}/lib")
+  include_directories("/usr/include" "${LOCALBASE}/include")
+endif()
+
 
 #
 # Options & features
@@ -838,7 +843,20 @@ endif ()
 #
 # OpenMP
 #
-find_package (OpenMP)
+message (status "ZZZ About to find_package (OpenMP)")
+#    OpenMP_C_FLAGS - flags to add to the C compiler for OpenMP support
+#    OpenMP_CXX_FLAGS - flags to add to the CXX compiler for OpenMP support
+#    OpenMP_Fortran_FLAGS - flags to add to the Fortran compiler for OpenMP support
+#    OPENMP_FOUND - true if openmp is detected
+
+if (FREEBSD)
+  set (OpenMP_C_FLAGS "-openmp")
+  set (OpenMP_CXX_FLAGS "-openmp")
+  set (OpenMP_Fortran_FLAGS "-openmp")
+  set (OPENMP_FOUND TRUE)
+else()
+  find_package (OpenMP)
+endif()
 
 #
 # fftw3 single precision library
@@ -1282,6 +1300,13 @@ else (${OPENMP_FOUND} OR APPLE)
   target_link_libraries (jt9 wsjt_fort wsjt_cxx Qt5::Core)
 endif (${OPENMP_FOUND} OR APPLE)
 
+if(FREEBSD)
+   set (extraLIBS "ltdl" "usb")
+ else()
+   set (extraLIBS "")
+endif()
+  
+
 # build the main application
 add_executable (wsjtx MACOSX_BUNDLE
   ${wsjtx_CXXSRCS}
