[95870] trunk/dports/graphics/netpbm

jeremyhu at macports.org jeremyhu at macports.org
Wed Jul 25 08:52:57 PDT 2012


Revision: 95870
          https://trac.macports.org/changeset/95870
Author:   jeremyhu at macports.org
Date:     2012-07-25 08:52:56 -0700 (Wed, 25 Jul 2012)
Log Message:
-----------
netpbm: Workaround build failure with more recent clang versions (#35310)

Modified Paths:
--------------
    trunk/dports/graphics/netpbm/Portfile

Added Paths:
-----------
    trunk/dports/graphics/netpbm/files/patch-clang-sse-workaround.diff

Modified: trunk/dports/graphics/netpbm/Portfile
===================================================================
--- trunk/dports/graphics/netpbm/Portfile	2012-07-25 15:38:40 UTC (rev 95869)
+++ trunk/dports/graphics/netpbm/Portfile	2012-07-25 15:52:56 UTC (rev 95870)
@@ -38,7 +38,8 @@
 
 patchfiles      patch-pm_config.in.h.diff \
                 patch-lib-Makefile.diff \
-                patch-converter-other-giftopnm.c-strcaseeq.diff
+                patch-converter-other-giftopnm.c-strcaseeq.diff \
+                patch-clang-sse-workaround.diff
 
 post-patch {
     reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/pm_config.in.h

Added: trunk/dports/graphics/netpbm/files/patch-clang-sse-workaround.diff
===================================================================
--- trunk/dports/graphics/netpbm/files/patch-clang-sse-workaround.diff	                        (rev 0)
+++ trunk/dports/graphics/netpbm/files/patch-clang-sse-workaround.diff	2012-07-25 15:52:56 UTC (rev 95870)
@@ -0,0 +1,11 @@
+--- pm_config.in.h.orig	2012-07-25 08:48:16.000000000 -0700
++++ pm_config.in.h	2012-07-25 08:48:44.000000000 -0700
+@@ -242,7 +242,7 @@
+    stuck with pamflip_sse.c.  So we say the feature exists only on 4.2
+    and up.
+ */
+-#if GCCVERSION >=402 && defined(__SSE__) && defined(__SSE2__)
++#if GCCVERSION >=402 && defined(__SSE__) && defined(__SSE2__) && !defined(__clang__)
+   #define HAVE_GCC_SSE2 1
+ #else
+   #define HAVE_GCC_SSE2 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120725/52b666b9/attachment.html>


More information about the macports-changes mailing list