summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt77
-rw-r--r--ConfigureChecks.cmake43
-rw-r--r--config.h.cmake8
-rw-r--r--doc/CMakeLists.txt1
-rw-r--r--doc/en/CMakeLists.txt1
-rw-r--r--doc/man/CMakeLists.txt5
-rw-r--r--doc/man/knetload.156
-rw-r--r--icons/CMakeLists.txt1
-rw-r--r--knetload/CMakeLists.txt49
-rw-r--r--po/CMakeLists.txt1
-rw-r--r--po/ar/CMakeLists.txt1
-rw-r--r--po/bs/CMakeLists.txt1
-rw-r--r--po/ca/CMakeLists.txt1
-rw-r--r--po/cs/CMakeLists.txt1
-rw-r--r--po/da/CMakeLists.txt1
-rw-r--r--po/de/CMakeLists.txt1
-rw-r--r--po/en_GB/CMakeLists.txt1
-rw-r--r--po/es/CMakeLists.txt1
-rw-r--r--po/et/CMakeLists.txt1
-rw-r--r--po/fr/CMakeLists.txt1
-rw-r--r--po/is/CMakeLists.txt1
-rw-r--r--po/it/CMakeLists.txt1
-rw-r--r--po/ja/CMakeLists.txt1
-rw-r--r--po/nb/CMakeLists.txt1
-rw-r--r--po/nl/CMakeLists.txt1
-rw-r--r--po/pt/CMakeLists.txt1
-rw-r--r--po/pt_BR/CMakeLists.txt1
-rw-r--r--po/ro/CMakeLists.txt1
-rw-r--r--po/sr/CMakeLists.txt1
-rw-r--r--po/sv/CMakeLists.txt1
-rw-r--r--po/ta/CMakeLists.txt1
-rw-r--r--po/tr/CMakeLists.txt1
-rw-r--r--po/xx/CMakeLists.txt1
-rw-r--r--po/zh_CN/CMakeLists.txt1
-rw-r--r--po/zh_TW/CMakeLists.txt1
35 files changed, 267 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..8f28ba8
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,77 @@
+############################################
+# #
+# Improvements and feedbacks are welcome #
+# #
+# This file is released under GPL >= 3 #
+# #
+############################################
+
+
+cmake_minimum_required( VERSION 2.8 )
+
+
+#### general package setup
+
+project( knetload )
+set( VERSION R14.1.0 )
+
+
+#### include essential cmake modules
+
+include( FindPkgConfig )
+include( CheckIncludeFile )
+include( CheckLibraryExists )
+include( CheckCSourceCompiles )
+include( CheckCXXSourceCompiles )
+
+
+#### include our cmake modules
+
+set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
+include( TDEMacros )
+
+
+##### setup install paths
+
+include( TDESetupPaths )
+tde_setup_paths( )
+
+
+##### optional stuff
+
+option( WITH_ALL_OPTIONS "Enable all optional support" ON )
+option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
+
+
+##### user requested modules
+
+option( BUILD_ALL "Build all" ON )
+option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
+option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
+
+
+##### configure checks
+
+include( ConfigureChecks.cmake )
+
+
+###### global compiler settings
+
+add_definitions( -DHAVE_CONFIG_H )
+
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
+set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
+set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
+
+
+##### directories
+
+add_subdirectory( icons )
+add_subdirectory( knetload )
+tde_conditional_add_subdirectory( BUILD_DOC doc )
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### write configure files
+
+configure_file( config.h.cmake config.h @ONLY )
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..6bc33fa
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,43 @@
+###########################################
+# #
+# Improvements and feedback are welcome #
+# #
+# This file is released under GPL >= 3 #
+# #
+###########################################
+
+
+# required stuff
+find_package( TQt )
+find_package( TDE )
+
+tde_setup_architecture_flags( )
+
+include(TestBigEndian)
+test_big_endian(WORDS_BIGENDIAN)
+
+
+##### check for gcc visibility
+
+if( WITH_GCC_VISIBILITY )
+ if( NOT UNIX )
+ tde_message_fatal( "gcc visibility support was requested, but your system is not *NIX" )
+ endif( NOT UNIX )
+ set( __KDE_HAVE_GCC_VISIBILITY 1 )
+ set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
+ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
+endif( WITH_GCC_VISIBILITY )
+
+
+##### gettext
+if( BUILD_TRANSLATIONS )
+ include( FindGettext )
+ if( GETTEXT_FOUND )
+ set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
+ CACHE FILEPATH "path to msgfmt executable" )
+ endif( GETTEXT_FOUND )
+
+ if( NOT MSGFMT_EXECUTABLE )
+ tde_message_fatal( "msgfmt is required but was not found on your system." )
+ endif( NOT MSGFMT_EXECUTABLE )
+endif( BUILD_TRANSLATIONS )
diff --git a/config.h.cmake b/config.h.cmake
new file mode 100644
index 0000000..468789a
--- /dev/null
+++ b/config.h.cmake
@@ -0,0 +1,8 @@
+#define VERSION "@VERSION@"
+
+// Defined if you have fvisibility and fvisibility-inlines-hidden support.
+#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
+
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
+ significant byte first (like Motorola and SPARC, unlike Intel). */
+#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
new file mode 100644
index 0000000..6d0aa9f
--- /dev/null
+++ b/doc/CMakeLists.txt
@@ -0,0 +1 @@
+tde_auto_add_subdirectories( )
diff --git a/doc/en/CMakeLists.txt b/doc/en/CMakeLists.txt
new file mode 100644
index 0000000..ba3ef3e
--- /dev/null
+++ b/doc/en/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_handbook( DESTINATION ${PROJECT_NAME} )
diff --git a/doc/man/CMakeLists.txt b/doc/man/CMakeLists.txt
new file mode 100644
index 0000000..8512250
--- /dev/null
+++ b/doc/man/CMakeLists.txt
@@ -0,0 +1,5 @@
+INSTALL(
+ FILES ${PROJECT_NAME}.1
+ DESTINATION ${MAN_INSTALL_DIR}/man1
+ COMPONENT doc
+)
diff --git a/doc/man/knetload.1 b/doc/man/knetload.1
new file mode 100644
index 0000000..ba26dcd
--- /dev/null
+++ b/doc/man/knetload.1
@@ -0,0 +1,56 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH KNETLOAD 1 "January 14, 2003"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+knetload \- a network meter for Kicker
+.SH SYNOPSIS
+.B knetload
+.RI "[ " generic-options " ]"
+.SH DESCRIPTION
+\fBKNetLoad\fP is a small program for Kicker (the TDE panel). It
+shows a recent history of network usage in the form of two
+configurable diagrams in the system tray, one for incoming and one
+for outgoing data.
+These diagrams have settings for colors and various different styles.
+.PP
+Left click on a diagram to bring up a small information box which
+will show the exact input and output rates in text form as well as
+the total amount incoming and outgoing data.
+.PP
+Note that before KNetLoad can be useful you must select which
+network device it should monitor and select an appropriate scaling
+value that reflects the speed of this network device.
+.PP
+KNetLoad can monitor almost any network device; if your device is
+not in the predefined list of devices (such as eth0, ppp0 and
+ippp0) then you can type in your own device.
+.SH OPTIONS
+For a full summary of options, run \fIknetload \-\-help\fP.
+.SH SEE ALSO
+Full user documentation is available through the TDE Help Centre.
+You can also enter the URL
+\fIhelp:/knetload/\fP
+directly into konqueror or you can run
+`\fIkhelpcenter help:/knetload/\fP'
+from the command-line.
+.PP
+If the TDE Help Centre is not installed then you can
+read this documentation in HTML format from
+\fI/usr/share/doc/tde/HTML/en/knetload/\fP.
+.SH AUTHOR
+KNetLoad was written by Flameeyes <dgp85@users.sourceforge.net>,
+Markus Gustavsson <mighty@fragzone.se> and Ben Burton <bab@debian.org>.
diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt
new file mode 100644
index 0000000..e1d311b
--- /dev/null
+++ b/icons/CMakeLists.txt
@@ -0,0 +1 @@
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons )
diff --git a/knetload/CMakeLists.txt b/knetload/CMakeLists.txt
new file mode 100644
index 0000000..9afa156
--- /dev/null
+++ b/knetload/CMakeLists.txt
@@ -0,0 +1,49 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### knetload (executable)
+
+tde_add_executable( ${PROJECT_NAME} AUTOMOC
+
+ SOURCES
+ devicedialog.cpp
+ icontoggleaction.cpp
+ knetdock.cpp
+ knetload.cpp
+ knetproc.cpp
+ main.cpp
+ scaledialog.cpp
+ speeddialog.cpp
+ statdock.cpp
+ statpopup.cpp
+ LINK
+ tdecore-shared
+ tdeui-shared
+ tdeio-shared
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons
+
+tde_install_icons( ${PROJECT_NAME} )
+
+
+##### other data
+
+install(
+ FILES ${PROJECT_NAME}.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
new file mode 100644
index 0000000..6d0aa9f
--- /dev/null
+++ b/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_auto_add_subdirectories( )
diff --git a/po/ar/CMakeLists.txt b/po/ar/CMakeLists.txt
new file mode 100644
index 0000000..f193123
--- /dev/null
+++ b/po/ar/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG ar )
diff --git a/po/bs/CMakeLists.txt b/po/bs/CMakeLists.txt
new file mode 100644
index 0000000..9b262e5
--- /dev/null
+++ b/po/bs/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG bs )
diff --git a/po/ca/CMakeLists.txt b/po/ca/CMakeLists.txt
new file mode 100644
index 0000000..d5a5b2f
--- /dev/null
+++ b/po/ca/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG ca )
diff --git a/po/cs/CMakeLists.txt b/po/cs/CMakeLists.txt
new file mode 100644
index 0000000..a0791b0
--- /dev/null
+++ b/po/cs/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG cs )
diff --git a/po/da/CMakeLists.txt b/po/da/CMakeLists.txt
new file mode 100644
index 0000000..aae4d18
--- /dev/null
+++ b/po/da/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG da )
diff --git a/po/de/CMakeLists.txt b/po/de/CMakeLists.txt
new file mode 100644
index 0000000..5770e14
--- /dev/null
+++ b/po/de/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG de )
diff --git a/po/en_GB/CMakeLists.txt b/po/en_GB/CMakeLists.txt
new file mode 100644
index 0000000..16d9e14
--- /dev/null
+++ b/po/en_GB/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG en_GB )
diff --git a/po/es/CMakeLists.txt b/po/es/CMakeLists.txt
new file mode 100644
index 0000000..041b7a3
--- /dev/null
+++ b/po/es/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG es )
diff --git a/po/et/CMakeLists.txt b/po/et/CMakeLists.txt
new file mode 100644
index 0000000..8128397
--- /dev/null
+++ b/po/et/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG et )
diff --git a/po/fr/CMakeLists.txt b/po/fr/CMakeLists.txt
new file mode 100644
index 0000000..f7eefec
--- /dev/null
+++ b/po/fr/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG fr )
diff --git a/po/is/CMakeLists.txt b/po/is/CMakeLists.txt
new file mode 100644
index 0000000..b485046
--- /dev/null
+++ b/po/is/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG is )
diff --git a/po/it/CMakeLists.txt b/po/it/CMakeLists.txt
new file mode 100644
index 0000000..c54b21c
--- /dev/null
+++ b/po/it/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG it )
diff --git a/po/ja/CMakeLists.txt b/po/ja/CMakeLists.txt
new file mode 100644
index 0000000..a88a684
--- /dev/null
+++ b/po/ja/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG ja )
diff --git a/po/nb/CMakeLists.txt b/po/nb/CMakeLists.txt
new file mode 100644
index 0000000..d4007c0
--- /dev/null
+++ b/po/nb/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG nb )
diff --git a/po/nl/CMakeLists.txt b/po/nl/CMakeLists.txt
new file mode 100644
index 0000000..66088c7
--- /dev/null
+++ b/po/nl/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG nl )
diff --git a/po/pt/CMakeLists.txt b/po/pt/CMakeLists.txt
new file mode 100644
index 0000000..1001c25
--- /dev/null
+++ b/po/pt/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG pt )
diff --git a/po/pt_BR/CMakeLists.txt b/po/pt_BR/CMakeLists.txt
new file mode 100644
index 0000000..91fae60
--- /dev/null
+++ b/po/pt_BR/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG pt_BR )
diff --git a/po/ro/CMakeLists.txt b/po/ro/CMakeLists.txt
new file mode 100644
index 0000000..d298a5a
--- /dev/null
+++ b/po/ro/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG ro )
diff --git a/po/sr/CMakeLists.txt b/po/sr/CMakeLists.txt
new file mode 100644
index 0000000..aecc615
--- /dev/null
+++ b/po/sr/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG sr )
diff --git a/po/sv/CMakeLists.txt b/po/sv/CMakeLists.txt
new file mode 100644
index 0000000..c26f445
--- /dev/null
+++ b/po/sv/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG sv )
diff --git a/po/ta/CMakeLists.txt b/po/ta/CMakeLists.txt
new file mode 100644
index 0000000..3818233
--- /dev/null
+++ b/po/ta/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG ta )
diff --git a/po/tr/CMakeLists.txt b/po/tr/CMakeLists.txt
new file mode 100644
index 0000000..b968c8e
--- /dev/null
+++ b/po/tr/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG tr )
diff --git a/po/xx/CMakeLists.txt b/po/xx/CMakeLists.txt
new file mode 100644
index 0000000..100618f
--- /dev/null
+++ b/po/xx/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG xx )
diff --git a/po/zh_CN/CMakeLists.txt b/po/zh_CN/CMakeLists.txt
new file mode 100644
index 0000000..c704bad
--- /dev/null
+++ b/po/zh_CN/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG zh_CN )
diff --git a/po/zh_TW/CMakeLists.txt b/po/zh_TW/CMakeLists.txt
new file mode 100644
index 0000000..8f3ac3c
--- /dev/null
+++ b/po/zh_TW/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG zh_TW )