diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libsrtp/portfile.cmake | |
Diffstat (limited to 'vcpkg/ports/libsrtp/portfile.cmake')
| -rw-r--r-- | vcpkg/ports/libsrtp/portfile.cmake | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/libsrtp/portfile.cmake b/vcpkg/ports/libsrtp/portfile.cmake new file mode 100644 index 0000000..a5f8043 --- /dev/null +++ b/vcpkg/ports/libsrtp/portfile.cmake @@ -0,0 +1,30 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO cisco/libsrtp
+ REF "v${VERSION}"
+ SHA512 eb42cc1755acd5677351fc058e2f45314ba66b590bce80944ea12aa3780953ce4c1c6211979729304d753e6c0fd325647adafc38c20c6af8482ce6f552022896
+ PATCHES
+ cmake-config.diff
+ fix-runtime-destination.patch
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ openssl ENABLE_OPENSSL
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ "-DCMAKE_PROJECT_INCLUDE=${CMAKE_CURRENT_LIST_DIR}/cmake-project-include.cmake"
+ -DLIBSRTP_TEST_APPS=OFF
+ ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libSRTP)
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|