git: c9ec5ab82201 - main - math/octave-forge-video: Move to FFmpeg 4

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Thu, 27 Apr 2023 12:04:08 UTC
The branch main has been updated by diizzy:

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

commit c9ec5ab8220169eed6029deb9a024e56bf38672f
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-04-27 10:09:54 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-04-27 12:01:43 +0000

    math/octave-forge-video: Move to FFmpeg 4
    
    Fails to build with FFmpeg 6
    
    PR:             270281
    Approved by:    portmgr (blanket, build fix)
    Sponsored by:   Blinkinblox
---
 math/octave-forge-video/Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/math/octave-forge-video/Makefile b/math/octave-forge-video/Makefile
index b1a192cd89b3..a740f645bc02 100644
--- a/math/octave-forge-video/Makefile
+++ b/math/octave-forge-video/Makefile
@@ -12,11 +12,12 @@ WWW=		https://packages.octave.org/
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKDIR}/${OCTAVE_SRC}/COPYING
 
-LIB_DEPENDS=	libavcodec.so:multimedia/ffmpeg
+LIB_DEPENDS=	libavcodec.so.58:multimedia/ffmpeg4
 
 USES=		octave pkgconfig
-
 GNU_CONFIGURE=	yes
-CONFIGURE_ENV+=	HOME=${WRKSRC}
+
+CPPFLAGS+=	-I${LOCALBASE}/ffmpeg4/include
+CONFIGURE_ENV+=	HOME=${WRKSRC} PKG_CONFIG_PATH="${LOCALBASE}/ffmpeg4/libdata/pkgconfig"
 
 .include <bsd.port.mk>