Changeset 27966


Ignore:
Timestamp:
Aug 16, 2007, 6:41:25 PM (13 years ago)
Author:
eridius@…
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

Location:
trunk/dports/cross/arm-apple-darwin-runtime
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/cross/arm-apple-darwin-runtime/Portfile

    r27913 r27966  
    7171        ${inst}/include/CarbonCore
    7272        system "cd ${inst}/include/CarbonCore && patch -p0 < ${worksrcpath}/include/CarbonCore/MachineExceptions.h.diff"
    73         system "cd ${inst}/include/CarbonCore && patch -p0 < ${worksrcpath}/include/CarbonCore/fp.h.diff"
     73        if {[variant_isset darwin_9]} {
     74                # fp.h needs a new patch for Leopard
     75                # MachineExceptions.h probably should have one, but the current one succeeds with offset
     76                # so lets just kill the .orig file
     77                delete ${inst}/include/CarbonCore/MachineExceptions.h.orig
     78                system "cd ${inst}/include/CarbonCore && patch -p0 < ${filespath}/patch-darwin_9-fp.h"
     79        } else {
     80                system "cd ${inst}/include/CarbonCore && patch -p0 < ${worksrcpath}/include/CarbonCore/fp.h.diff"
     81        }
     82        # ok, kill the .diff files, we don't need them in our output
     83        delete ${inst}/include/CarbonCore/MachineExceptions.h.diff ${inst}/include/CarbonCore/fp.h.diff
    7484}
     85
     86platform darwin 9 {
     87        # just used for a variant_isset test
     88}
Note: See TracChangeset for help on using the changeset viewer.