2019-10-29 02:23:21 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Haivision/srt
|
2022-08-09 03:08:40 +08:00
|
|
|
REF v1.5.0
|
|
|
|
SHA512 68ab5fe316cfbbbba31b5b2354f657e23c90e14674f8dac01df2bf98c4776a7fafcd690a4dfad3a340e6be577a22360ca04ef2397c8a0dd507adebdd54dc22fb
|
2019-10-29 02:23:21 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES fix-dependency-install.patch
|
|
|
|
)
|
|
|
|
|
2022-08-09 03:08:40 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" KEYSTONE_BUILD_STATIC)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" KEYSTONE_BUILD_SHARED)
|
2019-10-29 02:23:21 +08:00
|
|
|
|
2021-10-14 05:17:25 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
tool ENABLE_APPS
|
2019-10-29 02:23:21 +08:00
|
|
|
)
|
|
|
|
|
2021-10-14 05:17:25 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-10-29 02:23:21 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2022-08-09 03:08:40 +08:00
|
|
|
-DENABLE_CXX11=ON
|
|
|
|
-DENABLE_SHARED=${KEYSTONE_BUILD_STATIC}
|
|
|
|
-DENABLE_STATIC=${KEYSTONE_BUILD_SHARED}
|
2019-10-29 02:23:21 +08:00
|
|
|
-DENABLE_UNITTESTS=OFF
|
|
|
|
-DUSE_OPENSSL_PC=OFF
|
|
|
|
)
|
|
|
|
|
2021-10-14 05:17:25 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-10-29 02:23:21 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-11-09 12:39:41 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-10-29 02:23:21 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2021-10-14 05:17:25 +08:00
|
|
|
|
2022-08-09 03:08:40 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
endif()
|
|
|
|
|
2022-01-26 02:31:15 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|