diff --git a/ports/opencv4/portfile.cmake b/ports/opencv4/portfile.cmake index f951785148..ba24b583a0 100644 --- a/ports/opencv4/portfile.cmake +++ b/ports/opencv4/portfile.cmake @@ -585,6 +585,12 @@ if(VCPKG_TARGET_IS_ANDROID) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/README.android") endif() +if("python" IN_LIST FEATURES) + file(GLOB python_dir LIST_DIRECTORIES true RELATIVE "${CURRENT_PACKAGES_DIR}/lib/" "${CURRENT_PACKAGES_DIR}/lib/python*") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/${python_dir}/site-packages/cv2/typing") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/${python_dir}/site-packages/cv2/typing") +endif() + vcpkg_fixup_pkgconfig() configure_file("${CURRENT_PORT_DIR}/usage.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY) diff --git a/ports/opencv4/vcpkg.json b/ports/opencv4/vcpkg.json index 0889d5bac5..f8908334c5 100644 --- a/ports/opencv4/vcpkg.json +++ b/ports/opencv4/vcpkg.json @@ -1,7 +1,7 @@ { "name": "opencv4", "version": "4.8.0", - "port-version": 1, + "port-version": 2, "description": "computer vision library", "homepage": "https://github.com/opencv/opencv", "license": "Apache-2.0", diff --git a/versions/baseline.json b/versions/baseline.json index b46472ba3f..a0e379afe3 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6014,7 +6014,7 @@ }, "opencv4": { "baseline": "4.8.0", - "port-version": 1 + "port-version": 2 }, "opendnp3": { "baseline": "3.1.1", diff --git a/versions/o-/opencv4.json b/versions/o-/opencv4.json index 702cb338ae..1d1772ded3 100644 --- a/versions/o-/opencv4.json +++ b/versions/o-/opencv4.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "89d6da3b45b7e1667bdc3083f9641e57ad4930a9", + "version": "4.8.0", + "port-version": 2 + }, { "git-tree": "78f4556a682ebb41e2ff3f26090ef51cafe5a66c", "version": "4.8.0",