Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2023 12:04:13 GMT
From:      Daniel Engberg <diizzy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c46e6a05c6cb - main - net/mediastreamer: Move to FFmpeg 4
Message-ID:  <202304271204.33RC4DiU046426@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by diizzy:

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

commit c46e6a05c6cbb14f740a04718bbfc3249a01765b
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-04-27 10:24:46 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-04-27 12:01:44 +0000

    net/mediastreamer: Move to FFmpeg 4
    
    Fails to build with FFmpeg 6
    
    PR:             270314
    Approved by:    portmgr (blanket, build fix)
    Sponsored by:   Blinkinblox
---
 net/mediastreamer/Makefile                   |  4 +++-
 net/mediastreamer/files/patch-CMakeLists.txt | 10 ++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/net/mediastreamer/Makefile b/net/mediastreamer/Makefile
index fd0c9636b10a..2d57e2201d46 100644
--- a/net/mediastreamer/Makefile
+++ b/net/mediastreamer/Makefile
@@ -54,7 +54,7 @@ VIDEOOPT_DESC=	Video options
 QTGL_DESC=		Qt OpenGL rendering support
 
 FFMPEG_IMPLIES=		VIDEO
-FFMPEG_LIB_DEPENDS=	libavcodec.so:multimedia/ffmpeg
+FFMPEG_LIB_DEPENDS=	libavcodec.so.58:multimedia/ffmpeg4
 FFMPEG_CMAKE_BOOL=	ENABLE_FFMPEG
 G726_LIB_DEPENDS=	libspandsp.so:comms/spandsp
 G726_CMAKE_BOOL=	ENABLE_G726
@@ -98,6 +98,8 @@ XVIDEO_LDFLAGS=		-L${LOCALBASE}/lib -lX11
 post-patch:
 	@${REINPLACE_CMD} 's,gsm/gsm\.h,gsm.h,' \
 		${WRKSRC}/cmake/FindGSM.cmake ${WRKSRC}/src/audiofilters/gsm.c
+	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+		${PATCH_WRKSRC}/CMakeLists.txt
 .if ${CHOSEN_COMPILER_TYPE} == gcc
 	@${REINPLACE_CMD} '/-Wno-format-truncation/d' ${WRKSRC}/CMakeLists.txt
 .endif
diff --git a/net/mediastreamer/files/patch-CMakeLists.txt b/net/mediastreamer/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..af4f8c14d640
--- /dev/null
+++ b/net/mediastreamer/files/patch-CMakeLists.txt
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.orig	2023-04-25 11:15:51 UTC
++++ CMakeLists.txt
+@@ -260,6 +260,7 @@ if(ENABLE_VIDEO)
+ 	add_definitions(-DVIDEO_ENABLED)
+ endif()
+ if(ENABLE_FFMPEG)
++	set(CMAKE_PREFIX_PATH "%%LOCALBASE%%/ffmpeg4;%%LOCALBASE%%/ffmpeg4/libexec")
+ 	find_package(FFMpeg REQUIRED)
+ else()
+ 	add_definitions(-DNO_FFMPEG)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304271204.33RC4DiU046426>