diff options
| author | Aaron Clauson <aaron@sipsorcery.com> | 2019-09-12 06:34:35 +0100 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2019-09-11 22:34:35 -0700 |
| commit | c85d63bf5afa0166e9003177eeb69a03c18351a4 (patch) | |
| tree | 4f5523eab05f3ae2295203dec39109d6c5cf8ea3 | |
| parent | 793fedd2c51000db05d426c5963eb9181eb6575c (diff) | |
| download | vcpkg-c85d63bf5afa0166e9003177eeb69a03c18351a4.tar.gz vcpkg-c85d63bf5afa0166e9003177eeb69a03c18351a4.zip | |
Port for libsrtp (#8046)
* Port for libsrtp.
* Added compiler flags to fix uwp build.
* Added windows conditional around setting compiler flags.
| -rw-r--r-- | ports/libsrtp/CONTROL | 3 | ||||
| -rw-r--r-- | ports/libsrtp/portfile.cmake | 33 |
2 files changed, 36 insertions, 0 deletions
diff --git a/ports/libsrtp/CONTROL b/ports/libsrtp/CONTROL new file mode 100644 index 000000000..9fa7f4860 --- /dev/null +++ b/ports/libsrtp/CONTROL @@ -0,0 +1,3 @@ +Source: libsrtp
+Version: 2.2.0
+Description: This package provides an implementation of the Secure Real-time Transport Protocol (SRTP), the Universal Security Transform (UST), and a supporting cryptographic kernel.
\ No newline at end of file diff --git a/ports/libsrtp/portfile.cmake b/ports/libsrtp/portfile.cmake new file mode 100644 index 000000000..4d6ec0211 --- /dev/null +++ b/ports/libsrtp/portfile.cmake @@ -0,0 +1,33 @@ +include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO cisco/libsrtp
+ REF 56a065555aea2abddaf9fb60353fe59f277837a3
+ SHA512 59afa25df79f875d28eefe95ef89b5956b1d2f319bba38ec34b832c2faa16b5425aae2f6ad19cf478afe02b28f4032b5dcf20a301d647d897d4577f66ca77376
+)
+
+if (VCPKG_TARGET_IS_WINDOWS)
+ set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS /wd4703")
+ set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS /wd4703")
+endif()
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/srtp2.dll)
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/bin)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/lib/srtp2.dll ${CURRENT_PACKAGES_DIR}/bin/srtp2.dll)
+endif()
+if(EXISTS ${CURRENT_PACKAGES_DIR}/debug/lib/srtp2.dll)
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/bin)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/srtp2.dll ${CURRENT_PACKAGES_DIR}/debug/bin/srtp2.dll)
+endif()
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libsrtp RENAME copyright)
\ No newline at end of file |
