]> Dogcows Code - chaz/tint2/commitdiff
*fix* update dependencies for tint2 in README.source
authorAndreas Fink <andreas.fink85@googlemail.com>
Wed, 9 Jun 2010 13:50:22 +0000 (13:50 +0000)
committerAndreas Fink <andreas.fink85@googlemail.com>
Wed, 9 Jun 2010 13:50:22 +0000 (13:50 +0000)
*fix* install default_icon.png
*fix* correct checking if imlib2 is built with x support
*fix* use ENABLE_feature, rather than DISABLE_feature

CMakeLists.txt
README.source

index 364af41e0107c10339e9b09cd45212441e76f858..b521e98e14616b379b9e70baa0c36523aeabb80a 100644 (file)
@@ -2,7 +2,7 @@ project( tint2 )
 cmake_minimum_required( VERSION 2.6 )
 
 include( FindPkgConfig )
-include( CheckFunctionExists )
+include( CheckLibraryExists )
 pkg_check_modules( X11 REQUIRED x11 xcomposite xdamage xinerama xrender xrandr )
 pkg_check_modules( PANGOCAIRO REQUIRED pangocairo )
 pkg_check_modules( PANGO REQUIRED pango )
@@ -11,8 +11,7 @@ pkg_check_modules( GLIB2 REQUIRED glib-2.0 )
 pkg_check_modules( GOBJECT2 REQUIRED gobject-2.0 )
 pkg_check_modules( IMLIB2 REQUIRED imlib2 )
 
-set( CMAKE_REQUIRED_FLAGS ${IMLIB2_LDFLAGS} ${IMLIB2_CFLAGS} )
-check_function_exists( imlib_context_set_display IMLIB_BUILD_WITH_X )
+check_library_exists( "${IMLIB2_LIBRARIES}" "imlib_context_set_display" "${IMLIB2_LIBRARY_DIRS}" IMLIB_BUILD_WITH_X )
 if( NOT IMLIB_BUILD_WITH_X )
   message( FATAL_ERROR "Imlib is not build with x support" )
 endif( NOT IMLIB_BUILD_WITH_X )
@@ -46,18 +45,18 @@ set( SOURCES src/config.c
              src/util/timer.c
              src/util/window.c )
 
-option( DISABLE_BATTERY "Disable battery status plugin" OFF )
-option( DISABLE_TINT2CONF "Disable tint2conf build, a GTK+2 theme switcher for tint2" OFF )
+option( ENABLE_BATTERY "Enable battery status plugin" ON )
+option( ENABLE_TINT2CONF "Enable tint2conf build, a GTK+2 theme switcher for tint2" ON )
 option( ENABLE_EXAMPLES "Install additional tin2rc examples" OFF )
 
-if( NOT DISABLE_BATTERY )
+if( ENABLE_BATTERY )
   set( SOURCES ${SOURCES} src/battery/battery.c )
   add_definitions( -DENABLE_BATTERY )
-endif( NOT DISABLE_BATTERY )
+endif( ENABLE_BATTERY )
 
-if( NOT DISABLE_TINT2CONF )
+if( ENABLE_TINT2CONF )
   add_subdirectory( src/tint2conf )
-endif( NOT DISABLE_TINT2CONF )
+endif( ENABLE_TINT2CONF )
 
 
 set( MANDIR ${CMAKE_INSTALL_PREFIX}/share/man CACHE PATH "Directory for man pages" )
@@ -88,6 +87,7 @@ set_target_properties(tint2 PROPERTIES LINK_FLAGS -Wl,--as-needed)
 
 install( TARGETS tint2 DESTINATION bin )
 install( FILES sample/tint2rc DESTINATION ${SYSCONFDIR}/xdg/tint2 )
+install( FILES default_icon.png DESTINATION ${DATADIR}/tint2 )
 install( FILES AUTHORS ChangeLog README DESTINATION ${DOCDIR} )
 if( ENABLE_EXAMPLES )
   file( GLOB SAMPLEFILES sample/*.tint2rc )
index ceeb36c64bfda9f893309ddd33785bcb582ad24e..40b3e02edc83397857c3577fdfca717ee59d782b 100644 (file)
@@ -1,4 +1,4 @@
 DEPENDENCIES:
-cairo (whit X support), pango, glib2, libX11, Xinerama, Xrandr, Xrender, Xcomposite, imlib2 (with X support)
+cairo (whit X support), pango, glib2, libX11, libXinerama, libXrandr, libXrender, libXcomposite, libXdamage imlib2 (with X support)
 you might need -dev packages on debian
 
This page took 0.025916 seconds and 4 git commands to generate.