[86226] trunk/dports/python/py-game

jmr at macports.org jmr at macports.org
Sat Oct 22 08:23:51 PDT 2011


Revision: 86226
          http://trac.macports.org/changeset/86226
Author:   jmr at macports.org
Date:     2011-10-22 08:23:46 -0700 (Sat, 22 Oct 2011)
Log Message:
-----------
py-game: fix build with clang (#31701)

Modified Paths:
--------------
    trunk/dports/python/py-game/Portfile

Added Paths:
-----------
    trunk/dports/python/py-game/files/patch-src_scale_mmx64.c.diff

Modified: trunk/dports/python/py-game/Portfile
===================================================================
--- trunk/dports/python/py-game/Portfile	2011-10-22 11:55:06 UTC (rev 86225)
+++ trunk/dports/python/py-game/Portfile	2011-10-22 15:23:46 UTC (rev 86226)
@@ -29,6 +29,7 @@
 
 if {$subport != $name} {
     patchfiles  patch-config_darwin.py.diff \
+                patch-src_scale_mmx64.c.diff \
                 patch-disable_portmidi.diff
     
     depends_lib port:py${python.version}-numpy \

Added: trunk/dports/python/py-game/files/patch-src_scale_mmx64.c.diff
===================================================================
--- trunk/dports/python/py-game/files/patch-src_scale_mmx64.c.diff	                        (rev 0)
+++ trunk/dports/python/py-game/files/patch-src_scale_mmx64.c.diff	2011-10-22 15:23:46 UTC (rev 86226)
@@ -0,0 +1,20 @@
+--- src/scale_mmx64.c.orig	2008-10-23 07:54:59.000000000 +1100
++++ src/scale_mmx64.c	2011-10-22 03:35:35.000000000 +1100
+@@ -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;           "
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111022/1c891a89/attachment.html>


More information about the macports-changes mailing list