git: 442a92fca3f7 - main - devel/rgbds: Update to 0.6.0

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Wed, 05 Oct 2022 10:32:28 UTC
The branch main has been updated by eduardo:

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

commit 442a92fca3f70950193690d08796333da2b947e4
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-10-05 10:06:23 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-10-05 10:32:11 +0000

    devel/rgbds: Update to 0.6.0
    
     - Workaround clang build failure on 13.1 and 14 current with USE_GCC
       https://github.com/gbdev/rgbds/issues/1091
    
    ChangeLog: https://github.com/gbdev/rgbds/releases/tag/v0.6.0
---
 devel/rgbds/Makefile | 12 ++++++++++--
 devel/rgbds/distinfo |  6 +++---
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/devel/rgbds/Makefile b/devel/rgbds/Makefile
index 23611c95a535..669efeec0bd0 100644
--- a/devel/rgbds/Makefile
+++ b/devel/rgbds/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	rgbds
-DISTVERSION=	0.5.2
+DISTVERSION=	0.6.0
 CATEGORIES=	devel games
 MASTER_SITES=	https://github.com/gbdev/rgbds/releases/download/v${DISTVERSION}/
 
@@ -22,4 +22,12 @@ do-configure:
 		${CC} -std=gnu11 -D_POSIX_C_SOURCE=200809L -D_ISOC11_SOURCE -xc - 2>/dev/null || \
 		${REINPLACE_CMD} 's,-D_POSIX_C_SOURCE=200809L,,' ${WRKSRC}/Makefile
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# clang build fails on 13.1 and 14 current
+# see https://github.com/gbdev/rgbds/issues/1091
+.if ${OSVERSION} >= 1300000
+USE_GCC=	yes
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/rgbds/distinfo b/devel/rgbds/distinfo
index d3a125934416..c1a59fd5c517 100644
--- a/devel/rgbds/distinfo
+++ b/devel/rgbds/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1637707257
-SHA256 (rgbds-0.5.2.tar.gz) = 142479e1b68e3947af2dace884fb0efa65e789163cb5909bdcbae1f132dc1457
-SIZE (rgbds-0.5.2.tar.gz) = 7955107
+TIMESTAMP = 1664826997
+SHA256 (rgbds-0.6.0.tar.gz) = a5fa40b92e0562c6a092bc81ca56614316730aca7b10b8177285023781ff0e32
+SIZE (rgbds-0.6.0.tar.gz) = 8041666