aboutsummaryrefslogtreecommitdiff
path: root/ports/libfreenect2
diff options
context:
space:
mode:
authorJackBoosY <yuzaiyang@beyondsoft.com>2020-01-13 23:55:59 -0800
committerJackBoosY <yuzaiyang@beyondsoft.com>2020-01-13 23:55:59 -0800
commit2514481b42ebdeec28649582fc666955cf206c84 (patch)
tree60c9809a5c3c8adbad240a40b1088a6f8e42c019 /ports/libfreenect2
parentb751326c91c9a307aaf5e340b61ab9f2d1ad45a4 (diff)
parent28eee51adb36f2165be846e77ef7b3ee5b3f8789 (diff)
downloadvcpkg-2514481b42ebdeec28649582fc666955cf206c84.tar.gz
vcpkg-2514481b42ebdeec28649582fc666955cf206c84.zip
Merge branch 'master' of https://github.com/Microsoft/vcpkg into dev/jack/upgrade_libi
Diffstat (limited to 'ports/libfreenect2')
-rw-r--r--ports/libfreenect2/CONTROL11
-rw-r--r--ports/libfreenect2/portfile.cmake7
2 files changed, 17 insertions, 1 deletions
diff --git a/ports/libfreenect2/CONTROL b/ports/libfreenect2/CONTROL
index 6734e25cc..b24480c83 100644
--- a/ports/libfreenect2/CONTROL
+++ b/ports/libfreenect2/CONTROL
@@ -1,5 +1,14 @@
Source: libfreenect2
-Version: 0.2.0-3
+Version: 0.2.0-4
Build-Depends: libusb, libjpeg-turbo
Homepage: https://github.com/OpenKinect/libfreenect2
Description: Open source drivers for the Kinect for Windows v2 device
+Default-Features: opengl
+
+Feature: opengl
+Description: OpenGL support for libfreenect2
+Build-Depends: opengl, glfw3
+
+Feature: opencl
+Description: OpenCL support for libfreenect2
+Build-Depends: opencl
diff --git a/ports/libfreenect2/portfile.cmake b/ports/libfreenect2/portfile.cmake
index 9ca8867fb..ff1ef220b 100644
--- a/ports/libfreenect2/portfile.cmake
+++ b/ports/libfreenect2/portfile.cmake
@@ -18,11 +18,18 @@ string(REPLACE "(WIN32)"
"(WIN32_DISABLE)" EXAMPLECMAKE "${EXAMPLECMAKE}")
file(WRITE ${SOURCE_PATH}/examples/CMakeLists.txt "${EXAMPLECMAKE}")
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ opengl ENABLE_OPENGL
+ opencl ENABLE_OPENCL
+)
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DENABLE_CUDA=OFF
+ # FEATURES
+ ${FEATURE_OPTIONS}
)
vcpkg_install_cmake()