Ignore:
Timestamp:
Apr 25, 2015, 8:43:49 AM (5 years ago)
Author:
jeremyhu@…
Message:

ld64: Update ld64-latest to 241.9 and add ld64-236 port with the previous version for users that can't use libc++

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/ld64/Portfile

    r135226 r135516  
    109109}
    110110
    111 subport ld64-latest {
     111subport ld64-236 {
    112112    # XCode 5.1
    113113    version             236.3
    114     revision            1
    115114
    116115    checksums           rmd160  6a3f44aa9ae57a60d2cff5b3d47be7972ad83029 \
     
    122121
    123122    set makefile        "Makefile-133"
    124     set ld64_ver        latest
     123    set ld64_ver        236
    125124
    126125    patchfiles-append \
     
    145144}
    146145
     146subport ld64-latest {
     147    # XCode 6.1
     148    version             241.9
     149
     150    checksums           rmd160  1ee4a7be89b96a8ce3ca6f6dc803dfd0852d29b8 \
     151                        sha256  3594e87c626c3b5abab6470cac6f27b367f1efcee60eb3d0f6b6d4ecf9b24230
     152
     153    # http://trac.macports.org/ticket/43737
     154    # < 100 is a guess.  Xcode 4.1 might work, so I'm leaving it as an option unless someone reports a failure.
     155    compiler.blacklist-append *gcc* {clang < 100}
     156
     157    set makefile        "Makefile-133"
     158    set ld64_ver        latest
     159
     160    patchfiles-append \
     161        ld64-version.patch \
     162        ld64-133-no-CrashReporterClient.h.patch \
     163        ld64-134-missing-include.patch \
     164        ld64-136-i386-badAddress.patch \
     165        ld64-ppc-9610466.patch
     166
     167    configure.cxx_stdlib libc++
     168    depends_lib-append port:libcxx
     169    supported_archs i386 x86_64
     170
     171    pre-fetch {
     172        if {![file exists /usr/lib/libc++.dylib]} {
     173            ui_error "$name requires a C++11 runtime, which your configuration does not allow"
     174            error "unsupported configuration"
     175        }
     176    }
     177
     178}
     179
    147180variant universal {}
    148181
     
    152185    use_configure no
    153186
    154     variant ld64_97 conflicts ld64_127 ld64_136 description {Use ld64-97 as the default linker} {}
    155     variant ld64_127 conflicts ld64_97 ld64_136 description {Use ld64-127 as the default linker (last version to support ppc)} {}
    156     variant ld64_136 conflicts ld64_97 ld64_127 description {Use ld64-136 as the default linker} {}
     187    variant ld64_97 conflicts ld64_127 ld64_136 ld64_236 description {Use ld64-97 as the default linker (last version that works on Tiger)} {}
     188    variant ld64_127 conflicts ld64_97 ld64_136 ld64_236 description {Use ld64-127 as the default linker (last version to support ppc)} {}
     189    variant ld64_136 conflicts ld64_97 ld64_127 ld64_236 description {Use ld64-136 as the default linker (last version that works on Leopard)} {}
     190    variant ld64_236 conflicts ld64_97 ld64_127 ld64_136 description {Use ld64-236 as the default linker (last version that builds against OS X's libstdc++)} {}
    157191
    158192    if {![variant_isset ld64_97] && ![variant_isset ld64_127] && ![variant_isset ld64_136]} {
     
    172206    } elseif {[variant_isset ld64_136]} {
    173207        set ld64_ver 136
     208    } elseif {[variant_isset ld64_236]} {
     209        set ld64_ver 236
    174210    } else {
    175211        set ld64_ver latest
Note: See TracChangeset for help on using the changeset viewer.