vcpkg/ports/live555/portfile.cmake
2023-04-04 15:41:15 -07:00

36 lines
1.0 KiB
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_download_distfile(ARCHIVE
URLS "http://live555.com/liveMedia/public/live.2023.03.30.tar.gz"
FILENAME "live.2023.03.30.tar.gz"
SHA512 84dcc9af7fcfd565342b913e8420e2cca9b45e9a8ff74c04ef8e32449f6bbf35eb594ba48ae06d93efe6ec4c3d7c6812ce5989d02676398cdbd63f2ec0042b68
)
vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${ARCHIVE}"
PATCHES
fix-RTSPClient.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")