Skip to content

Commit

Permalink
[live555] Fix install head failed (microsoft#22190)
Browse files Browse the repository at this point in the history
* [live555] Fix install head failed

* update version

* update live555 to the latest version

* update version
  • Loading branch information
JonLiu1993 authored Dec 28, 2021
1 parent 31b4b85 commit d0920bb
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 22 deletions.
4 changes: 4 additions & 0 deletions ports/live555/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
26 changes: 9 additions & 17 deletions ports/live555/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -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*"
Expand All @@ -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()
13 changes: 10 additions & 3 deletions ports/live555/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/live555.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d2d9c96e8a0fa3a6af648952b384dc53504bf738",
"version-date": "2021-12-18",
"port-version": 0
},
{
"git-tree": "7d349d264f7be8a8802b521fddaa5ad047b48720",
"version-string": "latest",
Expand Down

0 comments on commit d0920bb

Please sign in to comment.