File fix_cmake_rules.patch of Package vacuum-im-plugins-dbusnotifications

diff -r a2b89c6efeb9 CMakeLists.txt
--- vacuum-im-plugins-dbusnotifications/CMakeLists.txt	Fri Jul 29 11:56:23 2011 +0300
+++ vacuum-im-plugins-dbusnotifications/CMakeLists.txt	Sun Jan 22 12:58:26 2012 +0400
@@ -3,6 +3,8 @@
 project(dbusnotification-plugin)
 set(PLUGIN_NAME "dbusnotifications")
 
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_DEBUG")
+
 add_custom_target(updatets)
 
 include("translations.cmake")
@@ -34,7 +34,7 @@
 if (WIN32)
 	include_directories("${CMAKE_INSTALL_PREFIX}/sdk")
 elseif (UNIX)
-	include_directories("${CMAKE_INSTALL_PREFIX}/include/vacuum")
+	include_directories("${CMAKE_INSTALL_PREFIX}/include/vacuum-im")
 endif (WIN32)
 
 set(SOURCES dbuspopuphandler.cpp )
diff -r a2b89c6efeb9 install.cmake
--- vacuum-im-plugins-dbusnotifications/install.cmake	Fri Jul 29 11:56:23 2011 +0300
+++ vacuum-im-plugins-dbusnotifications/install.cmake	Sun Jan 22 12:58:26 2012 +0400
@@ -6,9 +6,10 @@
 	set(INSTALL_RES_DIR "Resources")
 elseif (UNIX)
-	set(INSTALL_PREFIX "/usr/local")
+	set(INSTALL_PREFIX "/usr/local" CACHE STRING "")
-	set(INSTALL_APP_DIR "vacuum")
+	set(INSTALL_APP_DIR "vacuum" CACHE STRING "")
 	set(INSTALL_LIB_DIR "lib" CACHE STRING "Name of directory for shared libraries on target system")
 	set(INSTALL_RES_DIR "share")
+	set(INSTALL_DOC_DIR "${INSTALL_RES_DIR}/doc" CACHE STRING "")
 elseif (WIN32)
 	set(INSTALL_PREFIX "C:")
 	set(INSTALL_APP_DIR "vacuum")
@@ -37,7 +38,7 @@
 	set(INSTALL_LIBS "${INSTALL_LIB_DIR}")
 	set(INSTALL_PLUGINS "${INSTALL_LIB_DIR}/${INSTALL_APP_DIR}/plugins")
 	set(INSTALL_RESOURCES "${INSTALL_RES_DIR}/${INSTALL_APP_DIR}/resources")
-	set(INSTALL_DOCUMENTS "${INSTALL_RES_DIR}/doc/${INSTALL_APP_DIR}")
+	set(INSTALL_DOCUMENTS "${INSTALL_DOC_DIR}/${INSTALL_APP_DIR}")
 	set(INSTALL_TRANSLATIONS "${INSTALL_RES_DIR}/${INSTALL_APP_DIR}/translations")
 	set(INSTALL_INCLUDES "include/${INSTALL_APP_DIR}")
 endif (WIN32)
openSUSE Build Service is sponsored by