[79872] trunk/dports/x11/openmotif

jeremyhu at macports.org jeremyhu at macports.org
Tue Jun 28 16:42:53 PDT 2011


Revision: 79872
          http://trac.macports.org/changeset/79872
Author:   jeremyhu at macports.org
Date:     2011-06-28 16:42:53 -0700 (Tue, 28 Jun 2011)
Log Message:
-----------
openmotif: clang build fix

Modified Paths:
--------------
    trunk/dports/x11/openmotif/Portfile

Added Paths:
-----------
    trunk/dports/x11/openmotif/files/patch-lib-XmP.h.diff

Modified: trunk/dports/x11/openmotif/Portfile
===================================================================
--- trunk/dports/x11/openmotif/Portfile	2011-06-28 23:31:31 UTC (rev 79871)
+++ trunk/dports/x11/openmotif/Portfile	2011-06-28 23:42:53 UTC (rev 79872)
@@ -44,7 +44,8 @@
 
 patchfiles      patch-demos-programs-peridoc-Makefile.in.diff \
                 patch-lib-Mrm-Makefile.in.diff \
-                patch-uintptr_t-cast.diff
+                patch-uintptr_t-cast.diff \
+                patch-lib-XmP.h.diff
 
 post-patch {
     reinplace "s|iconv_open|libiconv_open|g" ${worksrcpath}/configure

Added: trunk/dports/x11/openmotif/files/patch-lib-XmP.h.diff
===================================================================
--- trunk/dports/x11/openmotif/files/patch-lib-XmP.h.diff	                        (rev 0)
+++ trunk/dports/x11/openmotif/files/patch-lib-XmP.h.diff	2011-06-28 23:42:53 UTC (rev 79872)
@@ -0,0 +1,21 @@
+--- lib/Xm/XmP.h.orig	2011-06-28 16:02:50.000000000 -0700
++++ lib/Xm/XmP.h	2011-06-28 16:12:34.000000000 -0700
+@@ -1455,12 +1455,15 @@ extern void _XmDestroyParentCallback( 
+ 
+ #endif /* NO_XM_1_2_BC */
+ 
+-#if __GNUC__
++#ifdef __GNUC__
+ #  define XM_DEPRECATED  __attribute__((__deprecated__))
+-#  define XM_ALIAS(sym)  __attribute__((__weak__,alias(#sym)))
++#  ifndef __APPLE__
++#    define XM_ALIAS(sym)  __attribute__((__weak__,alias(#sym)))
++#  else
++#    define XM_ALIAS(sym)
++#  endif
+ #else
+ #  define XM_DEPRECATED
+-#  define XM_ALIAS(sym)
+ #endif
+ 
+ #endif /* _XmP_h */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110628/f1e1cea1/attachment.html>


More information about the macports-changes mailing list