diff options
author | Slávek Banko <[email protected]> | 2013-09-08 18:28:31 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-09-08 18:28:31 +0200 |
commit | f22daba70bfea7dbe9c73c330a508f417eead512 (patch) | |
tree | d3b49f25a2b69aec5d6e7c057cfdc5a23f2732c8 /CMakeLists.txt | |
parent | 284b82a9afeffec61db83f51ef04e3a600cd9a90 (diff) | |
download | arts-f22daba70bfea7dbe9c73c330a508f417eead512.tar.gz arts-f22daba70bfea7dbe9c73c330a508f417eead512.zip |
Add requires to pkgconfig file
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c122548..ad4f028 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,6 +226,34 @@ configure_file( config.h.cmake config.h @ONLY ) ##### write pkgconfig file ###################### +set( PC_LIB_REQUIRE "" ) +if( WITH_ALSA ) + list( APPEND PC_LIB_REQUIRE "alsa" ) +endif( WITH_ALSA ) +if( WITH_AUDIOFILE ) + list( APPEND PC_LIB_REQUIRE "audiofile" ) +endif( WITH_AUDIOFILE ) +if( WITH_VORBIS ) + list( APPEND PC_LIB_REQUIRE "vorbis" ) + list( APPEND PC_LIB_REQUIRE "vorbisfile" ) +endif( WITH_VORBIS ) +if( WITH_MAD ) + list( APPEND PC_LIB_REQUIRE "mad" ) +endif( WITH_MAD ) +if( WITH_ESOUND ) + list( APPEND PC_LIB_REQUIRE "esound" ) +endif( WITH_ESOUND ) +if( WITH_JACK ) + list( APPEND PC_LIB_REQUIRE "jack" ) +endif( WITH_JACK ) + +list( LENGTH PC_LIB_REQUIRE PC_LIB_REQUIRES_FOUND ) +if( PC_LIB_REQUIRES_FOUND GREATER 0 ) + string( REPLACE ";" " " PC_LIB_REQUIRES "Requires: ${PC_LIB_REQUIRE}" ) +else( ) + set( PC_LIB_REQUIRES "" ) +endif( ) + string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} ) string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_INCLUDE_DIR ${INCLUDE_INSTALL_DIR} ) string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_LIB_DIR ${LIB_INSTALL_DIR} ) |