[91926] trunk/dports/devel/mono/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Fri Apr 13 01:37:59 PDT 2012


Revision: 91926
          https://trac.macports.org/changeset/91926
Author:   jeremyhu at macports.org
Date:     2012-04-13 01:37:59 -0700 (Fri, 13 Apr 2012)
Log Message:
-----------
mono: Build fix for Tiger ... not that I've actually *tested* it or anything...

Modified Paths:
--------------
    trunk/dports/devel/mono/Portfile

Modified: trunk/dports/devel/mono/Portfile
===================================================================
--- trunk/dports/devel/mono/Portfile	2012-04-13 08:37:27 UTC (rev 91925)
+++ trunk/dports/devel/mono/Portfile	2012-04-13 08:37:59 UTC (rev 91926)
@@ -43,6 +43,23 @@
 post-patch {
     reinplace "s/-pthread/-lpthread/g" ${worksrcpath}/configure
     reinplace s|@PREFIX@|$prefix|g $worksrcpath/data/config.in
+
+    if {${os.major} < 9} {
+        # Should this always be done?
+        reinplace "s/-mmacosx-version-min=10.5//" ${worksrcpath}/configure
+
+        reinplace "s:MAC_OS_X_VERSION_10_5:1050:g" \
+            ${worksrcpath}/libgc/darwin_stop_world.c \
+            ${worksrcpath}/mono/mini/mini-darwin.c \
+            ${worksrcpath}/mono/utils/mono-sigcontext.h
+
+        reinplace "s/arch_state->__/arch_state->/g" \
+            ${worksrcpath}/mono/utils/mach-support-x86.c
+        reinplace "s/struct __darwin_mcontext32/struct mcontext/g" \
+            ${worksrcpath}/mono/utils/mach-support-x86.c
+        reinplace "s/ctx->__/ctx->/g" \
+            ${worksrcpath}/mono/utils/mach-support-x86.c
+    }
 }
 
 post-destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120413/ec3a2f57/attachment-0001.html>


More information about the macports-changes mailing list