git: 3b23f3c86cb4 - main - emulators/vice: fix option FFMPEG

From: Dirk Meyer <dinoex_at_FreeBSD.org>
Date: Wed, 27 Mar 2024 14:42:31 UTC
The branch main has been updated by dinoex:

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

commit 3b23f3c86cb474dc98e2edc9cbef2743c27302f2
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2024-03-27 14:42:17 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2024-03-27 14:42:17 +0000

    emulators/vice: fix option FFMPEG
    
    PR: 277971
---
 emulators/vice/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/emulators/vice/Makefile b/emulators/vice/Makefile
index 42f5f48cfc24..ed9ee293ce77 100644
--- a/emulators/vice/Makefile
+++ b/emulators/vice/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	vice
 PORTVERSION=	3.8
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	emulators
 MASTER_SITES=	SF/vice-emu/releases
 
@@ -22,7 +22,6 @@ LIB_DEPENDS=	libpng.so:graphics/png \
 		libmp3lame.so:audio/lame \
 		libogg.so:audio/libogg \
 		libvorbis.so:audio/libvorbis \
-		libavcodec.so:multimedia/ffmpeg \
 		libFLAC.so:audio/flac \
 		libpci.so:devel/libpci \
 		libfontconfig.so:x11-fonts/fontconfig \
@@ -77,6 +76,8 @@ ALSA_CONFIGURE_OFF=		--without-alsa
 ALSA_LIB_DEPENDS=		libasound.so:audio/alsa-lib
 PULSEAUDIO_CONFIGURE_OFF=	--without-pulse
 PULSEAUDIO_LIB_DEPENDS=		libpulse.so:audio/pulseaudio
+FFMPEG_LIB_DEPENDS=		libavcodec.so.58:multimedia/ffmpeg4
+FFMPEG_CONFIGURE_ENV=		PKG_CONFIG_PATH="${LOCALBASE}/ffmpeg4/libdata/pkgconfig"
 #ETHERNET_LIB_DEPENDS=		libpcap.so:net/libpcap # conflict with base
 ETHERNET_BUILD_DEPENDS=		${LOCALBASE}/include/pcap.h:net/libpcap
 ETHERNET_RUN_DEPENDS=		${LOCALBASE}/include/pcap.h:net/libpcap