slackbuilds/python/python3-opencv/no-ADE-download.diff

38 lines
1.2 KiB
Diff

--- opencv/modules/gapi/cmake/DownloadADE.cmake.orig 2022-03-04 16:48:17.000000000 +1000
+++ opencv/modules/gapi/cmake/DownloadADE.cmake 2024-08-19 23:51:02.079316762 +1000
@@ -2,20 +2,20 @@
set(ade_filename "v0.1.1f.zip")
set(ade_subdir "ade-0.1.1f")
set(ade_md5 "b624b995ec9c439cbc2e9e6ee940d3a2")
-ocv_download(FILENAME ${ade_filename}
- HASH ${ade_md5}
- URL
- "${OPENCV_ADE_URL}"
- "$ENV{OPENCV_ADE_URL}"
- "https://github.com/opencv/ade/archive/"
- DESTINATION_DIR ${ade_src_dir}
- ID ADE
- STATUS res
- UNPACK RELATIVE_URL)
-
-if (NOT res)
- return()
-endif()
+#ocv_download(FILENAME ${ade_filename}
+# HASH ${ade_md5}
+# URL
+# "${OPENCV_ADE_URL}"
+# "$ENV{OPENCV_ADE_URL}"
+# "https://github.com/opencv/ade/archive/"
+# DESTINATION_DIR ${ade_src_dir}
+# ID ADE
+# STATUS res
+# UNPACK RELATIVE_URL)
+#
+#if (NOT res)
+# return()
+#endif()
set(ADE_root "${ade_src_dir}/${ade_subdir}/sources/ade")
file(GLOB_RECURSE ADE_sources "${ADE_root}/source/*.cpp")