Ticket #46975: patch-phonon-cmakelists.diff

File patch-phonon-cmakelists.diff, 2.8 KB (added by RJVB (René Bertin), 10 years ago)
  • phonon/CMakeLists.txt

    diff --git phonon/CMakeLists.txt phonon/CMakeLists.txt
    index b6ba4ec..34b417f 100644
    else(KDEBASE_DISABLE_MULTIMEDIA) 
    4747         endif(ALSA_VERSION_STR MATCHES "^1\\.(0\\.(1[4-9]|[2-9][0-9]+)|[1-9][0-9]*\\.)")
    4848      endif(ALSA_VERSION_STR AND NOT WIN32)
    4949   endif(ALSA_FOUND)
    50    if(NOT WIN32)
     50   if(NOT WIN32 AND NOT APPLE)
    5151      add_feature_info("Dmix and virtual device listing" HAVE_CURRENT_ALSA
    5252                       "The ALSA library (http://www.alsa-project.org) is needed for building
    5353                        some additional Phonon features"
    5454                      )
    55    endif(NOT WIN32)
     55   endif(NOT WIN32 AND NOT APPLE)
    5656
    5757   add_subdirectory(kded-module)
    5858   add_subdirectory(platform_kde)
  • phonon/kcm/CMakeLists.txt

    diff --git phonon/kcm/CMakeLists.txt phonon/kcm/CMakeLists.txt
    index 3b421e0..2b3b604 100644
     
    1 macro_optional_find_package(PulseAudio 0.9.16)
    2 set_package_properties(PulseAudio PROPERTIES DESCRIPTION "PulseAudio Audio Server"
    3                        URL "http://www.pulseaudio.org/"
    4                        TYPE OPTIONAL
    5                        PURPOSE "libpulse is needed for audio setup GUI"
    6                       )
    7 
    8 find_package(GLIB2)
    9 set_package_properties(GLIB2 PROPERTIES DESCRIPTION "Low-level core library for data structure handling, portability wrappers, etc."
    10                        URL "http://www.gtk.org"
    11                        TYPE OPTIONAL
    12                       )
    13 
    14 pkg_check_modules(CANBERRA libcanberra)
    15 add_feature_info ("Audio setup GUI" CANBERRA_FOUND
    16                   "libcanberra is needed for audio setup GUI
    17                   * http://0pointer.de/lennart/projects/libcanberra"
    18                  )
     1if(NOT APPLE)
     2    macro_optional_find_package(PulseAudio 0.9.16)
     3    set_package_properties(PulseAudio PROPERTIES DESCRIPTION "PulseAudio Audio Server"
     4                           URL "http://www.pulseaudio.org/"
     5                           TYPE OPTIONAL
     6                           PURPOSE "libpulse is needed for audio setup GUI"
     7                          )
     8
     9    find_package(GLIB2)
     10    set_package_properties(GLIB2 PROPERTIES DESCRIPTION "Low-level core library for data structure handling, portability wrappers, etc."
     11                           URL "http://www.gtk.org"
     12                           TYPE OPTIONAL
     13                          )
     14
     15    pkg_check_modules(CANBERRA libcanberra)
     16    add_feature_info ("Audio setup GUI" CANBERRA_FOUND
     17                      "libcanberra is needed for audio setup GUI
     18                      * http://0pointer.de/lennart/projects/libcanberra"
     19                     )
     20endif(NOT APPLE)
    1921
    2022set(kcmphonon_SRCS main.cpp devicepreference.cpp backendselection.cpp)
    2123kde4_add_ui_files(kcmphonon_SRCS devicepreference.ui backendselection.ui)