svn commit: r381323 - in head/devel/py-game: . files

Jan Beich jbeich at FreeBSD.org
Sun Mar 15 11:50:32 UTC 2015


Author: jbeich
Date: Sun Mar 15 11:50:30 2015
New Revision: 381323
URL: https://svnweb.freebsd.org/changeset/ports/381323
QAT: https://qat.redports.org/buildarchive/r381323/

Log:
  - Unbreak build with Clang
  - Drop USE_GCC as it's no longer required
  - Bump PORTREVISION for 10+ packages
  
  Differential Revision:	https://reviews.freebsd.org/D1860
  PR:		197010
  Obtained from:	https://bitbucket.org/pygame/pygame/commits/e296ada67fad
  Approved by:	mva (maintainer)

Added:
  head/devel/py-game/files/patch-src_scale__mmx64.c   (contents, props changed)
Modified:
  head/devel/py-game/Makefile

Modified: head/devel/py-game/Makefile
==============================================================================
--- head/devel/py-game/Makefile	Sun Mar 15 11:41:38 2015	(r381322)
+++ head/devel/py-game/Makefile	Sun Mar 15 11:50:30 2015	(r381323)
@@ -3,7 +3,7 @@
 
 PORTNAME=	game
 PORTVERSION=	1.9.1
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	devel python
 MASTER_SITES=	http://pygame.seul.org/ftp/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -17,9 +17,9 @@ LICENSE=	LGPL21
 LIB_DEPENDS=	libsmpeg.so:${PORTSDIR}/multimedia/smpeg
 RUN_DEPENDS=	${PYNUMPY}
 
-USES=		python
+USES=		dos2unix python
+DOS2UNIX_FILES=	src/scale_mmx64.c
 USE_SDL=	ttf image mixer sdl
-USE_GCC=	any
 USE_PYTHON=	autoplist distutils
 
 SDLNOX11=	sdl-nox11-[0-9]*

Added: head/devel/py-game/files/patch-src_scale__mmx64.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-game/files/patch-src_scale__mmx64.c	Sun Mar 15 11:50:30 2015	(r381323)
@@ -0,0 +1,28 @@
+# HG changeset patch
+# User Rene Dudfield <renesd at gmail.com>
+# Date 1343499364 -7200
+# Node ID e296ada67fad8e01e017ed6ede554fabb1402d26
+# Parent  d2c7ea7488013b87c483f4df0b5ca80bdc87e065
+Fix for scale_mmx64.c with clang. Thanks Joshua Root.  Closes #94
+
+diff --git a/src/scale_mmx64.c b/src/scale_mmx64.c
+--- src/scale_mmx64.c.orig	2008-10-22 20:54:59 UTC
++++ src/scale_mmx64.c
+@@ -425,7 +425,7 @@ filter_expand_X_MMX(Uint8 *srcpix, Uint8
+              " movl             %5,      %%ecx;           "
+              " pxor          %%mm0,      %%mm0;           "
+              "1:                                          "
+-             " movsxl         (%3),      %%rax;           " /* get xidx0[x] */
++             " movslq         (%3),      %%rax;           " /* get xidx0[x] */
+              " add              $4,         %3;           "
+              " movq           (%0),      %%mm1;           " /* load mult0 */
+              " add              $8,         %0;           "
+@@ -500,7 +500,7 @@ filter_expand_X_SSE(Uint8 *srcpix, Uint8
+              " movl             %5,      %%ecx;           "
+              " pxor          %%mm0,      %%mm0;           "
+              "1:                                          "
+-             " movsxl         (%3),      %%rax;           " /* get xidx0[x] */
++             " movslq         (%3),      %%rax;           " /* get xidx0[x] */
+              " add              $4,         %3;           "
+              " movq           (%0),      %%mm1;           " /* load mult0 */
+              " add              $8,         %0;           "


More information about the svn-ports-head mailing list