summaryrefslogtreecommitdiff
path: root/sysutils/ksysguardd-kde4/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/ksysguardd-kde4/files/patch-CMakeLists.txt')
-rw-r--r--sysutils/ksysguardd-kde4/files/patch-CMakeLists.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/sysutils/ksysguardd-kde4/files/patch-CMakeLists.txt b/sysutils/ksysguardd-kde4/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..f7e699e29eae
--- /dev/null
+++ b/sysutils/ksysguardd-kde4/files/patch-CMakeLists.txt
@@ -0,0 +1,35 @@
+--- CMakeLists.txt.orig 2014-10-10 07:47:23 UTC
++++ CMakeLists.txt
+@@ -7,16 +7,19 @@ include_directories( ${CMAKE_CURRENT_SOU
+ # Laurent: Verify that we install it into (kdeprefix)/etc/ and not into /etc
+ # otherwise it's necessary to change it.
+ # into kde 3.x it was installed into /etc/
+-add_definitions( -DKSYSGUARDDRCFILE="\\"${SYSCONF_INSTALL_DIR}/ksysguarddrc\\"" )
++add_definitions( -DKSYSGUARDDRCFILE=\"${SYSCONF_INSTALL_DIR}/ksysguarddrc\" )
+
+ add_definitions(-DOSTYPE_${CMAKE_SYSTEM_NAME})
+
+-macro_optional_find_package(Sensors)
+-macro_bool_to_01(SENSORS_FOUND HAVE_LMSENSORS)
+-
+-check_include_files(sys/inotify.h SYS_INOTIFY_H_FOUND)
+-macro_bool_to_01(SYS_INOTIFY_H_FOUND HAVE_SYS_INOTIFY_H)
++# Commenting this allows us not to depend on kdelibs (we don't have
++# lm-sensors in ports, nor inotify in base system).
++#macro_optional_find_package(Sensors)
++#macro_bool_to_01(SENSORS_FOUND HAVE_LMSENSORS)
++set(SENSORS_FOUND 0)
+
++#check_include_files(sys/inotify.h SYS_INOTIFY_H_FOUND)
++#macro_bool_to_01(SYS_INOTIFY_H_FOUND HAVE_SYS_INOTIFY_H)
++set(SYS_INOTIFY_H_FOUND 0)
+
+ configure_file(config-ksysguardd.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ksysguardd.h)
+
+@@ -69,4 +72,5 @@ if( ${CMAKE_SYSTEM_NAME} MATCHES "SunOS"
+ target_link_libraries(ksysguardd socket nsl)
+ endif( ${CMAKE_SYSTEM_NAME} MATCHES "SunOS" )
+
+-install(TARGETS ksysguardd ${INSTALL_TARGETS_DEFAULT_ARGS})
++install(TARGETS ksysguardd RUNTIME DESTINATION "${BIN_INSTALL_DIR}")
++install(FILES ../example/ksysguarddrc DESTINATION "${SYSCONF_INSTALL_DIR}")