Ticket #57348: mongodb-10.11.patch
File mongodb-10.11.patch, 1.7 KB (added by ryandesign (Ryan Carsten Schmidt), 6 years ago) |
---|
-
Portfile
1 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 2 2 3 3 PortSystem 1.0 4 PortGroup active_variants 1.1 4 5 PortGroup compiler_blacklist_versions 1.0 5 6 PortGroup conflicts_build 1.0 6 7 PortGroup xcodeversion 1.0 … … 58 59 # TODO: fix me 59 60 conflicts_build libbson mongo-c-driver mongo-cxx-driver 60 61 62 # When targeting Mac OS X 10.7, mongodb needs at least the 10.8 SDK, which is in Xcode 4.4: 61 63 # https://jira.mongodb.org/browse/SERVER-20320 62 minimum_xcodeversions 64 minimum_xcodeversions-append {11 4.4} 63 65 if {[vercmp ${configure.sdk_version} 10.8] < 0} { 64 66 configure.sdk_version 10.8 65 67 } 66 68 69 # When targeting OS X 10.11, mongodb needs at least the 10.12 SDK, which is in Xcode 8: 70 # https://jira.mongodb.org/browse/SERVER-37640 71 minimum_xcodeversions-append {15 8} 72 if {[vercmp ${macosx_deployment_target} 10.11] >= 0 && [vercmp ${configure.sdk_version} 10.12] < 0} { 73 configure.sdk_version 10.12 74 # We don't require the ld64 port, but if it is installed, it must defer to 75 # Xcode to be new enough to understand the newer SDK, otherwise: 76 # ld: unexpected token: !tapi-tbd-v2 file 77 # See https://trac.macports.org/ticket/53784 78 # And require_active_variants doesn't work unless a dependency is declared. 79 depends_build-append port:ld64 80 require_active_variants ld64 ld64_xcode 81 } 82 67 83 configure.cflags {*}${configure.cc_archflags} 68 84 configure.ldflags {*}${configure.ld_archflags} 69 85