vcpkg/ports/live555/portfile.cmake

37 lines
1.0 KiB
CMake
Raw Normal View History

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2018-02-24 15:00:39 +08:00
vcpkg_download_distfile(ARCHIVE
URLS "http://live555.com/liveMedia/public/live.2024.05.15.tar.gz"
FILENAME "live.2024.05.15.tar.gz"
SHA512 55d6f2610bd5d99c5f369be00fa0480b10543845c1b3928a76b1fc648fb70e3abc5e55224ff4fb00a788d7c63f3126d180c279d6d5faad72e52019a88f743a37
)
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")