diff options
author | gregory guy <[email protected]> | 2021-03-07 16:01:25 +0100 |
---|---|---|
committer | gregory guy <[email protected]> | 2021-03-07 16:01:25 +0100 |
commit | d1e1f1777ffed5c45cd8e6db02721c8010125f47 (patch) | |
tree | 717b1aa72d130da5163e88513bef5995ad461637 /ConfigureChecks.cmake | |
parent | da8adb11f557e819b2e1ddae0c7492176626bf08 (diff) | |
download | kaffeine-d1e1f1777ffed5c45cd8e6db02721c8010125f47.tar.gz kaffeine-d1e1f1777ffed5c45cd8e6db02721c8010125f47.zip |
Drop automake build support.
Add basic cmake build instructions.
Some doc files have moved at the root of the module.
Rework of the README and help page.
Deleted file BUGS.
Update some cmake files with latest macros.
Few cosmetics.
Signed-off-by: gregory guy <[email protected]>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 5781cf7..b3becf2 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -44,11 +44,11 @@ endif() ##### check for libcdio vs cdparanoia -pkg_search_module( CDIO_CDDA libcdio_cdda ) +pkg_search_module( CDIO_CDDA libcdio_cdda ) pkg_search_module( CDIO_PARANOIA libcdio_paranoia ) - check_include_file( "cdio/paranoia/cdda.h" HAVE_LIBCDIO_090 ) check_include_file( "cdio/cdda.h" HAVE_CDPARANOIA ) + if( (NOT HAVE_LIBCDIO_090) AND (NOT HAVE_CDPARANOIA) ) tde_message_fatal( "libcdio >= 0.90 or cdparanoia are required but were not found on your system." ) endif() @@ -63,7 +63,7 @@ if( XINE_FOUND ) set( XINE_PARAM_GAPLESS_SWITCH 1 ) set( XINE_PARAM_EARLY_FINISHED_EVENT 1 ) endif() - else() + else() tde_message_fatal( "Xine support has been requested but libxine was not found on your system." ) endif() @@ -71,94 +71,94 @@ endif() ##### check for xinerama if( WITH_XINERAMA ) -if( X11_Xinerama_FOUND ) - set( HAVE_XINERAMA 1) - else() - tde_message_fatal( "Xinerama support has been requested but was not found on your system." ) -endif() + if( X11_Xinerama_FOUND ) + set( HAVE_XINERAMA 1) + else() + tde_message_fatal( "Xinerama support has been requested but was not found on your system." ) + endif() endif( WITH_XINERAMA ) ##### check for xcb if( WITH_XCB ) -pkg_search_module( XCB xcb ) + pkg_search_module( XCB xcb ) -if( XCB_FOUND ) - set( HAVE_XCB 1 ) - else() - tde_message_fatal( "Xcb support has been requested but was not found on your system." ) -endif() + if( XCB_FOUND ) + set( HAVE_XCB 1 ) + else() + tde_message_fatal( "Xcb support has been requested but was not found on your system." ) + endif() endif( WITH_XCB ) ##### check for dpms(X11) if( WITH_DPMS ) -if( X11_dpms_FOUND ) - set( HAVE_DPMS 1 ) - else() - tde_message_fatal( "Dpms support has been requested but was not found on your system." ) -endif() + if( X11_dpms_FOUND ) + set( HAVE_DPMS 1 ) + else() + tde_message_fatal( "Dpms support has been requested but was not found on your system." ) + endif() endif( WITH_DPMS ) ##### check for XTest if( WITH_XTEST ) -if( X11_XTest_FOUND ) - set( HAVE_XTEST 1 ) - else() - tde_message_fatal( "XTest support has been requested but was not found on your system." ) -endif() + if( X11_XTest_FOUND ) + set( HAVE_XTEST 1 ) + else() + tde_message_fatal( "XTest support has been requested but was not found on your system." ) + endif() endif( WITH_XTEST ) ##### check for gstreamer if( WITH_GSTREAMER ) -pkg_search_module( GST gstreamer-1.0>=1.0.0 gstreamer-0.10>=0.10.0 ) -if( NOT GST_FOUND ) - tde_message_fatal( "gstreamer support has been requested but neither gstreamer-1.0 or gstreamer-0.10 were found on your system." ) -endif() + pkg_search_module( GST gstreamer-1.0>=1.0.0 gstreamer-0.10>=0.10.0 ) + if( NOT GST_FOUND ) + tde_message_fatal( "gstreamer support has been requested but neither gstreamer-1.0 or gstreamer-0.10 were found on your system." ) + endif() -if( ${GST_VERSION} GREATER "0.11.0" ) - pkg_search_module( GSTREAMER_VIDEO gstreamer-video-1.0 ) - pkg_search_module( GSTREAMER_PLUGIN gstreamer-plugins-base-1.0 ) -else() - pkg_search_module( GSTREAMER_VIDEO gstreamer-interfaces-0.10 ) - pkg_search_module( GSTREAMER_PLUGIN gstreamer-plugins-base-0.10 ) -endif() + if( ${GST_VERSION} GREATER "0.11.0" ) + pkg_search_module( GSTREAMER_VIDEO gstreamer-video-1.0 ) + pkg_search_module( GSTREAMER_PLUGIN gstreamer-plugins-base-1.0 ) + else() + pkg_search_module( GSTREAMER_VIDEO gstreamer-interfaces-0.10 ) + pkg_search_module( GSTREAMER_PLUGIN gstreamer-plugins-base-0.10 ) + endif() -message( STATUS "gstreamer version: ${GST_VERSION}" ) -message( STATUS "gstreamer video version: ${GSTREAMER_VIDEO_VERSION}" ) -message( STATUS "gstreamer plugins version: ${GSTREAMER_PLUGIN_VERSION}" ) + message( STATUS "gstreamer version: ${GST_VERSION}" ) + message( STATUS "gstreamer video version: ${GSTREAMER_VIDEO_VERSION}" ) + message( STATUS "gstreamer plugins version: ${GSTREAMER_PLUGIN_VERSION}" ) endif( WITH_GSTREAMER ) ##### check for lame if( WITH_LAME ) -find_path( LAME_INCLUDE_DIR "lame/lame.h" ) -find_library( LAME_LIBRARIES mp3lame ) -message( STATUS "Found Lame includes directory: ${LAME_INCLUDE_DIR}" ) + find_path( LAME_INCLUDE_DIR "lame/lame.h" ) + find_library( LAME_LIBRARIES mp3lame ) + message( STATUS "Found Lame includes directory: ${LAME_INCLUDE_DIR}" ) -if( NOT LAME_INCLUDE_DIR OR NOT LAME_LIBRARIES ) - tde_message_fatal( "Lame support has been requested but lame was not found on your system." ) -endif() + if( NOT LAME_INCLUDE_DIR OR NOT LAME_LIBRARIES ) + tde_message_fatal( "Lame support has been requested but lame was not found on your system." ) + endif() endif( WITH_LAME ) ##### check for ogg and vorbis if( WITH_OGGVORBIS ) -pkg_search_module( OGG ogg ) -pkg_search_module( VORBIS vorbis ) -pkg_search_module( VORBISENC vorbisenc ) + pkg_search_module( OGG ogg ) + pkg_search_module( VORBIS vorbis ) + pkg_search_module( VORBISENC vorbisenc ) -if( (NOT VORBISENC_FOUND) OR (NOT OGG_FOUND) ) - tde_message_fatal( "oggvorbis support has been requested but neither ogg or vorbis were not found on your system" ) -endif() + if( (NOT VORBISENC_FOUND) OR (NOT OGG_FOUND) ) + tde_message_fatal( "oggvorbis support has been requested but neither ogg or vorbis were not found on your system" ) + endif() endif( WITH_OGGVORBIS ) |