aboutsummaryrefslogtreecommitdiff
path: root/ports/azure-kinect-sensor-sdk
diff options
context:
space:
mode:
Diffstat (limited to 'ports/azure-kinect-sensor-sdk')
-rw-r--r--ports/azure-kinect-sensor-sdk/add-MATROSKA_VERSION-define.patch12
-rw-r--r--ports/azure-kinect-sensor-sdk/portfile.cmake1
2 files changed, 13 insertions, 0 deletions
diff --git a/ports/azure-kinect-sensor-sdk/add-MATROSKA_VERSION-define.patch b/ports/azure-kinect-sensor-sdk/add-MATROSKA_VERSION-define.patch
new file mode 100644
index 000000000..d715cf599
--- /dev/null
+++ b/ports/azure-kinect-sensor-sdk/add-MATROSKA_VERSION-define.patch
@@ -0,0 +1,12 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 58a092e..ed4a6d2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -107,6 +107,7 @@ find_package(EBML CONFIG REQUIRED)
+ find_package(JPEG REQUIRED)
+ find_library(JPEG_TURBO turbojpeg REQUIRED)
+ find_package(Matroska CONFIG REQUIRED)
++add_definitions(-DMATROSKA_VERSION=2)
+ find_package(libsoundio CONFIG REQUIRED)
+ find_library(LibUSB libusb-1.0 REQUIRED)
+ find_package(libyuv CONFIG REQUIRED)
diff --git a/ports/azure-kinect-sensor-sdk/portfile.cmake b/ports/azure-kinect-sensor-sdk/portfile.cmake
index a7604a7ba..5c6a189ee 100644
--- a/ports/azure-kinect-sensor-sdk/portfile.cmake
+++ b/ports/azure-kinect-sensor-sdk/portfile.cmake
@@ -9,6 +9,7 @@ vcpkg_from_github(
fix-builds.patch
disable-c4275.patch
fix-dependency-imgui.patch
+ add-MATROSKA_VERSION-define.patch
)
vcpkg_find_acquire_program(PYTHON3)