2014-09-01 00:42:49 +00:00
|
|
|
--- cmake/Modules/FindPortaudio.cmake.orig 2014-05-16 18:55:22.000000000 -0400
|
|
|
|
+++ cmake/Modules/FindPortaudio.cmake 2014-08-04 21:57:47.000000000 -0400
|
|
|
|
@@ -8,6 +8,15 @@
|
2012-12-09 20:19:41 +00:00
|
|
|
include(FindPkgConfig)
|
2014-09-01 00:42:49 +00:00
|
|
|
pkg_check_modules(PC_PORTAUDIO portaudio-2.0)
|
|
|
|
|
2012-12-09 20:19:41 +00:00
|
|
|
+if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
2014-09-01 00:42:49 +00:00
|
|
|
+ message("--- Using Portaudio2 for FreeBSD")
|
|
|
|
+ set(PORTAUDIO_FOUND_TRUE)
|
|
|
|
+ set(PORTAUDIO_INCLUDE_DIRS "/usr/local/include/portaudio2")
|
|
|
|
+ set(PORTAUDIO_LIBRARIES "/usr/local/lib/portaudio2/libportaudio.so")
|
|
|
|
+ mark_as_advanced(PORTAUDIO_INCLUDE_DIRS PORTAUDIO_LIBRARIES)
|
|
|
|
+ INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
+ FIND_PACKAGE_HANDLE_STANDARD_ARGS(PORTAUDIO DEFAULT_MSG PORTAUDIO_INCLUDE_DIRS PORTAUDIO_LIBRARIES)
|
2012-12-09 20:19:41 +00:00
|
|
|
+else()
|
|
|
|
find_path(PORTAUDIO_INCLUDE_DIRS
|
|
|
|
NAMES
|
2014-09-01 00:42:49 +00:00
|
|
|
portaudio.h
|
|
|
|
@@ -50,3 +59,6 @@
|
|
|
|
set(PORTAUDIO_FOUND FALSE)
|
|
|
|
endif(PORTAUDIO2_FOUND)
|
|
|
|
endif()
|
|
|
|
+
|
2012-12-09 20:19:41 +00:00
|
|
|
+endif()
|
2014-09-01 00:42:49 +00:00
|
|
|
+
|