You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/www-plugins/freshplayerplugin/files/with-pulseaudio-cmake.patch

28 lines
771 B

diff -aurN a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt 2015-02-15 17:05:40.000000000 -0500
+++ b/CMakeLists.txt 2015-03-10 19:33:48.519110012 -0400
@@ -45,12 +45,18 @@
openssl
REQUIRED)
-pkg_check_modules(PULSEAUDIO libpulse)
+OPTION(WITH_PULSEAUDIO "Enable pulseaudio support" ON)
-if (${PULSEAUDIO_FOUND})
- add_definitions(-DHAVE_PULSEAUDIO=1)
- set(HAVE_PULSEAUDIO 1)
-endif()
+IF(WITH_PULSEAUDIO)
+ pkg_check_modules(PULSEAUDIO libpulse)
+
+ if (${PULSEAUDIO_FOUND})
+ add_definitions(-DHAVE_PULSEAUDIO=1)
+ set(HAVE_PULSEAUDIO 1)
+ else()
+ MESSAGE(FATAL_ERROR "PulseAudio not found")
+ endif()
+ENDIF(WITH_PULSEAUDIO)
include_directories(${REQ_INCLUDE_DIRS})
add_definitions(${REQ_CFLAGS_OTHER})