mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 10:39:08 +08:00
38 lines
1.1 KiB
CMake
38 lines
1.1 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
string(REPLACE "-" "." format_version ${VERSION})
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "http://live555.com/liveMedia/public/live.${format_version}.tar.gz"
|
|
FILENAME "live.${format_version}.tar.gz"
|
|
SHA512 59c36211317dd99d459f454a007a180ad33fdd568974c107caddcbb436f9b9c63fc05858d76bedb7f71b5f43e6850d484a973fd5f9d4acc68fb2b4d0e0de3835
|
|
)
|
|
|
|
vcpkg_extract_source_archive(
|
|
SOURCE_PATH
|
|
ARCHIVE "${ARCHIVE}"
|
|
PATCHES
|
|
fix-RTSPClient.patch
|
|
fix_operator_overload.patch
|
|
)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-live555)
|
|
|
|
file(GLOB HEADERS
|
|
"${SOURCE_PATH}/BasicUsageEnvironment/include/*.h*"
|
|
"${SOURCE_PATH}/groupsock/include/*.h*"
|
|
"${SOURCE_PATH}/liveMedia/include/*.h*"
|
|
"${SOURCE_PATH}/UsageEnvironment/include/*.h*"
|
|
)
|
|
|
|
file(COPY ${HEADERS} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|