[81076] trunk/dports/devel/libsdl
jmr at macports.org
jmr at macports.org
Sun Jul 24 16:03:04 PDT 2011
Revision: 81076
http://trac.macports.org/changeset/81076
Author: jmr at macports.org
Date: 2011-07-24 16:03:00 -0700 (Sun, 24 Jul 2011)
Log Message:
-----------
libsdl: fix build with LLVM
Modified Paths:
--------------
trunk/dports/devel/libsdl/Portfile
Added Paths:
-----------
trunk/dports/devel/libsdl/files/mmx.h.diff
Modified: trunk/dports/devel/libsdl/Portfile
===================================================================
--- trunk/dports/devel/libsdl/Portfile 2011-07-24 22:43:51 UTC (rev 81075)
+++ trunk/dports/devel/libsdl/Portfile 2011-07-24 23:03:00 UTC (rev 81076)
@@ -34,7 +34,7 @@
minimum_xcodeversions {8 2.4.1}
-patchfiles cpuinfo.diff patch-SDL_x11gl_c.h.diff
+patchfiles cpuinfo.diff patch-SDL_x11gl_c.h.diff mmx.h.diff
configure.args --enable-shared \
--mandir=${prefix}/share/man \
@@ -88,14 +88,6 @@
}
}
-# BUILD FIX TODO: llvm-gcc-4.2, clang
-# llvm-gcc-4.2 and clang fail to build as of 2011.06.15
-# This looks like an error in the package.
-if {${configure.compiler} == "llvm-gcc-4.2" ||
- ${configure.compiler} == "clang"} {
- configure.compiler gcc-4.2
-}
-
livecheck.type regex
livecheck.url ${homepage}download.php
livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
Added: trunk/dports/devel/libsdl/files/mmx.h.diff
===================================================================
--- trunk/dports/devel/libsdl/files/mmx.h.diff (rev 0)
+++ trunk/dports/devel/libsdl/files/mmx.h.diff 2011-07-24 23:03:00 UTC (rev 81076)
@@ -0,0 +1,11 @@
+--- src/video/mmx.h Mon Feb 06 08:28:51 2006 +0000
++++ src/video/mmx.h Sun Jan 30 13:38:57 2011 -0800
+@@ -355,7 +355,7 @@
+
+ #define mmx_r2m(op, reg, mem) \
+ __asm__ __volatile__ (#op " %%" #reg ", %0" \
+- : "=X" (mem) \
++ : "=m" (mem) \
+ : /* nothing */ )
+
+ #define mmx_r2r(op, regs, regd) \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110724/c3e9b6cb/attachment.html>
More information about the macports-changes
mailing list