git: 2fb0fe4b746a - main - devel/sdl20: drop no longer needed _m_prefetch patch

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Mon, 15 Apr 2024 16:59:02 UTC
The branch main has been updated by amdmi3:

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

commit 2fb0fe4b746ad8c19574907f815dca14675fb7f4
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2024-04-15 16:22:23 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2024-04-15 16:58:53 +0000

    devel/sdl20: drop no longer needed _m_prefetch patch
    
    Required support aws merged with LLVM in 2015:
    https://github.com/llvm/llvm-project/issues/24022
    
    The port builds fine, including with CPUTYPE=athlon64-sse3
    
    PR:             194861, 278353 [1]
    Submitted by:   diizzy [1]
---
 devel/sdl20/Makefile | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/devel/sdl20/Makefile b/devel/sdl20/Makefile
index 32a5956c3f0f..7c6fa6624f77 100644
--- a/devel/sdl20/Makefile
+++ b/devel/sdl20/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	sdl2
 DISTVERSION=	2.30.2
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	https://www.libsdl.org/release/
 DISTNAME=	SDL2-${PORTVERSION}
@@ -188,9 +189,6 @@ CONFIGURE_ARGS+=	ac_cv_lib_iconv_iconv_open=yes ac_cv_func_iconv=yes
 
 post-patch:
 	@${REINPLACE_CMD} -e 's/-liconv/${ICONV_LIB}/g' ${WRKSRC}/configure
-# Clang does not provide _m_prefetch
-	@${REINPLACE_CMD} 's/_m_prefetch/__builtin_prefetch/' \
-		${WRKSRC}/configure ${WRKSRC}/src/video/SDL_blit_A.c
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libSDL2.so