aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarryIII <33021067+LarryIII@users.noreply.github.com>2019-05-02 02:54:01 +0800
committerPhil Christensen <philc@microsoft.com>2019-05-01 11:54:01 -0700
commit1e0b106d15c9b5d3f3d5914fa7c01d43260c7700 (patch)
tree417618119bd7bde84d593ae932db55e75077c489
parente03ee9cacefd69a023ee9748768176a08d6216fd (diff)
downloadvcpkg-1e0b106d15c9b5d3f3d5914fa7c01d43260c7700.tar.gz
vcpkg-1e0b106d15c9b5d3f3d5914fa7c01d43260c7700.zip
[Live555]Update version to 'latest' (#6267)
-rw-r--r--ports/live555/CONTROL2
-rw-r--r--ports/live555/portfile.cmake35
2 files changed, 21 insertions, 16 deletions
diff --git a/ports/live555/CONTROL b/ports/live555/CONTROL
index 1a59ed6e7..39c8e4a65 100644
--- a/ports/live555/CONTROL
+++ b/ports/live555/CONTROL
@@ -1,3 +1,3 @@
Source: live555
-Version: 2019.03.06
+Version: latest
Description: A complete RTSP server application
diff --git a/ports/live555/portfile.cmake b/ports/live555/portfile.cmake
index c10607d68..d11ee6081 100644
--- a/ports/live555/portfile.cmake
+++ b/ports/live555/portfile.cmake
@@ -3,38 +3,43 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
set(VCPKG_LIBRARY_LINKAGE "static")
endif()
-# The current Live555 version from http://www.live555.com/liveMedia/public/live.2019.03.06
-set(LIVE_VERSION 2019.03.06)
+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()
include(vcpkg_common_functions)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/${LIVE_VERSION}/live)
+
+set(LIVE_VERSION latest)
+
vcpkg_download_distfile(ARCHIVE
- URLS "http://www.live555.com/liveMedia/public/live.${LIVE_VERSION}.tar.gz"
- FILENAME "live555-${LIVE_VERSION}.tar.gz"
- SHA512 cf3cbf57ec43d392fa82f06bd02f6d829208c9a9ec1c505d9eb6c5e2dd3393bbd8829b6216163deb8ea8356c180f30f610a639044a6941df5c9a92f29d4f1a75
+ URLS "http://www.live555.com/liveMedia/public/live555-${LIVE_VERSION}.tar.gz"
+ FILENAME "live555-${LIVE_VERSION}.tar.gz"
+ SKIP_SHA512
)
-vcpkg_extract_source_archive(${ARCHIVE} ${CURRENT_BUILDTREES_DIR}/src/${LIVE_VERSION})
+vcpkg_extract_source_archive_ex(
+ OUT_SOURCE_PATH SOURCE_PATH
+ ARCHIVE ${ARCHIVE}
+)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
vcpkg_configure_cmake(
- SOURCE_PATH ${SOURCE_PATH}
- PREFER_NINJA
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
)
vcpkg_install_cmake()
file(GLOB HEADERS
- "${SOURCE_PATH}/BasicUsageEnvironment/include/*.h*"
- "${SOURCE_PATH}/groupsock/include/*.h*"
- "${SOURCE_PATH}/liveMedia/include/*.h*"
- "${SOURCE_PATH}/UsageEnvironment/include/*.h*"
+ "${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)
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/live555 RENAME copyright)
vcpkg_copy_pdbs()
-
-