Skip to content

Commit

Permalink
devel/sdl20: drop no longer needed _m_prefetch patch
Browse files Browse the repository at this point in the history
Required support aws merged with LLVM in 2015:
llvm/llvm-project#24022

The port builds fine, including with CPUTYPE=athlon64-sse3

PR:		194861, 278353 [1]
Submitted by:	diizzy [1]
  • Loading branch information
AMDmi3 committed Apr 15, 2024
1 parent 218f4cf commit 2fb0fe4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions 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}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2fb0fe4

Please sign in to comment.