--- CMakeLists.txt.orig	2021-06-28 15:28:22 UTC
+++ CMakeLists.txt
@@ -111,8 +111,8 @@ else()
 	message(FATAL_ERROR "Program pkg-config not found")
 endif()
 
-if(${CMAKE_SYSTEM} MATCHES "Linux")
-    pkg_check_modules(ALSA REQUIRED IMPORTED_TARGET alsa>=1.0.0)
+if(${CMAKE_SYSTEM} MATCHES "Linux|FreeBSD")
+    #pkg_check_modules(ALSA REQUIRED IMPORTED_TARGET alsa>=1.0.0)
     if(ALSA_FOUND)
         message(STATUS "Found ALSA version = ${ALSA_VERSION}")
     endif()
@@ -179,7 +179,7 @@ endif()
 
 if(UNIX AND NOT APPLE)
     if (BUILD_DOCS)
-        find_package(Doxygen REQUIRED dot)
+        #find_package(Doxygen REQUIRED dot)
         if(DOXYGEN_FOUND)
             string(REPLACE ";" " " DOXYGEN_INCLUDE_DIRS "${Qt${QT_VERSION_MAJOR}Core_INCLUDE_DIRS}")
             configure_file("${CMAKE_SOURCE_DIR}/Doxyfile.in"
@@ -192,9 +192,9 @@ if(UNIX AND NOT APPLE)
     endif()
     configure_file(drumstick.spec.in drumstick.spec IMMEDIATE @ONLY)
     if(ALSA_FOUND AND PKG_CONFIG_FOUND)
-        configure_file(drumstick-alsa.pc.in drumstick-alsa.pc IMMEDIATE @ONLY)
-        install(FILES ${CMAKE_CURRENT_BINARY_DIR}/drumstick-alsa.pc
-            DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig )
+        #configure_file(drumstick-alsa.pc.in drumstick-alsa.pc IMMEDIATE @ONLY)
+        #install(FILES ${CMAKE_CURRENT_BINARY_DIR}/drumstick-alsa.pc
+        #    DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig )
     endif()
     # XML mime types
     set( SHARED_MIME_INFO_MINIMUM_VERSION "0.30" )
