Modified: trunk/dports/x11/openmotif/Portfile (79871 => 79872)
--- 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 (0 => 79872)
--- 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 */