openbsd-ports/x11/slim/patches/patch-CMakeLists_txt
gonzalo 66530b58b0 Update for Slim to 1.3.5:
* Support UTF8 string.
 * And fix some bugs.

Ok landry@ (maintainer)
2013-04-18 12:00:45 +00:00

42 lines
1.4 KiB
Plaintext

$OpenBSD: patch-CMakeLists_txt,v 1.2 2013/04/18 12:00:45 gonzalo Exp $
--- CMakeLists.txt.orig Mon Dec 31 10:03:42 2012
+++ CMakeLists.txt Wed Apr 17 11:38:56 2013
@@ -24,7 +24,7 @@ set(SLIM_VERSION "${SLIM_VERSION_MAJOR}.${SLIM_VERSION
set(CMAKE_INSTALL_PREFIX "/usr/local" CACHE PATH "Installation Directory")
set(PKGDATADIR "${CMAKE_INSTALL_PREFIX}/share/slim")
set(SYSCONFDIR "/etc")
-set(MANDIR "${CMAKE_INSTALL_PREFIX}/share/man")
+set(MANDIR "${CMAKE_INSTALL_PREFIX}/man")
set(SLIM_DEFINITIONS)
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR
@@ -132,8 +132,6 @@ endif(USE_CONSOLEKIT)
# system librarys
find_library(M_LIB m)
-find_library(RT_LIB rt)
-find_library(CRYPTO_LIB crypt)
add_definitions(${SLIM_DEFINITIONS})
@@ -152,8 +150,6 @@ include_directories(
#Set up library with all found packages
target_link_libraries(${PROJECT_NAME}
${M_LIB}
- ${RT_LIB}
- ${CRYPTO_LIB}
${X11_X11_LIB}
${X11_Xft_LIB}
${X11_Xrender_LIB}
@@ -169,8 +165,8 @@ install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bi
# man file
install(FILES slim.1 DESTINATION ${MANDIR}/man1/)
# configure
-install(FILES slim.conf DESTINATION ${SYSCONFDIR})
+install(FILES slim.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/share/examples/slim/)
# systemd service file
-install(FILES slim.service DESTINATION usr/lib/systemd/system)
+#install(FILES slim.service DESTINATION usr/lib/systemd/system)
# themes directory
subdirs(themes)