svn commit: r389620 - head/devel/sdl20

Marcus von Appen mva at FreeBSD.org
Sun Jun 14 09:33:31 UTC 2015


Author: mva
Date: Sun Jun 14 09:33:30 2015
New Revision: 389620
URL: https://svnweb.freebsd.org/changeset/ports/389620

Log:
  - Fix 3Dnow (_m_prefetch) support for clang
  
  PR:		194861
  Reported by:	Dmitry Luhtionov (dmitryluhtionov at gmail.com)
  Submitted by:	tijl

Modified:
  head/devel/sdl20/Makefile

Modified: head/devel/sdl20/Makefile
==============================================================================
--- head/devel/sdl20/Makefile	Sun Jun 14 09:25:14 2015	(r389619)
+++ head/devel/sdl20/Makefile	Sun Jun 14 09:33:30 2015	(r389620)
@@ -2,7 +2,7 @@
 
 PORTNAME=	sdl2
 PORTVERSION=	2.0.3
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	devel
 MASTER_SITES=	http://www.libsdl.org/release/
 DISTNAME=	SDL2-${PORTVERSION}
@@ -189,5 +189,8 @@ CONFIGURE_ARGS+=	--disable-video-x11 \
 post-patch:
 	 @${REINPLACE_CMD} -e '/ CheckInputEvents$$/d' \
 		-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
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list