source: trunk/dports/devel/mongo-cxx-driver/Portfile @ 147956

Last change on this file since 147956 was 147956, checked in by ryandesign@…, 3 years ago

mongo-cxx-driver: update to 1.1.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
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# $Id: Portfile 147956 2016-04-21 06:27:38Z ryandesign@macports.org $
3
4PortSystem          1.0
5#PortGroup           compiler_blacklist_versions 1.0
6PortGroup           github 1.0
7PortGroup           muniversal 1.0
8
9epoch               1
10github.setup        mongodb mongo-cxx-driver 1.1.1 legacy-
11license             Apache-2
12categories          devel databases
13platforms           darwin
14maintainers         ryandesign openmaintainer
15
16description         library for using mongodb from C++ code
17
18long_description    ${name} is a ${description}.
19
20checksums           rmd160  03eb0310b9ad743ecb191035ac42859c32ae9050 \
21                    sha256  4e8f2fe954da7ce90126ddf2781f83dc71755ba763afb18893c4683eb9c24043
22
23depends_build       port:scons
24
25depends_lib         port:boost
26
27license_noconflict  scons
28
29patchfiles-append   patch-src-SConscript.client.diff
30
31post-patch {
32    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/SConscript.client
33}
34
35use_configure       no
36
37#compiler.blacklist  gcc-4.0 {clang < 318.0.45}
38
39build.cmd           ${prefix}/bin/scons
40build.target        driver
41build.args          --cc=${configure.cc} \
42                    --cxx=${configure.cxx} \
43                    --cpppath=${prefix}/include \
44                    --libpath=${prefix}/lib \
45                    --osx-version-min=${macosx_deployment_target} \
46                    --sharedclient
47
48supported_archs     i386 x86_64
49lappend merger_build_args(i386) --32
50lappend merger_build_args(x86_64) --64
51lappend merger_destroot_args(i386) --32
52lappend merger_destroot_args(x86_64) --64
53if {![variant_isset universal] && [info exists merger_build_args(${build_arch})]} {
54    build.args-append $merger_build_args(${build_arch})
55}
56
57destroot.args       {*}[option build.args]
58destroot.destdir    --prefix=${destroot}${prefix}
59
60if {${os.platform} eq "darwin" && ${os.major} < 10} {
61    depends_build
62    depends_lib
63    pre-fetch {
64        ui_error "${name} @${version} requires Mac OS X 10.6 or greater."
65        return -code error "incompatible Mac OS X version"
66    }
67}
Note: See TracBrowser for help on using the repository browser.