$NetBSD: patch-CMakeLists.txt,v 1.3 2023/06/14 09:43:50 abs Exp $

Fix build.

--- CMakeLists.txt.orig	2023-01-21 19:54:32.000000000 +0000
+++ CMakeLists.txt
@@ -23,7 +23,7 @@ set(SLIM_VERSION_PATCH "0")
 set(SLIM_VERSION "${SLIM_VERSION_MAJOR}.${SLIM_VERSION_MINOR}.${SLIM_VERSION_PATCH}")
 
 set(PKGDATADIR "${CMAKE_INSTALL_FULL_DATADIR}/slim")
-set(SYSCONFDIR "/etc")
+set(SYSCONFDIR "@PKG_SYSCONFDIR@")
 
 set(SLIM_DEFINITIONS)
 if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR
@@ -96,13 +96,13 @@ find_package(JPEG REQUIRED)
 find_package(PNG REQUIRED)
 
 # Fontconfig
-set(FONTCONFIG_DIR ${CMAKE_MODULE_PATH})
-find_package(FONTCONFIG REQUIRED)
-if(FONTCONFIG_FOUND)
-	message("\tFontConfig Found")
-	target_link_libraries(slim ${FONTCONFIG_LIBRARY})
-	include_directories(${FONTCONFIG_INCLUDE_DIR})
-endif(FONTCONFIG_FOUND)
+#set(FONTCONFIG_DIR ${CMAKE_MODULE_PATH})
+#find_package(FONTCONFIG REQUIRED)
+#if(FONTCONFIG_FOUND)
+#	message("\tFontConfig Found")
+#	target_link_libraries(slim ${FONTCONFIG_LIBRARY})
+#	include_directories(${FONTCONFIG_INCLUDE_DIR})
+#endif(FONTCONFIG_FOUND)
 
 # PAM
 if(USE_PAM)
@@ -235,7 +235,7 @@ endif (BUILD_SHARED_LIBS)
 install(FILES slim.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
 
 # configure - in theory we should use CMAKE_INSTALL_SYSCONFDIR but that doesn't work
-install(FILES slim.conf DESTINATION ${SYSCONFDIR})
+install(FILES slim.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/share/examples/slim/)
 
 # systemd service file - commented out as broken - not all Linux uses systemd!
 #if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
