[live555] Fix install head failed (#22190)

* [live555] Fix install head failed

* update version

* update live555 to the latest version

* update version
This commit is contained in:
JonLiu1993 2021-12-29 07:04:54 +08:00 committed by GitHub
parent 31b4b855b1
commit d0920bbf7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 22 deletions

View File

@ -8,6 +8,10 @@ include_directories(
UsageEnvironment/include
)
if (WIN32)
add_definitions(-DNO_GETIFADDRS)
endif(WIN32)
if (NOT MSVC)
add_compile_options(-DSOCKLEN_T=socklen_t)
endif()

View File

@ -1,16 +1,9 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
if(NOT VCPKG_USE_HEAD_VERSION)
# Live555 only makes the latest releases available for download on their site
message(FATAL_ERROR "Live555 does not have persistent releases. Please re-run the installation with --head.")
endif()
set(LIVE_VERSION latest)
vcpkg_download_distfile(ARCHIVE
URLS "http://www.live555.com/liveMedia/public/live555-${LIVE_VERSION}.tar.gz"
FILENAME "live555-${LIVE_VERSION}.tar.gz"
SKIP_SHA512
URLS "http://www.live555.com/liveMedia/public/live.2021.12.18.tar.gz"
FILENAME "live.2021.12.18.tar.gz"
SHA512 072ae92a1a63687e33c659627fbf562e6f2cdf73cf1c3199959aa3a713636ccd4113d56270c4793c86b42338000f180e16a7b2cf3d893402226a04360f8b2e97
)
vcpkg_extract_source_archive_ex(
@ -20,14 +13,13 @@ vcpkg_extract_source_archive_ex(
fix-RTSPClient.patch
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_install_cmake()
vcpkg_cmake_install()
file(GLOB HEADERS
"${SOURCE_PATH}/BasicUsageEnvironment/include/*.h*"
@ -36,7 +28,7 @@ file(GLOB HEADERS
"${SOURCE_PATH}/UsageEnvironment/include/*.h*"
)
file(COPY ${HEADERS} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(COPY ${HEADERS} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_copy_pdbs()

View File

@ -1,10 +1,17 @@
{
"name": "live555",
"version-string": "latest",
"port-version": 2,
"version-date": "2021-12-18",
"description": "A complete RTSP server application",
"homepage": "https://www.live555.com/liveMedia",
"dependencies": [
"openssl"
"openssl",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -4137,8 +4137,8 @@
"port-version": 2
},
"live555": {
"baseline": "latest",
"port-version": 2
"baseline": "2021-12-18",
"port-version": 0
},
"llfio": {
"baseline": "2.0-20211208",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d2d9c96e8a0fa3a6af648952b384dc53504bf738",
"version-date": "2021-12-18",
"port-version": 0
},
{
"git-tree": "7d349d264f7be8a8802b521fddaa5ad047b48720",
"version-string": "latest",