git: bf0ec665e5a4 - main - emulators/mgba: allow ImageMagick 7 and add libelf dependency

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Mon, 24 Jul 2023 14:02:03 UTC
The branch main has been updated by pkubaj:

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

commit bf0ec665e5a4e7f3fb85b200b353c16362c8743f
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-07-24 14:01:21 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-07-24 14:01:59 +0000

    emulators/mgba: allow ImageMagick 7 and add libelf dependency
---
 emulators/mgba/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/emulators/mgba/Makefile b/emulators/mgba/Makefile
index 2708e96792d7..87b7ff681e1b 100644
--- a/emulators/mgba/Makefile
+++ b/emulators/mgba/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mgba
 DISTVERSION=	0.10.2
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	emulators
 
 MAINTAINER=	pkubaj@FreeBSD.org
@@ -14,6 +14,7 @@ LICENSE_FILE_LGPL21+ =	${WRKSRC}/src/third-party/blip_buf/license.txt
 LICENSE_FILE_MPL20=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libepoxy.so:graphics/libepoxy \
+		libelf.so:devel/elfutils \
 		libpng.so:graphics/png
 
 USES=		cmake compiler:c++14-lang gl gnome localbase:ldflags lua \
@@ -29,6 +30,7 @@ USE_LDCONFIG=	yes
 USE_SDL=	sdl2
 
 CMAKE_ARGS=	-DCMAKE_INSTALL_DOCDIR:STRING="${DOCSDIR}" \
+		-DUSE_ELF:BOOL=ON \
 		-DUSE_MINIZIP:BOOL=OFF \
 		-DUSE_LIBZIP:BOOL=OFF \
 		-DUSE_ZLIB:BOOL=ON \
@@ -59,7 +61,7 @@ LIBRETRO_CMAKE_BOOL=	BUILD_LIBRETRO
 LIBRETRO_CMAKE_ON=	-DLIBRETRO_LIBDIR:PATH="${PREFIX}/lib/libretro"
 LIBRETRO_CONFLICTS_INSTALL=	libretro-mgba
 
-MAGICK_USES=		magick:6
+MAGICK_USES=		magick
 MAGICK_CMAKE_BOOL=	USE_MAGICK
 
 QT5_USES=	desktop-file-utils qt:5