summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDustin Polke <DuPol@gmx.de>2012-05-23 14:51:00 +0200
committerDustin Polke <DuPol@gmx.de>2012-05-23 15:58:50 +0200
commitf66b8c9ecd4e1775b566b081a5e0bb1b5716dbaa (patch)
treef04b1f2d25bb1bf50fa203edb95b2a2c80913006
parent[x11-plugins/cd-plugins-stable] Version bump to 3.0.1. (diff)
downloadDuPol-f66b8c9ecd4e1775b566b081a5e0bb1b5716dbaa.tar.gz
DuPol-f66b8c9ecd4e1775b566b081a5e0bb1b5716dbaa.tar.bz2
DuPol-f66b8c9ecd4e1775b566b081a5e0bb1b5716dbaa.zip
[x11-plugins/cd-plugins-good] Version bump to 3.0.1.
-rw-r--r--x11-plugins/cd-plugins-good/ChangeLog6
-rw-r--r--x11-plugins/cd-plugins-good/Manifest5
-rw-r--r--x11-plugins/cd-plugins-good/cd-plugins-good-3.0.1.ebuild95
-rw-r--r--x11-plugins/cd-plugins-good/files/cd-plugins-good-3.0.1-CMakeLists.txt436
4 files changed, 541 insertions, 1 deletions
diff --git a/x11-plugins/cd-plugins-good/ChangeLog b/x11-plugins/cd-plugins-good/ChangeLog
index 51574e3..0c95494 100644
--- a/x11-plugins/cd-plugins-good/ChangeLog
+++ b/x11-plugins/cd-plugins-good/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*cd-plugins-good-3.0.1 (23 May 2012)
+
+ 23 May 2012; Dustin Polke <DuPol@gmx.de> +cd-plugins-good-3.0.1.ebuild,
+ +files/cd-plugins-good-3.0.1-CMakeLists.txt:
+ Version bump to 3.0.1.
+
23 May 2012; Dustin Polke <DuPol@gmx.de> -cd-plugins-good-2.4.0.2.ebuild,
-files/cd-plugins-good-2.4.0-CMakeLists.txt:
Drop old.
diff --git a/x11-plugins/cd-plugins-good/Manifest b/x11-plugins/cd-plugins-good/Manifest
index c84df2f..fafd72a 100644
--- a/x11-plugins/cd-plugins-good/Manifest
+++ b/x11-plugins/cd-plugins-good/Manifest
@@ -1,5 +1,8 @@
AUX cd-plugins-good-3.0.0-CMakeLists.txt 18974 RMD160 9a99d9e2ff9d2a9019d78f9ad3e8c4436111296e SHA1 8c31c6ebb98fd013cb93188190eed959b7ac2ea7 SHA256 3d99449f731f869fd5e81a13b24c0ce3a0d5843fdb6a204c7717790a9a688476
+AUX cd-plugins-good-3.0.1-CMakeLists.txt 18974 RMD160 98ca8db61148a13f19c2b93d8557d59afe08c20b SHA1 191ed29fc1b1e28e2770db7bf847a3beb6a8f031 SHA256 e85e104c18d2755abb0f4710debc2cb35d1f7d4fbd5dcafb95eca5b6a5848d28
DIST cairo-dock-plugins-3.0.0.tar.gz 6230574 RMD160 6c1358627768303ed386f62328ff598a77c9617f SHA1 448f4c9300f0652e16d5a41afabd8ea6e4dd9338 SHA256 8040f0a7865592436b57bc1d867f0ee001ae45350255aafe4786a80fc9a981ef
+DIST cairo-dock-plugins-3.0.1.tar.gz 6232909 RMD160 91926b5c9578eeac9b3c81ce3d862358d810c148 SHA1 f3f828d19fa23d3ca18a8666df6c7af9ef296c8a SHA256 4b6dcf77013c96ef4d04f4d7f2c5e2daf3d7a7009edc5a2729b4ead75bb983ce
EBUILD cd-plugins-good-3.0.0.ebuild 3223 RMD160 2fc785db7dc131d1b710cc9cf8604a1d19d811f3 SHA1 2f7120e79b075a53af1076cd05f8022bbcaf1ae3 SHA256 96e119f3cbd81a90583903155f53312add83ec4b57ec0873a52acacf19d00d92
-MISC ChangeLog 2291 RMD160 9b80208a6a1024ba422066d21550611b231d444e SHA1 26f92acec2fa0c684946892c0c666f278b7761f1 SHA256 c77abd6b39187cbcbcbc0ff34d8e42d4de460fa85f9a5d0bda5e831d10f6d2a5
+EBUILD cd-plugins-good-3.0.1.ebuild 3223 RMD160 2fc785db7dc131d1b710cc9cf8604a1d19d811f3 SHA1 2f7120e79b075a53af1076cd05f8022bbcaf1ae3 SHA256 96e119f3cbd81a90583903155f53312add83ec4b57ec0873a52acacf19d00d92
+MISC ChangeLog 2476 RMD160 de3ba6fac55e84b53e4fdf5d30ee074538abf8e5 SHA1 d2bb0c74769c14dd5a3f136873e6f09e3423246a SHA256 3fdb0272b98854fa883d9f35d14707b33c1d6f36b2faecfa2b0470999f0484e7
MISC metadata.xml 1456 RMD160 94b296b0012a6bb111c9571002c9253f655905c9 SHA1 b311098433b7522cd64607709a2050ad0b7c3350 SHA256 f4c53f27cf785f7c698a1681ebc13dfa3959d748aed1866db58c5d02f117a791
diff --git a/x11-plugins/cd-plugins-good/cd-plugins-good-3.0.1.ebuild b/x11-plugins/cd-plugins-good/cd-plugins-good-3.0.1.ebuild
new file mode 100644
index 0000000..7b4c07c
--- /dev/null
+++ b/x11-plugins/cd-plugins-good/cd-plugins-good-3.0.1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+EAPI="4"
+
+inherit cmake-utils cairo-dock
+
+DESCRIPTION="Official plugins for cairo-dock with minor flaws."
+HOMEPAGE="http://www.glx-dock.org"
+
+LICENSE="|| ( LGPL-2 LGPL-2.1 LGPL-3 ) GPL-2 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+CD_PLUGIN_IUSE="compiz dnd2share folders mail musicplayer pulseaudio
+ recent-events remote-control rssreader stack status-notifier system-monitor
+ systray tomboy xklavier"
+IUSE="${CD_PLUGIN_IUSE} fftw gtk2 lm_sensors"
+REQUIRED_USE="|| ( ${CD_PLUGIN_IUSE} )
+ fftw? ( pulseaudio )
+ lm_sensors? ( system-monitor )"
+CDP_DEPEND="dev-libs/dbus-glib
+ >=dev-libs/glib-2.22:2
+ dev-libs/libxml2:2
+ gnome-base/librsvg:2
+ sys-apps/dbus
+ x11-libs/cairo
+ ~x11-misc/cairo-dock-${PV}[gtk2=]
+ !x11-misc/cairo-dock-plugins
+ !x11-plugins/cairo-dock-plugins
+ !gtk2? ( x11-libs/gtk+:3 )
+ gtk2? ( x11-libs/gtk+:2 )"
+RDEPEND="${CDP_DEPEND}
+ lm_sensors? ( sys-apps/lm_sensors )
+ mail? ( net-libs/libetpan )
+ pulseaudio? ( media-sound/pulseaudio )
+ fftw? ( sci-libs/fftw:3.0 )
+ recent-events? ( dev-libs/libzeitgeist )
+ status-notifier? (
+ !gtk2? ( dev-libs/libdbusmenu:3[gtk] )
+ gtk2? ( dev-libs/libdbusmenu:0[gtk] )
+ )
+ xklavier? ( x11-libs/libxklavier )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ sys-devel/gettext
+ dev-util/pkgconfig"
+
+pkg_setup() {
+ use compiz && CD_PLUGINS+=( "Composite-Manager" )
+ use dnd2share && CD_PLUGINS+=( "dnd2share" )
+ use folders && CD_PLUGINS+=( "Folders ")
+ use mail && CD_PLUGINS+=( "mail" )
+ use musicplayer && CD_PLUGINS+=( "musicPlayer" )
+ use pulseaudio && CD_PLUGINS+=( "Impulse" )
+ use recent-events && CD_PLUGINS+=( "Recent-Events" )
+ use remote-control && CD_PLUGINS+=( "Remote-Control" )
+ use rssreader && CD_PLUGINS+=( "RSSreader" )
+ use stack && CD_PLUGINS+=( "stack" )
+ use status-notifier && CD_PLUGINS+=( "Status-Notifier" )
+ use system-monitor && CD_PLUGINS+=( "System-Monitor" )
+ use systray && CD_PLUGINS+=( "systray" )
+ use tomboy && CD_PLUGINS+=( "tomboy" )
+ use xklavier && CD_PLUGINS+=( "keyboard-indicator" )
+}
+
+src_unpack() {
+ cairo-dock_src_unpack
+}
+
+src_prepare() {
+ cairo-dock_src_prepare
+}
+
+src_configure() {
+ mycmakeargs+=(
+ "$(cmake-utils_use_enable compiz COMPOSITE-MANAGER-PLUGIN)"
+ "$(cmake-utils_use_enable dnd2share DND2SHARE-PLUGIN)"
+ "$(cmake-utils_use_enable folders FOLDERS-PLUGIN)"
+ "$(cmake-utils_use_enable mail MAIL-PLUGIN)"
+ "$(cmake-utils_use_enable musicplayer MUSICPLAYER-PLUGIN)"
+ "$(cmake-utils_use_enable pulseaudio IMPULSE-PLUGIN)"
+ "$(cmake-utils_use_with fftw FFTW3-SUPPORT)"
+ "$(cmake-utils_use_enable recent-events RECENT-EVENTS-PLUGIN)"
+ "$(cmake-utils_use_enable remote-control REMOTE-CONTROL-PLUGIN)"
+ "$(cmake-utils_use_enable rssreader RSSREADER-PLUGIN)"
+ "$(cmake-utils_use_enable stack STACK-PLUGIN)"
+ "$(cmake-utils_use_enable status-notifier STATUS-NOTIFIER-PLUGIN)"
+ "$(cmake-utils_use_enable system-monitor SYSTEM-MONITOR-PLUGIN)"
+ "$(cmake-utils_use_with lm_sensors SENSORS-SUPPORT)"
+ "$(cmake-utils_use_enable systray SYSTRAY-PLUGIN)"
+ "$(cmake-utils_use_enable tomboy TOMBOY-PLUGIN)"
+ "$(cmake-utils_use_enable xklavier KEYBOARD-INDICATOR-PLUGIN)"
+ )
+ cmake-utils_src_configure
+}
diff --git a/x11-plugins/cd-plugins-good/files/cd-plugins-good-3.0.1-CMakeLists.txt b/x11-plugins/cd-plugins-good/files/cd-plugins-good-3.0.1-CMakeLists.txt
new file mode 100644
index 0000000..ec54fb3
--- /dev/null
+++ b/x11-plugins/cd-plugins-good/files/cd-plugins-good-3.0.1-CMakeLists.txt
@@ -0,0 +1,436 @@
+########### requirements ###############
+
+cmake_minimum_required (VERSION 2.6)
+find_package (PkgConfig)
+include (CheckLibraryExists)
+include (CheckIncludeFiles)
+include (CheckFunctionExists)
+include (CheckSymbolExists)
+include ("${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/GNUInstallDirs.cmake")
+
+########### project ###############
+
+project ("cairo-dock-plugins")
+set (VERSION "3.0.1")
+
+add_definitions (-std=c99 -Wextra -Wwrite-strings -Wuninitialized -Werror-implicit-function-declaration -Wstrict-prototypes) # removed for stable versions: -Wstrict-prototypes #-Wunreachable-code -Wno-unused-parameter -Wall
+add_definitions (-DGL_GLEXT_PROTOTYPES="1")
+
+############ sources tarball #############
+
+set (CPACK_SOURCE_GENERATOR "TGZ")
+set (CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}")
+set (CPACK_SOURCE_IGNORE_FILES
+ "/build/;/.bzr/;bzrignore$;/misc/;~$;${CPACK_SOURCE_IGNORE_FILES}")
+include (CPack)
+
+add_custom_target(dist
+ COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
+add_custom_target(dist-bzr
+ COMMAND bzr export ${CMAKE_PROJECT_NAME}-${VERSION}.tar.gz
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
+
+########### global variables ###############
+
+if( WIN32 )
+ message(FATAL_ERROR "Cairo-Dock requires an air-conditioned room. Please close Windows!")
+endif( WIN32 )
+
+set (PACKAGE ${CMAKE_PROJECT_NAME})
+set (GETTEXT_PACKAGE ${PACKAGE})
+
+# get plug-ins install dir
+execute_process(
+ COMMAND pkg-config gldi --variable=pluginsdir # /usr/lib/cairo-dock # or /usr/lib/x86_64-linux-gnu/cairo-dock
+ OUTPUT_VARIABLE pluginsdir)
+STRING (REGEX REPLACE "\n" "" pluginsdir ${pluginsdir}) # remove the \n
+# get plug-ins data dir
+execute_process(
+ COMMAND pkg-config gldi --variable=pluginsdatadir # /usr/share/cairo-dock/plug-ins
+ OUTPUT_VARIABLE pluginsdatadir)
+STRING (REGEX REPLACE "\n" "" pluginsdatadir ${pluginsdatadir})
+# get prefix dir
+execute_process(
+ COMMAND pkg-config gldi --variable=prefix # /usr/share/cairo-dock/plug-ins
+ OUTPUT_VARIABLE prefix)
+STRING (REGEX REPLACE "\n" "" prefix ${prefix})
+# get GTK version (must be the same as the core, as GTK2 and GTK3 can't coexist at runtime)
+execute_process(
+ COMMAND pkg-config gldi --variable=gtkversion # 2 or 3
+ OUTPUT_VARIABLE gtkversion)
+STRING (REGEX REPLACE "\n" "" gtkversion ${gtkversion})
+# check that version matches with the core
+execute_process(
+ COMMAND pkg-config --modversion gldi # 2.2.0-3
+ OUTPUT_VARIABLE dock_version)
+STRING (REGEX REPLACE "\n" "" dock_version ${dock_version})
+if (NOT "${dock_version}" STREQUAL "${VERSION}") # Version
+ if ("${PACKAGEMENT}" STREQUAL "")
+ MESSAGE (FATAL_ERROR "Error : version mismatch with the core : " ${VERSION} <> ${dock_version})
+ else ()
+ MESSAGE (WARNING "Warning : version mismatch with the core : " ${VERSION} <> ${dock_version})
+ endif ()
+endif()
+
+# check that installation dir matches with the core
+GET_FILENAME_COMPONENT(libdir "${pluginsdir}/.." ABSOLUTE) # /usr/lib # or /usr/lib/x86_64-linux-gnu
+GET_FILENAME_COMPONENT(datadir "${pluginsdatadir}/../.." ABSOLUTE) # /usr/share
+if (NOT "${CMAKE_INSTALL_PREFIX}" STREQUAL "${prefix}"
+ OR NOT "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" STREQUAL "${libdir}"
+ OR NOT "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}" STREQUAL "${datadir}")
+ message (STATUS "It seems that the current CMAKE_INSTALL_{PREFIX,LIBDIR,DATAROOTDIR} flags are not the same that you have used with the core.")
+ message (STATUS " It will be replaced by this value: ${prefix}")
+ message (WARNING "Plug-ins should be installed in the same directory as the core, that is to say in ${pluginsdir}")
+ set (CMAKE_INSTALL_PREFIX "${prefix}")
+ #set (libdir "${CMAKE_INSTALL_PREFIX}/${libname}/cairo-dock")
+endif()
+
+# set internationalisation
+set (GETTEXT_PLUGINS "cairo-dock-plugins")
+set (localedir "${prefix}/${CMAKE_INSTALL_LOCALEDIR}")
+set (gaugesdir "${datadir}/cairo-dock/gauges")
+
+set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/") # additionnal FindPackage files
+
+########### dependencies ###############
+
+message ("")
+message (STATUS "=====================")
+message (STATUS "Check dependencies...")
+message (STATUS "=====================")
+message ("")
+
+pkg_check_modules ("PACKAGE" REQUIRED "cairo" "librsvg-2.0" "dbus-1" "dbus-glib-1" "libxml-2.0")
+#pkg_check_modules ("PACKAGE" REQUIRED "ig")
+pkg_check_modules ("GLDI" REQUIRED "gldi") # we don't want to link with gldi, so we check it separately.
+set (PACKAGE_INCLUDE_DIRS "${GLDI_INCLUDE_DIRS}")
+
+add_definitions (-DGTK_DISABLE_DEPRECATED="1")
+
+############# GLIB #################
+pkg_check_modules (GLIB glib-2.0)
+ STRING (REGEX REPLACE "\\..*" "" GLIB_MAJOR "${GLIB_VERSION}") # 2.28.3 => 2
+ STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" GLIB_MINOR "${GLIB_VERSION}") # 2.28.3 => 2.28
+ STRING (REGEX REPLACE "\\.[0-9]*" "" GLIB_MINOR "${GLIB_MINOR}") # 2.28 => 28
+ STRING (REGEX REPLACE ".*\\." "" GLIB_NANO "${GLIB_VERSION}") # 2.28.3 => 3
+ STRING (REGEX REPLACE "-.*" "" GLIB_NANO "${GLIB_NANO}")
+
+############# COMPOSITE_MANAGER #################
+if (ENABLE_COMPOSITE-MANAGER-PLUGIN)
+ message (STATUS "> Composite Manager:")
+ set (GETTEXT_COMPOSITE_MANAGER ${GETTEXT_PLUGINS})
+ set (VERSION_COMPOSITE_MANAGER "1.0.1")
+ set (PACKAGE_COMPOSITE_MANAGER "cd-Composite-Manager")
+ set (composite_managerdatadir "${pluginsdatadir}/Composite-Manager")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Composite-Manager/data/Composite-Manager.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Composite-Manager/data/Composite-Manager.conf)
+ add_subdirectory (Composite-Manager)
+ set (enable-composite-manager-plugin "yes")
+else()
+ set (enable-composite-manager-plugin "no")
+endif()
+
+############# DND2SHARE #################
+if (ENABLE_DND2SHARE-PLUGIN)
+ message (STATUS "> DND2Share:")
+ set (GETTEXT_DND2SHARE ${GETTEXT_PLUGINS})
+ set (VERSION_DND2SHARE "1.0.7")
+ set (PACKAGE_DND2SHARE "cd-dnd2share")
+ set (dnd2sharedatadir "${pluginsdatadir}/dnd2share")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/dnd2share/data/dnd2share.conf.in ${CMAKE_CURRENT_BINARY_DIR}/dnd2share/data/dnd2share.conf)
+ add_subdirectory (dnd2share)
+ set (enable-dnd2share-plugin "yes")
+else()
+ set (enable-dnd2share-plugin "no")
+endif()
+
+############# FOLDERS #################
+if (ENABLE_FOLDERS-PLUGIN)
+ message (STATUS "> Folders:")
+ set (GETTEXT_FOLDERS ${GETTEXT_PLUGINS})
+ set (VERSION_FOLDERS "0.2.3")
+ set (PACKAGE_FOLDERS "cd-Folders")
+ set (foldersdatadir "${pluginsdatadir}/Folders")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Folders/data/Folders.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Folders/data/Folders.conf)
+ add_subdirectory (Folders)
+ set (enable-folders-plugin "yes")
+else()
+ set (enable-folders-plugin "no")
+endif()
+
+############# IMPULSE #################
+if (ENABLE_IMPULSE-PLUGIN)
+ message (STATUS "> Impulse:")
+ pkg_check_modules ("LIBPULSE" REQUIRED "libpulse")
+ if (WITH_FFTW3-SUPPORT)
+ pkg_check_modules ("FFTW3" REQUIRED "fftw3") # optional, not advised for distributions packages (it's not a small dependence...)
+ set (with_fftw3 "yes")
+ else()
+ set (with_fftw3 "no")
+ endif()
+ set (GETTEXT_IMPULSE ${GETTEXT_PLUGINS})
+ set (VERSION_IMPULSE "0.0.4")
+ set (PACKAGE_IMPULSE "cd-Impulse")
+ set (with_impulse "yes")
+ set (impulsedatadir "${pluginsdatadir}/Impulse")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Impulse/data/Impulse.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Impulse/data/Impulse.conf)
+ add_subdirectory (Impulse)
+else()
+ set (with_impulse "no")
+endif()
+
+############# KEYBOARD_INDICATOR #################
+if (ENABLE_KEYBOARD-INDICATOR-PLUGIN)
+ message (STATUS "> Keyboard-Indicator:")
+ pkg_check_modules ("KEYBOARD_INDICATOR_PACKAGE" REQUIRED "libxklavier")
+ set (GETTEXT_KEYBOARD_INDICATOR ${GETTEXT_PLUGINS})
+ set (VERSION_KEYBOARD_INDICATOR "1.1.6")
+ set (PACKAGE_KEYBOARD_INDICATOR "cd-keyboard-indicator")
+ set (with_keyboard_indicator "yes")
+ set (keyboard_indicatordatadir "${pluginsdatadir}/keyboard-indicator")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/keyboard-indicator/data/keyboard-indicator.conf.in ${CMAKE_CURRENT_BINARY_DIR}/keyboard-indicator/data/keyboard-indicator.conf)
+ add_subdirectory ("keyboard-indicator")
+else()
+ set (with_keyboard_indicator "no")
+endif()
+
+############# MAIL #################
+if (ENABLE_MAIL-PLUGIN)
+ message (STATUS "> Mail:")
+ # find the compilation flags
+ find_program (LIBETPAN_CONFIG_EXECUTABLE libetpan-config)
+ execute_process(
+ COMMAND ${LIBETPAN_CONFIG_EXECUTABLE} --cflags
+ OUTPUT_VARIABLE MAIL_PACKAGE_CFLAGS)
+ if (NOT "${MAIL_PACKAGE_CFLAGS}" STREQUAL "" AND NOT "${MAIL_PACKAGE_CFLAGS}" STREQUAL "\n") # if there is a problem with the previous, we don't want to have a lot of errors
+ STRING (REGEX REPLACE "\n" "" TMP_VARIABLE "${MAIL_PACKAGE_CFLAGS}") # to not skip the last option
+ STRING (REGEX MATCHALL "(^| )-I[^ ]+( |$)" TMP_VARIABLE "${TMP_VARIABLE}") # first extract the "-I" options
+ STRING (REGEX REPLACE ";" "" TMP_VARIABLE "${TMP_VARIABLE}")
+ STRING (REGEX REPLACE " $" "" TMP_VARIABLE "${TMP_VARIABLE}")
+ STRING (REGEX REPLACE "^ " "" TMP_VARIABLE "${TMP_VARIABLE}")
+ STRING (REGEX REPLACE " " " " TMP_VARIABLE "${TMP_VARIABLE}")
+ STRING (REGEX REPLACE "-I([^ ]+)" "\\1" MAIL_PACKAGE_INCLUDE_DIRS "${TMP_VARIABLE}") # then remove the "-I" string
+ endif()
+ # find the link flags
+ execute_process(
+ COMMAND ${LIBETPAN_CONFIG_EXECUTABLE} --libs
+ OUTPUT_VARIABLE MAIL_PACKAGE_LIBS)
+ if (NOT "${MAIL_PACKAGE_LIBS}" STREQUAL "")
+ STRING (REGEX REPLACE "\n" "" MAIL_PACKAGE_LIBS "${MAIL_PACKAGE_LIBS}")
+ # find the link libraries
+ STRING (REGEX MATCHALL "(^| )-l[^ ]+( |$)" TMP_VARIABLE "${MAIL_PACKAGE_LIBS}") # extract the "-l" options (only if it's separated by two blank spaces or the end/beginning of the line => -L/usr/lib/x86_64-linux-gnu)
+ STRING (REGEX REPLACE ";" "" TMP_VARIABLE "${TMP_VARIABLE}")
+ STRING (REGEX REPLACE "^ " "" TMP_VARIABLE "${TMP_VARIABLE}")
+ STRING (REGEX REPLACE " " " " TMP_VARIABLE "${TMP_VARIABLE}")
+ STRING (REGEX REPLACE " $" "" MAIL_PACKAGE_LIBRARIES "${TMP_VARIABLE}")
+ # find the link directories
+ STRING (REGEX MATCHALL "(^| )-L[^ ]+( |$)" TMP_VARIABLE "${MAIL_PACKAGE_LIBS}") # extract the "-L" options
+ STRING (REGEX REPLACE ";" "" TMP_VARIABLE "${TMP_VARIABLE}")
+ STRING (REGEX REPLACE " $" "" TMP_VARIABLE "${TMP_VARIABLE}")
+ STRING (REGEX REPLACE "^ " "" TMP_VARIABLE "${TMP_VARIABLE}")
+ STRING (REGEX REPLACE " " " " TMP_VARIABLE "${TMP_VARIABLE}")
+ STRING (REGEX REPLACE "-L([^ ]+)" "\\1" MAIL_PACKAGE_LIBRARY_DIRS "${TMP_VARIABLE}") # then remove the "-L" string
+ endif()
+ if ("${MAIL_PACKAGE_LIBS}" STREQUAL "")
+ message (FATAL_ERROR "Could not find libetpan!")
+ endif()
+ message (STATUS " libetpan found. Using the following options:")
+ message (STATUS " Include directories: ${MAIL_PACKAGE_INCLUDE_DIRS}")
+ message (STATUS " Link directories: ${MAIL_PACKAGE_LIBRARY_DIRS}")
+ message (STATUS " Link libraries: ${MAIL_PACKAGE_LIBRARIES}")
+ set (GETTEXT_MAIL ${GETTEXT_PLUGINS})
+ set (VERSION_MAIL "1.0.11")
+ set (PACKAGE_MAIL "cd-mail")
+ set (maildatadir "${pluginsdatadir}/mail")
+ set (with_mail "yes")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/mail/data/mail.conf.in ${CMAKE_CURRENT_BINARY_DIR}/mail/data/mail.conf)
+ add_subdirectory ("mail")
+else()
+ set (with_mail "no")
+endif()
+
+############# MUSICPLAYER #################
+if (ENABLE_MUSICPLAYER-PLUGIN)
+ message (STATUS "> MusicPlayer:")
+ set (GETTEXT_MUSICPLAYER ${GETTEXT_PLUGINS})
+ set (VERSION_MUSICPLAYER "2.0.1")
+ set (PACKAGE_MUSICPLAYER "cd-musicPlayer")
+ set (musicplayerdatadir "${pluginsdatadir}/musicPlayer")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/musicPlayer/data/musicPlayer.conf.in ${CMAKE_CURRENT_BINARY_DIR}/musicPlayer/data/musicPlayer.conf)
+ add_subdirectory (musicPlayer)
+ set (enable-musicplayer-plugin "yes")
+else()
+ set (enable-musicplayer-plugin "no")
+endif()
+
+############# RECENT-EVENTS #################
+if (ENABLE_RECENT-EVENTS-PLUGIN)
+ message (STATUS "> Recent-Events:")
+ pkg_check_modules ("RECENT_EVENTS" REQUIRED "zeitgeist-1.0")
+ set (GETTEXT_RECENT_EVENTS ${GETTEXT_PLUGINS})
+ set (VERSION_RECENT_EVENTS "1.0.1")
+ set (PACKAGE_RECENT_EVENTS "cd-Recent-Events")
+ set (with_recent_events "yes")
+ set (recent_eventsdatadir "${pluginsdatadir}/Recent-Events")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Recent-Events/data/Recent-Events.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Recent-Events/data/Recent-Events.conf)
+ add_subdirectory ("Recent-Events")
+else()
+ set (with_recent_events "no")
+endif()
+
+############# REMOTE_CONTROL #################
+if (ENABLE_REMOTE-CONTROL-PLUGIN)
+ message (STATUS "> Remote Control:")
+ set (GETTEXT_REMOTE_CONTROL ${GETTEXT_PLUGINS})
+ set (VERSION_REMOTE_CONTROL "1.0.0")
+ set (PACKAGE_REMOTE_CONTROL "cd-Remote-Control")
+ set (remote_controldatadir "${pluginsdatadir}/Remote-Control")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Remote-Control/data/Remote-Control.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Remote-Control/data/Remote-Control.conf)
+ add_subdirectory (Remote-Control)
+ set (enable-remote-control-plugin "yes")
+else()
+ set (enable-remote-control-plugin "no")
+endif()
+
+############# RSSREADER #################
+if (ENABLE_RSSREADER-PLUGIN)
+ message (STATUS "> RSSreader:")
+ set (GETTEXT_RSS_READER ${GETTEXT_PLUGINS})
+ set (VERSION_RSS_READER "1.0.5")
+ set (PACKAGE_RSS_READER "cd-rssreader")
+ set (rss_readerdatadir "${pluginsdatadir}/RSSreader")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/RSSreader/data/RSSreader.conf.in ${CMAKE_CURRENT_BINARY_DIR}/RSSreader/data/RSSreader.conf)
+ add_subdirectory (RSSreader)
+ set (enable-rssreader-plugin "yes")
+else()
+ set (enable-rssreader-plugin "no")
+endif()
+
+############# SCOOBY_DO #################
+if (ENABLE_SCOOBY-DO-PLUGIN)
+ message (STATUS "> Scooby-Do:")
+ set (GETTEXT_SCOOBY_DO ${GETTEXT_PLUGINS})
+ set (VERSION_SCOOBY_DO "0.1.1")
+ set (PACKAGE_SCOOBY_DO "cd-scooby-do")
+ set (with_scooby_do "yes")
+ set (scooby_dodatadir "${pluginsdatadir}/Scooby-Do")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Scooby-Do/data/Scooby-Do.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Scooby-Do/data/Scooby-Do.conf)
+ add_subdirectory (Scooby-Do)
+else()
+ set (with_scooby_do "no")
+endif()
+
+############# STACK #################
+if (ENABLE_STACK-PLUGIN)
+ message (STATUS "> Stack:")
+ set (GETTEXT_STACK ${GETTEXT_PLUGINS})
+ set (VERSION_STACK "0.3.3")
+ set (PACKAGE_STACK "cd-stack")
+ set (stackdatadir "${pluginsdatadir}/stack")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/stack/data/stack.conf.in ${CMAKE_CURRENT_BINARY_DIR}/stack/data/stack.conf)
+ add_subdirectory (stack)
+ set (enable-stack-plugin "yes")
+else()
+ set (enable-stack-plugin "no")
+endif()
+
+############# STATUS NOTIFIER #################
+if (ENABLE_STATUS-NOTIFIER-PLUGIN)
+ message (STATUS "> Status Notifier:")
+ if ("${gtkversion}" STREQUAL "2")
+ set (DBUSMENU_GTK_MODULE dbusmenu-gtk-0.4)
+ else()
+ set (DBUSMENU_GTK_MODULE dbusmenu-gtk3-0.4)
+ endif()
+ pkg_check_modules ("DBUSMENU_GTK" REQUIRED "${DBUSMENU_GTK_MODULE}")
+ set (GETTEXT_STATUS_NOTIFIER ${GETTEXT_PLUGINS})
+ set (VERSION_STATUS_NOTIFIER "0.1.6")
+ set (PACKAGE_STATUS_NOTIFIER "cd-status-notifier")
+ set (with_status_notifier "yes")
+ set (status_notifierdatadir "${pluginsdatadir}/Status-Notifier")
+ set (INDICATOR_OLD_NAMES 0)
+ set (INDICATOR_APPLICATIONADDED_HAS_TITLE 0)
+ set (INDICATOR_APPLICATIONADDED_HAS_HINT 1)
+ message (STATUS " ApplicationAdded signal has 'Hint' = ${INDICATOR_APPLICATIONADDED_HAS_HINT}")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Status-Notifier/data/Status-Notifier.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Status-Notifier/data/Status-Notifier.conf)
+ add_subdirectory (Status-Notifier)
+else()
+ set (with_status_notifier "no")
+endif()
+
+############# SYSTEM MONITOR #################
+if (ENABLE_SYSTEM-MONITOR-PLUGIN)
+ message (STATUS "> System Monitor:")
+ if (WITH_SENSORS-SUPPORT)
+ find_package (Sensors)
+ if (NOT "${SENSORS_FOUND}" STREQUAL "TRUE")
+ message (FATAL_ERROR "Could not find libsensors!")
+ endif()
+ set (with_sensors "yes")
+ else()
+ set (with_sensors "no")
+ endif()
+ set (GETTEXT_SYSTEM_MONITOR ${GETTEXT_PLUGINS})
+ set (VERSION_SYSTEM_MONITOR "1.0.11")
+ set (PACKAGE_SYSTEM_MONITOR "cd-system-monitor")
+ set (system_monitordatadir "${pluginsdatadir}/System-monitor")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/System-Monitor/data/System-Monitor.conf.in ${CMAKE_CURRENT_BINARY_DIR}/System-Monitor/data/System-Monitor.conf)
+ add_subdirectory (System-Monitor)
+ set (enable-system-monitor-plugin "yes")
+else()
+ set (enable-system-monitor-plugin "no")
+endif()
+
+############# SYSTRAY #################
+if (ENABLE_SYSTRAY-PLUGIN)
+ message (STATUS "> Systray:")
+ set (GETTEXT_SYSTRAY ${GETTEXT_PLUGINS})
+ set (VERSION_SYSTRAY "0.2.4")
+ set (PACKAGE_SYSTRAY "cd-systray")
+ set (systraydatadir "${pluginsdatadir}/systray")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/systray/data/systray.conf.in ${CMAKE_CURRENT_BINARY_DIR}/systray/data/systray.conf)
+ add_subdirectory (systray)
+ set (enable-systray-plugin "yes")
+else()
+ set (enable-systray-plugin "no")
+endif()
+
+############# TOMBOY #################
+if (ENABLE_TOMBOY-PLUGIN)
+ message (STATUS "> Tomboy:")
+ set (GETTEXT_TOMBOY ${GETTEXT_PLUGINS})
+ set (VERSION_TOMBOY "1.3.3")
+ set (PACKAGE_TOMBOY "cd-tomboy")
+ set (tomboydatadir "${pluginsdatadir}/tomboy")
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/tomboy/data/tomboy.conf.in ${CMAKE_CURRENT_BINARY_DIR}/tomboy/data/tomboy.conf)
+ add_subdirectory (tomboy)
+ set (enable-tomboy-plugin "yes")
+else()
+ set (enable-tomboy-plugin "no")
+endif()
+
+message ("")
+message (STATUS "===============")
+message (STATUS "Plug-ins build:")
+message (STATUS "===============")
+message ("")
+message (STATUS "Good:")
+message (STATUS " Plug-ins:")
+message (STATUS " - with Composite Manager applet: ${enable-composite-manager-plugin}")
+message (STATUS " - with DND2Share applet: ${enable-dnd2share-plugin}")
+message (STATUS " - with Folders applet: ${enable-folders-plugin}")
+message (STATUS " - with Impulse applet: ${with_impulse}")
+message (STATUS " - with Keyboard-indicator applet: ${with_keyboard_indicator}")
+message (STATUS " - with Mail applet: ${with_mail}")
+message (STATUS " - with Musicplayer applet: ${enable-musicplayer-plugin}")
+message (STATUS " - with Recent-Events applet: ${with_recent_events}")
+message (STATUS " - with Remote Control applet: ${enable-remote-control-plugin}")
+message (STATUS " - with RSS Reader applet: ${enable-rssreader-plugin}")
+message (STATUS " - with Stack applet: ${enable-stack-plugin}")
+message (STATUS " - with Status-Notifier applet: ${with_status_notifier}")
+message (STATUS " - with System Monitor applet: ${enable-system-monitor-plugin}")
+message (STATUS " - with Systray applet: ${enable-systray-plugin}")
+message (STATUS " - with Tomboy applet: ${enable-tomboy-plugin}")
+message (STATUS "Add On:")
+message (STATUS " - with FFTW3 support: ${with_fftw3}")
+message (STATUS " - with Sensors support: ${with_sensors}")
+message ("")