diff options
author | Tobias C. Berner <tcberner@FreeBSD.org> | 2021-07-18 11:49:25 +0200 |
---|---|---|
committer | Tobias C. Berner <tcberner@FreeBSD.org> | 2021-07-18 12:53:21 +0200 |
commit | 43a30a366ccd676856efe5df2a6b8454158678b6 (patch) | |
tree | c7cd9a2236f7de2c4fcfaee5dd5cb0b4eb951f76 /graphics/opencv/files/patch-cmake_OpenCVDownload.cmake | |
parent | games/corsix-th: Update to 0.65.1 (diff) |
graphics/opencv: update to 4.5.3
Changes in the port:
- fix prefetch of third party software
- prefetching of distfiles has been fixed
- cmake will now throw an error in ocv_download()
if it is still called
- minor cleanup
- next step: readd some more options, and improve port for
non-poudriere users
PR: 256669
Diffstat (limited to 'graphics/opencv/files/patch-cmake_OpenCVDownload.cmake')
-rw-r--r-- | graphics/opencv/files/patch-cmake_OpenCVDownload.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/opencv/files/patch-cmake_OpenCVDownload.cmake b/graphics/opencv/files/patch-cmake_OpenCVDownload.cmake new file mode 100644 index 000000000000..33fe16ac87fa --- /dev/null +++ b/graphics/opencv/files/patch-cmake_OpenCVDownload.cmake @@ -0,0 +1,14 @@ +TODO: instead of patching the callers of ocv_download() to not use it, +it would be nicer to just make ocv_download use the cached file from +${FILESDIR} + +--- cmake/OpenCVDownload.cmake.orig 2021-07-18 09:08:36 UTC ++++ cmake/OpenCVDownload.cmake +@@ -159,6 +159,7 @@ function(ocv_download) + ocv_download_log("#cmake_download \"${CACHE_CANDIDATE}\" \"${DL_URL}\"") + foreach(try ${OPENCV_DOWNLOAD_TRIES_LIST}) + ocv_download_log("#try ${try}") ++ message(FATAL_ERROR "++ Trying to download file ${CACHE_CANDIDATE} via cmake from ${DL_URL}") + file(DOWNLOAD "${DL_URL}" "${CACHE_CANDIDATE}" + STATUS status + LOG __log |