File fix-srtp2-linphone.patch of Package mediastreamer2
diff -ru a/cmake/FindSRTP.cmake b/cmake/FindSRTP.cmake
--- a/cmake/FindSRTP.cmake 2021-07-14 14:31:46.031361567 +0200
+++ b/cmake/FindSRTP.cmake 2021-07-14 14:32:38.611583565 +0200
@@ -31,7 +31,7 @@
)
find_path(SRTP2_INCLUDE_DIRS
- NAMES srtp2/srtp.h
+ NAMES srtp2-linphone/srtp.h
HINTS _SRTP_ROOT_PATHS
PATH_SUFFIXES include
)
@@ -41,7 +41,7 @@
set(SRTP_INCLUDE_DIRS ${SRTP2_INCLUDE_DIRS})
set(SRTP_VERSION 2)
find_library(SRTP_LIBRARIES
- NAMES srtp2
+ NAMES srtp2-linphone
HINTS ${_SRTP_ROOT_PATHS}
PATH_SUFFIXES bin lib
)
diff -ru a/src/utils/srtp_prefix.h b/src/utils/srtp_prefix.h
--- a/src/utils/srtp_prefix.h 2021-07-14 14:31:46.047361634 +0200
+++ b/src/utils/srtp_prefix.h 2021-07-14 14:32:24.935525820 +0200
@@ -32,7 +32,7 @@
#elif SRTP_VERSION==1
#include <srtp/srtp.h>
#else
-#include <srtp2/srtp.h>
+#include <srtp2-linphone/srtp.h>
#endif
#if SRTP_VERSION==2