$OpenBSD: patch-CMakeLists_txt,v 1.9 2021/11/15 19:40:17 rsadowski Exp $

- Disable wayland

Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -262,9 +262,9 @@ check_include_files(errno.h HAVE_ERRNO_H)
 include_directories(.)
 include_directories(src/include)
 
-# FreeBSD
+# FreeBSD, OpenBSD and NetBSD
 
-if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
+if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD|OpenBSD|NetBSD")
   set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-rdynamic")
   include_directories(/usr/local/include /usr/include)
   link_directories(/usr/local/lib /usr/lib)
@@ -376,10 +376,7 @@ if(NOT GTK3_FOUND)
 endif(NOT GTK3_FOUND)
 include_directories(${GTK3_INCLUDE_DIRS})
 
-pkg_check_modules(wayland-client REQUIRED wayland-client)
-if(NOT wayland-client_FOUND)
-    message(FATAL_ERROR "Wayland library not found")
-endif(NOT wayland-client_FOUND)
+#pkg_check_modules(wayland-client wayland-client)
 
 include_directories(${wayland-client_INCLUDE_DIRS})
 
