summaryrefslogtreecommitdiff
path: root/audio/kmix-kde4/files/extrapatch-no_alsa
diff options
context:
space:
mode:
Diffstat (limited to 'audio/kmix-kde4/files/extrapatch-no_alsa')
-rw-r--r--audio/kmix-kde4/files/extrapatch-no_alsa20
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/kmix-kde4/files/extrapatch-no_alsa b/audio/kmix-kde4/files/extrapatch-no_alsa
new file mode 100644
index 000000000000..46157620bddf
--- /dev/null
+++ b/audio/kmix-kde4/files/extrapatch-no_alsa
@@ -0,0 +1,20 @@
+--- CMakeLists.txt.orig 2014-07-16 08:24:17 UTC
++++ CMakeLists.txt
+@@ -9,7 +9,7 @@ include(MacroLibrary)
+ # Do not yet REQUIRE Phonon. Hint: As long as we do not find_package(), ${KDE4_PHONON_LIBS} will be empty below, but that should not hurt.
+ #find_package(Phonon REQUIRED)
+
+-find_package(Alsa)
++find_file(CONFIG_ALSA_H_CMAKE config-alsa.h.cmake ${CMAKE_MODULE_PATH})
+
+ set(PA_VER "0.9.16")
+ macro_optional_find_package(PulseAudio "${PA_VER}")
+@@ -20,7 +20,7 @@ macro_optional_find_package(Canberra)
+ macro_log_feature(CANBERRA_FOUND "libcanberra" "libcanberra audio library"
+ "http://0pointer.de/lennart/projects/libcanberra/" FALSE "" "libcanberra is needed for kmix sound feedback")
+
+-alsa_configure_file(${CMAKE_BINARY_DIR}/config-alsa.h)
++configure_file(${CONFIG_ALSA_H_CMAKE} ${CMAKE_BINARY_DIR}/config-alsa.h)
+
+
+ add_definitions (${QT_DEFINITIONS} ${QT_QTDBUS_DEFINITIONS} ${KDE4_DEFINITIONS} )