git: 7e01d5dc02bc - main - audio/aqualung: Move to FFmpeg 4

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

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

commit 7e01d5dc02bc2662339a6e81cd6940ca1d56a217
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-04-27 09:10:39 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-04-27 12:01:40 +0000

    audio/aqualung: Move to FFmpeg 4
    
    Fails to build with FFmpeg 6
    
    PR:             270194
    Approved by:    portmgr (blanket, build fix)
    Sponsored by:   Blinkinblox
---
 audio/aqualung/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/audio/aqualung/Makefile b/audio/aqualung/Makefile
index c813fe26cc60..075f095f03c9 100644
--- a/audio/aqualung/Makefile
+++ b/audio/aqualung/Makefile
@@ -24,13 +24,18 @@ LIB_DEPENDS=	libFLAC.so:audio/flac \
 		libmpcdec.so:audio/musepack \
 		libspeex.so:audio/speex \
 		libwavpack.so:audio/wavpack \
-		libavcodec.so:multimedia/ffmpeg \
+		libavcodec.so.58:multimedia/ffmpeg4 \
 		libcdio_paranoia.so:sysutils/libcdio-paranoia \
 		liblrdf.so:textproc/liblrdf
 
 USES=		compiler:c++11-lang cpe gettext gnome localbase lua:52 pkgconfig
 USE_GNOME=	gtk20 libxml2 libxslt
 GNU_CONFIGURE=	yes
+
+LDFLAGS+=	-L${LOCALBASE}/ffmpeg4/lib
+CONFIGURE_ENV+=	PKG_CONFIG_PATH="${LOCALBASE}/ffmpeg4/libdata/pkgconfig"
+MAKE_ENV+=	PKG_CONFIG_PATH="${LOCALBASE}/ffmpeg4/libdata/pkgconfig"
+
 CONFIGURE_ARGS=	--with-ifp=no
 
 DESKTOP_ENTRIES="Aqualung" "" "${DATADIR}/general.png" "aqualung" \