[27966] trunk/dports/cross/arm-apple-darwin-runtime

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 16 11:41:25 PDT 2007


Revision: 27966
          http://trac.macosforge.org/projects/macports/changeset/27966
Author:   eridius at macports.org
Date:     2007-08-16 11:41:25 -0700 (Thu, 16 Aug 2007)

Log Message:
-----------
Get arm-apple-darwin-runtime to install on Leopard. Still not usable though, there seem to be include errors trying to build a simple project

Modified Paths:
--------------
    trunk/dports/cross/arm-apple-darwin-runtime/Portfile

Added Paths:
-----------
    trunk/dports/cross/arm-apple-darwin-runtime/files/patch-darwin_9-fp.h

Modified: trunk/dports/cross/arm-apple-darwin-runtime/Portfile
===================================================================
--- trunk/dports/cross/arm-apple-darwin-runtime/Portfile	2007-08-16 17:00:29 UTC (rev 27965)
+++ trunk/dports/cross/arm-apple-darwin-runtime/Portfile	2007-08-16 18:41:25 UTC (rev 27966)
@@ -70,5 +70,19 @@
 	${ccframework}/Headers/fp.h \
 	${inst}/include/CarbonCore
 	system "cd ${inst}/include/CarbonCore && patch -p0 < ${worksrcpath}/include/CarbonCore/MachineExceptions.h.diff"
-	system "cd ${inst}/include/CarbonCore && patch -p0 < ${worksrcpath}/include/CarbonCore/fp.h.diff"
+	if {[variant_isset darwin_9]} {
+		# fp.h needs a new patch for Leopard
+		# MachineExceptions.h probably should have one, but the current one succeeds with offset
+		# so lets just kill the .orig file
+		delete ${inst}/include/CarbonCore/MachineExceptions.h.orig
+		system "cd ${inst}/include/CarbonCore && patch -p0 < ${filespath}/patch-darwin_9-fp.h"
+	} else {
+		system "cd ${inst}/include/CarbonCore && patch -p0 < ${worksrcpath}/include/CarbonCore/fp.h.diff"
+	}
+	# ok, kill the .diff files, we don't need them in our output
+	delete ${inst}/include/CarbonCore/MachineExceptions.h.diff ${inst}/include/CarbonCore/fp.h.diff
 }
+
+platform darwin 9 {
+	# just used for a variant_isset test
+}

Added: trunk/dports/cross/arm-apple-darwin-runtime/files/patch-darwin_9-fp.h
===================================================================
--- trunk/dports/cross/arm-apple-darwin-runtime/files/patch-darwin_9-fp.h	                        (rev 0)
+++ trunk/dports/cross/arm-apple-darwin-runtime/files/patch-darwin_9-fp.h	2007-08-16 18:41:25 UTC (rev 27966)
@@ -0,0 +1,11 @@
+--- /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/fp.h	2007-08-10 22:41:45.000000000 -0700
++++ fp.h	2007-08-16 11:35:47.000000000 -0700
+@@ -1314,7 +1314,7 @@
+ *   dec2l       Similar to dec2num except a long is returned.                   *
+ *                                                                               *
+ ********************************************************************************/
+-#if TARGET_CPU_PPC || TARGET_CPU_X86 || TARGET_CPU_PPC64 || TARGET_CPU_X86_64
++#if TARGET_CPU_PPC || TARGET_CPU_X86 || TARGET_CPU_PPC64 || TARGET_CPU_X86_64 || TARGET_CPU_ARM
+     #define SIGDIGLEN      36  
+ #endif
+ #define      DECSTROUTLEN   80               /* max length for dec2str output */

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070816/802a4d33/attachment.html


More information about the macports-changes mailing list