-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
101 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
MACOSX_SDK_VERSION: # [osx and x86_64] | ||
- "10.13" # [osx and x86_64] | ||
MACOSX_DEPLOYMENT_TARGET: # [osx and x86_64] | ||
- "10.13" # [osx and x86_64] | ||
MACOSX_SDK_VERSION: # [osx and x86_64 and qt_version!=6] | ||
- "10.13" # [osx and x86_64 and qt_version!=6] | ||
MACOSX_DEPLOYMENT_TARGET: # [osx and x86_64 and qt_version!=6] | ||
- "10.13" # [osx and x86_64 and qt_version==none] | ||
- "10.13" # [osx and x86_64 and qt_version==5] | ||
|
||
# https://doc.qt.io/qt-6/macos.html | ||
MACOSX_DEPLOYMENT_TARGET: # [osx and qt_version == 6] | ||
- '11.0' # [osx and qt_version == 6] | ||
MACOSX_SDK_VERSION: # [osx and qt_version == 6] | ||
- '12.3' # [osx and qt_version == 6] | ||
|
||
qt_version: | ||
- none | ||
- 5 # [not ppc64le] | ||
- 6 # [not ppc64le] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
recipe/patches_opencv/0001-Also-install-metadata-for-opencv-python-headless.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
From bab68f46520a60ed4fa6b384fe36d7174183e983 Mon Sep 17 00:00:00 2001 | ||
From: Mark Harfouche <mark.harfouche@gmail.com> | ||
Date: Mon, 11 Mar 2024 22:40:08 -0400 | ||
Subject: [PATCH] Also install metadata for opencv-python-headless | ||
|
||
--- | ||
modules/python/common.cmake | 11 +++++++++++ | ||
1 file changed, 11 insertions(+) | ||
|
||
diff --git a/modules/python/common.cmake b/modules/python/common.cmake | ||
index 88f4189206..f4c8ec7258 100644 | ||
--- a/modules/python/common.cmake | ||
+++ b/modules/python/common.cmake | ||
@@ -252,6 +252,17 @@ if (OPENCV_PYTHON_PIP_METADATA_INSTALL) | ||
FILES "${CMAKE_CURRENT_BINARY_DIR}/METADATA" "${CMAKE_CURRENT_BINARY_DIR}/INSTALLER" | ||
DESTINATION ${OPENCV_PYTHON_INSTALL_PATH}/opencv_python-${OPENCV_VERSION}.dist-info | ||
COMPONENT python) | ||
+ | ||
+ file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/ocvph.dist-info") | ||
+ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/ocvph.dist-info/METADATA "") | ||
+ file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/ocvph.dist-info/METADATA "Metadata-Version: 2.1\n") | ||
+ file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/ocvph.dist-info/METADATA "Name: opencv-python-headless\n") | ||
+ file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/ocvph.dist-info/METADATA "Version: ${OPENCV_VERSION}\n") | ||
+ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/ocvph.dist-info/INSTALLER "${OPENCV_PYTHON_PIP_METADATA_INSTALLER}\n") | ||
+ install( | ||
+ FILES "${CMAKE_CURRENT_BINARY_DIR}/ocvph.dist-info/METADATA" "${CMAKE_CURRENT_BINARY_DIR}/ocvph.dist-info/INSTALLER" | ||
+ DESTINATION ${OPENCV_PYTHON_INSTALL_PATH}/opencv_python_headless-${OPENCV_VERSION}.dist-info | ||
+ COMPONENT python) | ||
endif() | ||
|
||
unset(PYTHON_SRC_DIR) | ||
-- | ||
2.43.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
mesa-libGL | ||
mesa-libEGL | ||
libglvnd-glx | ||
libglvnd-opengl |