git: 8bd3d37b9006 - main - graphics/opencv: Fix build with FFMPEG option enabled

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 07 May 2023 12:30:22 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8bd3d37b900647ff172b53c443a52892f9b9a516

commit 8bd3d37b900647ff172b53c443a52892f9b9a516
Author:     Eric Camachat <eric@camachat.org>
AuthorDate: 2023-05-07 12:28:50 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-05-07 12:28:54 +0000

    graphics/opencv: Fix build with FFMPEG option enabled
    
    Backport upstream commit 496eed950f6d0e7fd92619d47e3cec8f06e96ace to fix
    build when FFMPEG option is enabled with FFmpeg 6
    
    PR:             271120
    Approved by:    portmgr (blanket, build fix)
---
 graphics/opencv/Makefile | 3 +++
 graphics/opencv/distinfo | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/graphics/opencv/Makefile b/graphics/opencv/Makefile
index 812c2fbd87d6..ae135bcceed4 100644
--- a/graphics/opencv/Makefile
+++ b/graphics/opencv/Makefile
@@ -3,6 +3,9 @@ DISTVERSION=	4.6.0
 PORTREVISION=	8
 CATEGORIES=	graphics
 
+PATCH_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/commit/
+PATCHFILES=	496eed950f6d0e7fd92619d47e3cec8f06e96ace.patch:-p1
+
 MAINTAINER=	desktop@FreeBSD.org
 COMMENT=	Open Source Computer Vision library
 WWW=		https://www.opencv.org/
diff --git a/graphics/opencv/distinfo b/graphics/opencv/distinfo
index ae31c14951eb..35a189ff7ab3 100644
--- a/graphics/opencv/distinfo
+++ b/graphics/opencv/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1661966264
+TIMESTAMP = 1682799940
 SHA256 (opencv-opencv-4.6.0_GH0.tar.gz) = 1ec1cba65f9f20fe5a41fda1586e01c70ea0c9a6d7b67c9e13edf0cfe2239277
 SIZE (opencv-opencv-4.6.0_GH0.tar.gz) = 90208971
 SHA256 (WeChatCV-opencv_3rdparty-a8b69ccc738421293254aec5ddb38bd523503252_GH0.tar.gz) = 7a16ad6ca511c620c2a4cbef2c7cf1ff5c31bd530ac7b43ee2ea8481683df20a
@@ -15,3 +15,5 @@ SHA256 (opencv-opencv_3rdparty-8afa57abc8229d611c4937165d20e2a2d9fc5a12_GH0.tar.
 SIZE (opencv-opencv_3rdparty-8afa57abc8229d611c4937165d20e2a2d9fc5a12_GH0.tar.gz) = 63301261
 SHA256 (opencv-opencv_3rdparty-a56b6ac6f030c312b2dce17430eef13aed9af274_GH0.tar.gz) = 6d3552455d927dd28cdd6a78470398208ff2167b19b0dd51ab30a241d900cb4c
 SIZE (opencv-opencv_3rdparty-a56b6ac6f030c312b2dce17430eef13aed9af274_GH0.tar.gz) = 135706483
+SHA256 (496eed950f6d0e7fd92619d47e3cec8f06e96ace.patch) = 28edbd94c443b6aaa3054b4f9b35a4ad9a89dc45f40d408bcf3036950a072a32
+SIZE (496eed950f6d0e7fd92619d47e3cec8f06e96ace.patch) = 671