grknight    15/03/11 01:13:44

  Added:                with-pulseaudio-cmake.patch
  Log:
  Initial commit.  Ebuild written by me with input from bug 511512 and BtbN on 
IRC
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
0xD1F781EFF9F4A3B6)

Revision  Changes    Path
1.1                  
www-plugins/freshplayerplugin/files/with-pulseaudio-cmake.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/freshplayerplugin/files/with-pulseaudio-cmake.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/freshplayerplugin/files/with-pulseaudio-cmake.patch?rev=1.1&content-type=text/plain

Index: with-pulseaudio-cmake.patch
===================================================================
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})




Reply via email to