git: dd66f01ed83d - main - emulators/ares: Update to 147

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 28 Dec 2025 20:33:09 UTC
The branch main has been updated by diizzy:

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

commit dd66f01ed83db1c4505f5fe5b871f6c1dae16094
Author:     Stefan Schlosser <bsdcode@disroot.org>
AuthorDate: 2025-12-23 15:36:07 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-12-28 20:32:43 +0000

    emulators/ares: Update to 147
    
    Release notes:
    https://ares-emu.net/news/ares-v147-released
    
    * Add upstreamed patch for fixing a linker error, see also
      https://github.com/ares-emulator/ares/pull/2329
    
    * Update to USES=compiler:c++20-lang.
    
    * Prevent new directory in the root of distdir for each new release by
      replacing the "-" separator with "/" in DIST_SUBDIR.
    
    PR:             291895
---
 emulators/ares/Makefile | 12 ++++++++----
 emulators/ares/distinfo |  8 +++++---
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/emulators/ares/Makefile b/emulators/ares/Makefile
index efde9f423472..2ae07703273f 100644
--- a/emulators/ares/Makefile
+++ b/emulators/ares/Makefile
@@ -1,11 +1,15 @@
 PORTNAME=	ares
 DISTVERSIONPREFIX=	v
-DISTVERSION=	146
-PORTREVISION=	2
+DISTVERSION=	147
 CATEGORIES=	emulators
 MASTER_SITES=	https://github.com/${PORTNAME}-emulator/${PORTNAME}/releases/download/${DISTVERSIONFULL}/
 DISTNAME=	${PORTNAME}-source
-DIST_SUBDIR=	${PORTNAME}-${DISTVERSION}
+DIST_SUBDIR=	${PORTNAME}/${DISTVERSION}
+
+# fixes linker error when building PCE core without MD core, see also
+# https://github.com/ares-emulator/ares/pull/2329
+PATCH_SITES=	https://github.com/${PORTNAME}-emulator/${PORTNAME}/commit/
+PATCHFILES=	adfc78f9523adce9fef1d7ac282e08ab7fc66dd4.patch:-p1
 
 MAINTAINER=	bsdcode@disroot.org
 COMMENT=	Multi-system emulator
@@ -16,7 +20,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	librashader>0:devel/librashader
 
-USES=		cmake compiler:c++17-lang gl gnome pkgconfig xorg
+USES=		cmake compiler:c++20-lang gl gnome pkgconfig xorg
 USE_GL=		opengl
 USE_GNOME=	gtk30
 USE_XORG=	x11 xext xrandr xrender
diff --git a/emulators/ares/distinfo b/emulators/ares/distinfo
index 5cdf41f6260d..31c45bb91726 100644
--- a/emulators/ares/distinfo
+++ b/emulators/ares/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1756454355
-SHA256 (ares-146/ares-source.tar.gz) = 0f0b878c19ce09dab57584235e9c639c4c14a0bd1de6cef50238f006bd797bf1
-SIZE (ares-146/ares-source.tar.gz) = 9021617
+TIMESTAMP = 1766567627
+SHA256 (ares/147/ares-source.tar.gz) = dcedffc1676d497cfe7889e424335a38cc587c87fffebb917775ee5042962f69
+SIZE (ares/147/ares-source.tar.gz) = 9074663
+SHA256 (ares/147/adfc78f9523adce9fef1d7ac282e08ab7fc66dd4.patch) = 4503bf48bfe67448e17b462fc6c99aab0dba780ae8f6a6059a04af2b59901b4f
+SIZE (ares/147/adfc78f9523adce9fef1d7ac282e08ab7fc66dd4.patch) = 563