git: a9848f73bd26 - main - emulators/libretro-kronos: Update to 2.1.5.20210601

From: Li-Wen Hsu <lwhsu_at_FreeBSD.org>
Date: Thu, 21 Jul 2022 19:33:59 UTC
The branch main has been updated by lwhsu:

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

commit a9848f73bd26e57e3a3350b22d5b613b8c25d1ad
Author:     Timothy Beyer <beyert@cs.ucr.edu>
AuthorDate: 2022-07-21 19:32:39 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-07-21 19:32:39 +0000

    emulators/libretro-kronos: Update to 2.1.5.20210601
    
    And Fix build on FreeBSD 13.1-RELEASE
    
    PR:             265186
---
 emulators/libretro-kronos/Makefile | 18 ++++++++++++++----
 emulators/libretro-kronos/distinfo |  6 +++---
 2 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/emulators/libretro-kronos/Makefile b/emulators/libretro-kronos/Makefile
index a11909bc30bc..84e3b40e5703 100644
--- a/emulators/libretro-kronos/Makefile
+++ b/emulators/libretro-kronos/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	libretro-kronos
-PORTVERSION=	0.20210617
+PORTVERSION=	2.1.5.20210601
 CATEGORIES=	emulators games
 
 MAINTAINER=	beyert@cs.ucr.edu
@@ -43,16 +43,26 @@ pre-build:
 
 .include <bsd.port.pre.mk>
 
+.if ${CHOSEN_COMPILER_TYPE} == clang
+# clang13 runs out of memory
+LLVM_VER=	12
+BUILD_DEPENDS+=	clang++${LLVM_VER}:devel/llvm${LLVM_VER}
+CC=	${LOCALBASE}/bin/clang${LLVM_VER}
+CXX=	${LOCALBASE}/bin/clang++${LLVM_VER}
+.endif
+
 do-build:
 	cd ${WRKSRC}/yabause/src/libretro && ${DO_MAKE_BUILD}
 
 post-patch:
 .if ${ARCH} != "amd64"
-	@${REINPLACE_CMD} -e "s/HAVE_SSE = 1/HAVE_SSE = 0/" ${WRKSRC}/yabause/src/libretro/Makefile
+	@${REINPLACE_CMD} -e "s/HAVE_SSE = 1/HAVE_SSE = 0/" \
+		${WRKSRC}/yabause/src/libretro/Makefile
 .endif
 
 do-install:
-	${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro;
-	${INSTALL_LIB} ${WRKSRC}/yabause/src/libretro/kronos_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro;
+	@${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro;
+	${INSTALL_LIB} ${WRKSRC}/yabause/src/libretro/kronos_libretro.so \
+		${STAGEDIR}/${PREFIX}/lib/libretro;
 
 .include <bsd.port.post.mk>
diff --git a/emulators/libretro-kronos/distinfo b/emulators/libretro-kronos/distinfo
index 0fd66c7ae29f..0f281f180b18 100644
--- a/emulators/libretro-kronos/distinfo
+++ b/emulators/libretro-kronos/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1623926653
-SHA256 (FCare-Kronos-0.20210617-a39f95a_GH0.tar.gz) = a9edd4b88b874f4b1d1fb0b9e66cf2bc8bc3b643ee02b127db84a79fce31a6e8
-SIZE (FCare-Kronos-0.20210617-a39f95a_GH0.tar.gz) = 36104449
+TIMESTAMP = 1656726449
+SHA256 (FCare-Kronos-2.1.5.20210601-a39f95a_GH0.tar.gz) = a9edd4b88b874f4b1d1fb0b9e66cf2bc8bc3b643ee02b127db84a79fce31a6e8
+SIZE (FCare-Kronos-2.1.5.20210601-a39f95a_GH0.tar.gz) = 36104449