aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjasjuang <jasjuang@gmail.com>2018-01-24 21:49:13 -0800
committerjasjuang <jasjuang@gmail.com>2018-01-24 21:49:13 -0800
commitd0897e726d7e0809cab6fbadbfa3ccceec8bb502 (patch)
tree076072f1c68db6eb8a6ccd50cc26a33b0af0d8bc
parent9e0e0ebe6232303a9de41d0ae5f2167ad4a7382f (diff)
downloadvcpkg-d0897e726d7e0809cab6fbadbfa3ccceec8bb502.tar.gz
vcpkg-d0897e726d7e0809cab6fbadbfa3ccceec8bb502.zip
[openvr] update to 1.0.12 and use vcpkg_from_github
-rw-r--r--ports/openvr/CONTROL2
-rw-r--r--ports/openvr/portfile.cmake21
2 files changed, 8 insertions, 15 deletions
diff --git a/ports/openvr/CONTROL b/ports/openvr/CONTROL
index 69d7ba966..18d040b95 100644
--- a/ports/openvr/CONTROL
+++ b/ports/openvr/CONTROL
@@ -1,3 +1,3 @@
Source: openvr
-Version: 1.0.9
+Version: 1.0.12
Description: an API and runtime that allows access to VR hardware from multiple vendors without requiring that applications have specific knowledge of the hardware they are targeting.
diff --git a/ports/openvr/portfile.cmake b/ports/openvr/portfile.cmake
index 50ec79d77..1a18b4fd0 100644
--- a/ports/openvr/portfile.cmake
+++ b/ports/openvr/portfile.cmake
@@ -1,19 +1,12 @@
-# Common Ambient Variables:
-# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
-# TARGET_TRIPLET is the current triplet (x86-windows, etc)
-# PORT is the current port name (zlib, etc)
-# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
-# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
-#
-
include(vcpkg_common_functions)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/openvr-1.0.9)
-vcpkg_download_distfile(ARCHIVE
- URLS "https://github.com/ValveSoftware/openvr/archive/v1.0.9.zip"
- FILENAME "openvr-v1.0.9.zip"
- SHA512 969cf6bf94802553bb4f1e5d6a2348566847b3d60efee9d8f83233d1d85e44a870e388028be956950d4f8ecb79f8e0bcf0a6b987b0ab3083060ece5ea48b8fa7
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ValveSoftware/openvr
+ REF v1.0.12
+ SHA512 42e6ac8635417fbb2c95a4b290f917d057c0d66ac1e07b4a0d16c4f8197b06c8ebf553299060a7996b5a9b5420f299f2bda257b8133dc99f9441c67331293ad1
+ HEAD_REF master
)
-vcpkg_extract_source_archive(${ARCHIVE})
set(VCPKG_LIBRARY_LINKAGE dynamic)